Standard Replies
The Standard Replies feature allows you to configure your bot to respond automatically when a user sends a specific keyword or phrase in chat.
Permissions Required
In order for replies to function correctly, your bot must have the necessary message permissions in the server.
Basic Usage
Assuming you’ve completed the initial setup steps, you are ready to add reply handlers to your bot.
The fundamental function is:
discordReply('WakeWord', 'Reply');
Example
To configure your bot to reply with a message when a user says “!Hello”, you can use:
const { discordReply } = require('./node_modules/bb-dbotbits/discordReplies.js');
discordReply('!Hello', 'Hello there, how are you today?');
Notes
- The keyword matching is exact — ensure your wake word or command matches what users will type.
- Make sure the bot has permissions to view and send messages in the channel where replies should work.
Want richer output like embedded replies? Go to Reply Embeds.