const options = {
defaultChannelName: process.env.DM_DEFAULT_CHANNEL_NAME || 'general',
commandPrefix: process.env.DM_COMMAND_PREFIX || "#",
token: process.env.DM_BOT_TOKEN || "",
developerMode: process.env.DM_DEVELOPER_MODE === "on"
};
const messenger = DiscordMessenger.getMessenger(options);
const bot = messenger.getBot(commands);
bot.on("ready", async () => {
console.log(`Ready`);
});
messenger.transmitDeveloperNotification("Developer notification");
messenger.transmitDiscordNotification(
"Author",
`Discord bot notification`, // You can also pass a discord embed here.
{
cooldownKey: "disabled", // Typically there is a 15 min cooldown between transmissions with the same author and message or the same Author + Message. Setting to "disabled" disables the cooldown feature.
users: [DiscordUser1, DiscordUser2]
}
);
-
Notifications
You must be signed in to change notification settings - Fork 0
NekoFluff/discord-messenger
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published