Discord bot that logs all changes on your Discord server!
Follow these instructions on how to use the bot.
1. Press the green "Code" button at the top of the repo.
2. Download the full code via the "Download ZIP" button
3. Extract the files to your desktop and open the files in Visual Studio Code (or other text editor)
Put the token of your bot into .env file.
TOKEN=YOUR_BOT_TOKEN
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
If you use this code and are happy with it, we would be happy for any donation to support this project!
- discord.js ^14.14.1
- term-logger ^1.2.5
- dotenv ^16.3.1
- nodemon ^3.0.2
- 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
If I see you using this code as your own, I will report the license violation to GitHub.