Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
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('how goes there :)!')
});
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 |
---|---|
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 28 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.