Package Exports
- discord-multi-bot
- discord-multi-bot/src/DiscordManager.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (discord-multi-bot) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
discord-multi-bot
Discord.js wrapper - Makes sending messages to single/multiple Discord bots easy
Quick start:
const DiscordManager = require('discord-multi-bot');
async function main() {
const discordTagName = await DiscordManager.initNewDiscordClient(yourSecretDiscordTokenHere);
DiscordManager.sendDiscordMessage(discordTagName, nameOfDiscordChannelToSendTo, messageYouWantToSendToTheChannel);
}
main();Documentation ⭐
userTag - Discord Assigns this. We use it to differentiate between different discord bots, as this package allows you to manage multiple. You can get it from the return value of initNewDiscordClient()
logoutOfDiscord(userTag) - Logs the bot out
sendDiscordMessage(botUserTag, channelName, message) - Sends a Message to the channel specified
initNewDiscordClient(discordToken) - Initialize and login, a discord bot. Returns the userTag