Giter Club home page Giter Club logo

discord-message-logger-bot's Introduction

Discord Message Logger Bot

This bot logs messages from specified channels in a Discord server.

Setup

  1. Install Node.js and npm: Make sure you have Node.js and npm installed on your system. If not, you can download them from here.

  2. Clone the repository: Clone this repository to your local machine.

  3. Install dependencies: Navigate to the project directory and run npm install to install the necessary dependencies.

Configuration

  1. .env file: Create a .env file in the root directory of the project. Inside this file, you'll need to add your bot token like so:

    token=YOUR_BOT_TOKEN
    

    Replace YOUR_BOT_TOKEN with the token of your Discord bot.

  2. Channel IDs: In the index.js file, replace 'CHANNEL_ID' with the IDs of the channels you want to log messages from. You can add as many channel IDs as you want.

Running the Bot

To start the bot, navigate to the project directory and run node index.js.

Functionality

Once the bot is running, it will log messages from the specified channels. The log message will include the channel name, the username of the author, and the content of the message.

Note

This bot will not log messages from bots or messages from channels not specified in the channelIds array.

discord-message-logger-bot's People

Contributors

cykotic avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.