Giter VIP home page Giter VIP logo

logger-bot's Introduction

Banner Run on Repl.it

Logger Bot

Discord bot that logs all changes on your Discord server!

Deployment

Follow these instructions on how to use the bot.

1.  Press the green "Code" button at the top of the repo.

template

2.  Download the full code via the "Download ZIP" button

downloadcode

3. Extract the files to your desktop and open the files in Visual Studio Code (or other text editor)

Bot Setup

.env

Put the token of your bot into .env file.

TOKEN=YOUR_BOT_TOKEN

config.json

Adjust your config so that the bot suits you the way you want.

{
  "guildID": "YOUR_GUILD_ID",
  "channels": {
    "channelLog": "CHANNEL_ID",
    "emojiLog": "CHANNEL_ID",
    "banLog": "CHANNEL_ID",
    "unbanLog": "CHANNEL_ID",
    "joinLog": "CHANNEL_ID",
    "leaveLog": "CHANNEL_ID",
    "messageLog": "CHANNEL_ID",
    "voiceLog": "CHANNEL_ID"
  },
  "owner": "975898528859697182"
}
4. Then open a terminal and run the following commands

Downloading discord.js

npm i discord.js@latest

Download the necessary modules:

npm i

Then use this command to turn on the bot:

npm run dev

Support us

If you use this code and are happy with it, we would be happy for any donation to support this project!

DONATE US HERE :)

Packages that this bot use

CHANGELOG

  • 16/08/2022 - Fixed broken presence and finished channelUpdate log.
  • 17/08/2022 - Code has been improved, logger has been added to event folder and emoji logger has been added.
  • 18/08/2022 - Added ban and join log.
  • 29/01/2023 - Modified code to discord.js version 14.7.1.
  • 26/03/2023 - Fixed small bugs, Switched from colors to term-logger package.
  • 27/03/2023 - Added Message Delete Event, Moved all embeds to embed.js file, Rewrited full code.
  • 10/07/2023 - Added new package nodemon and modified code.
  • 8/08/2023 - Updated all packages, Modified README file, Added .prettierrc file, Code has been improved.
  • 25/09/2023 - Updated all packages, Added voiceStateUpdate Event (Voice join, left, mute, unmute,deafended, undeafended), Modified README file

Message from the creator

If I see you using this code as your own, I will report the license violation to GitHub.

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.