A powerful and scalable Discord bot built with Discord.js. Kensukeken Bot offers modular commands, detailed logging, and helpful utilities to manage your server with style.
- 🧹
\clear
— Bulk delete messages in a channel - ❓
\help
— List all available commands - 🛰️
\ping
— Check bot responsiveness - 🧑
\userinfo
— Get detailed info about a user - 🌐
\serverinfo
— Display server metadata - 📝 Auto-logging for message edits, deletions, joins/leaves
- ♻️ Modular structure with dynamic loading
DISCORD-BOT/
├── commands/ # Command handlers
│ ├── clear.js
│ ├── help.js
│ ├── ping.js
│ ├── serverinfo.js
│ └── userinfo.js
│
├── events/ # Event listeners
│ ├── guildMemberAdd.js
│ ├── guildMemberRemove.js
│ ├── interactionCreate.js
│ ├── logger.js
│ ├── messageCreate.js
│ ├── messageDelete.js
│ ├── messageUpdate.js
│ └── ready.js
│
├── node_modules/
├── .env # Environment variables
├── index.js # Main entry file
├── package.json
├── package-lock.json
└── README.md # You are here
git https://github.com/Kensukeken/kensukeken-js-bot.git
cd kensukeken-js-discord-bot
npm install
Create a .env
file:
DISCORD_TOKEN=your-bot-token-here
PREFIX=\
LOG_CHANNEL_ID=your-log-channel-id
⚠️ Do NOT share your.env
file.
node index.js
For example, you should see:
Logged in as Kensukeken Bot#9116, watching everything...
The bot logs the following:
- 🆕 Messages sent
- ✏️ Messages edited (before/after)
- 🗑️ Messages deleted (with link)
- ➕ Members joined
- ➖ Members left
All logs go to your specified log channel.
To add a new command, create a file in the commands/
folder:
module.exports = {
name: "example",
description: "Does something cool",
execute(message, args) {
message.channel.send("Example command executed!");
}
};
PRs and suggestions are welcome! Help improve the bot or add your own features.