A Discord bot that sends customizable welcome and leave messages with generated images.
- Welcome image generation
- Leave image generation
- Customizable welcome message
- Customizable leave message
/setupcommand/disablecommand/testwelcomecommand/setwelcomecommand/setleavecommand- Multi-server support
- Persistent configuration
Sets the channel where welcome and leave messages will be sent.
Disables the welcome/leave system for the server.
Sends a test welcome message in the configured channel.
Sets a custom welcome message.
Sets a custom leave message.
You can use these placeholders in your custom messages:
{user}→ Mentions the user{server}→ Server name{count}→ Current member count
Example:
Welcome {user} to {server}! You are member #{count}.
- Clone the repository:
git clone https://github.com/TylerGamerYT/welcome-bot
cd yourrepo
- Install dependencies:
npm install
- Create a
.envfile in the root directory and add:
TOKEN=YOUR_BOT_TOKEN
CLIENT_ID=YOUR_CLIENT_ID
GUILD_ID=YOUR_TEST_GUILD_ID
- Start the bot:
npm start
For development with auto restart:
npm run dev
- Node.js v18 or higher
- Discord application with bot token
- Server Members Intent enabled in the Discord Developer Portal
index.js
package.json
config.json
.env
assets/background.png (optional)
- View Channels
- Send Messages
- Embed Links
- Attach Files
- Use Slash Commands
Tyler and his friend Chloe