Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
botkit-discord
Advanced tools
A Botkit connector for Discord allowing you to create extensible Discord bots.
🤖👾 A Botkit connector for Discord
This Botkit connector would not be possible without the powerful and simple library, izy521/discord.io.
Note this is still a work in progress and open to additional features and suggestions
const BotkitDiscord = require('botkit-discord');
const config = {
token: '**' // Discord bot token
}
const discordBot = BotkitDiscord(config);
discordBot.hears('hello','direct_message',(bot, message) => {
bot.reply(message, 'how goes there :)!');
});
discordBot.hears('.*', 'direct_mention', (bot, message) => {
bot.reply(message, 'leave me to be please.');
});
Refer to Botkit documentation to utilize all of the other Botkit features.
You can handle particular events for your bot using the .on()
method.
discordBot.on(EVENT_NAME, event => {
// do stuff
});
Event | Description |
---|---|
ambient | a channel the bot is in has a new message |
direct_message | the bot received a direct message from a user |
direct_mention | the bot was addressed directly in a channel ("@bot hello") |
mention | the bot was mentioned by someone in a message ("hello @bot") |
Event | Description |
---|---|
disconnect | Bot has disconnected or failed to login |
ready | Bot is connected |
Guilds can also be referred to "server"
Event | Description |
---|---|
guild_member_add | A member added to guild (server) |
guild_member_update | An existing guild member has bene updated |
guild_member_remove | A member removed from guild |
guild_role_create | A new guild role created |
guild_role_update | An existing guild role has been updated |
guild_role_delete | A guild role deleted |
channel_create | A channel has been create |
channel_update | An existing channel has been updated |
channel_delete | A channel has been deleted |
For convenience the following methods from discord.io library is available on the controller.api
Ⓒ MIT (Brandon Him / brh55)
Please let me know if you plan on forking or would like professional support.
FAQs
A Botkit connector for Discord with support for text, voice, attachments, embedded messages, and more.
The npm package botkit-discord receives a total of 47 weekly downloads. As such, botkit-discord popularity was classified as not popular.
We found that botkit-discord demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.