Skip to content

Discord_IRC is an advanced Discord IRC (Internet Relay Chat) bot designed to intelligently monitor and log messages within a specified channel.

Notifications You must be signed in to change notification settings

GaslightGod/Discord_IRC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Discord_IRC

Alt Text

Introduction

Discord_IRC is an advanced Discord IRC (Internet Relay Chat) bot designed to intelligently monitor and log messages within a specified channel. This bot excels in capturing message content and attachments, providing users with a comprehensive and streamlined logging solution.

Prerequisites

Before delving into the deployment of Discord_IRC, ensure that your system is equipped with the following prerequisites: Node.js (Version 14 or higher)

Discord Bot Setup

Create a Discord Bot:

Visit the Discord Developer Portal Initiate the creation of a new application, providing it with a meaningful name. Navigate to the "Bot" section and instantiate your bot by clicking on "Add Bot." Record the issued token; this token is instrumental for successful configuration.

Alt Text

Invite the Bot to Your Server:

Within the Discord Developer Portal, navigate to the "OAuth2" section. Configure the "OAuth2 URL Generator" by selecting the "bot" scope. Specify the required permissions for your bot: Read Messages Send Messages Read Message History Copy the generated URL and seamlessly add your bot to the server following the presented prompts.

Create a webhook in the channel you wish to send messages in

Within Discord, navigate to the channel setting and select integrations Create a new webhook Copy the webhooks URL and open it in your browser

Installation

Clone the repository to your local machine:

git clone https://github.com/GaslightGod/Discord_IRC.git

Navigate to the project directory:

cd Discord_IRC

Install the essential Node.js modules:

npm install

Install Discord.js

npm install [email protected]

Configuration

  1. Open the loggers/config.js file.

  2. Replace 'Bot_Token' with the unique token assigned to your Discord bot.

  3. Specify 'Channel_id' with the Discord channel ID designated for bot monitoring.

  4. Add Webhook Token and ID: Access the Discord_IRC.js file and locate the following instantiation:

const hook = new Discord.WebhookClient('ID', 'Webhook_token');

Replace 'ID' & 'Webhook_token' with the relative information

  1. Personalize the username and avatarURL properties as required:
{ avatarURL: 'Image_URL', username: 'username' });
  1. Access the log_content.js file and locate the following line
if (m.author.tag === 'NAMETAG GOES HERE') return;

This is case sensitive to what you set your username to, make sure they match!

Usage

To run the Discord IRC bot, follow these steps:

  1. Open a terminal and navigate to the project directory:
cd path/to/Discord_IRC
  1. Run the bot:
node Logger.js

Additionally, run the Discord IRC:

node Discord_IRC.js
  1. The bot will now be active, monitoring the specified Discord channel.

Issues

If you need any help, open an issue and let me know what is happening. I'll get back in a timely manner.

About

Discord_IRC is an advanced Discord IRC (Internet Relay Chat) bot designed to intelligently monitor and log messages within a specified channel.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published