Skip to content

Kensukeken/kensukeken-js-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💠 Kensukeken Discord Bot

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.


🧠 Features

  • 🧹 \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

🗂️ Project Structure

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

⚙️ Setup

1. Clone the repository

git https://github.com/Kensukeken/kensukeken-js-bot.git
cd kensukeken-js-discord-bot

2. Install dependencies

npm install

3. Configure environment variables

Create a .env file:

DISCORD_TOKEN=your-bot-token-here
PREFIX=\
LOG_CHANNEL_ID=your-log-channel-id

⚠️ Do NOT share your .env file.


🚀 Run the Bot

node index.js

For example, you should see:

Logged in as Kensukeken Bot#9116, watching everything...

🪵 Logging

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.


➕ Add New Commands

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!");
  }
};

🤝 Contributing

PRs and suggestions are welcome! Help improve the bot or add your own features.


🔗 Useful Links

About

My discord bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published