How exploit1337/discordjs-welcome-bot works
Welcome Bot is a Discord.js bot that lets administrators choose a server’s welcome channel, then posts a generated welcome image when a member joins. The message handler loads and dispatches commands; the join handler reads the saved channel, renders an image with Jimp, and sends it to Discord. The README documents the command and quick.db storage; sampled source shows the event handlers and rendering details.
Main entry points: index.js Event handlers · setchannel.js Set channel · config.json Bot settings
Components 13
Bot runtime
- Bot settings
config.json - Event handlers
index.js - Command loader
index.js - Command dispatch
index.js
Welcome workflow
- Channel lookup
index.js - Image rendering
index.js - Image sources
- Welcome delivery
index.js
Channel setup
- Set channel
commands/setchannel.js - Channel store
commands/setchannel.js
Other components
- Administrator
- New member
- Discord
Connections 14
- Bot settings → Event handlers: provides credentials
index.js - Event handlers → Command loader: loads commands
index.js - Event handlers → Command dispatch: routes messages
index.js - Administrator → Command dispatch: sends command
readme.md - Command dispatch → Set channel: runs command
index.js - Set channel → Channel store: saves channel
commands/setchannel.js - Set channel → Discord: checks channel
commands/setchannel.js - New member → Event handlers: joins server
index.js - Event handlers → Channel lookup: handles join
index.js - Channel lookup → Channel store: fetches channel
index.js - Channel lookup → Image rendering: starts rendering
index.js - Image sources → Image rendering: supplies images
index.js - Image rendering → Welcome delivery: writes image
index.js - Welcome delivery → Discord: sends welcome
index.js