Discord.js wrapper - Makes sending messages to single/multiple Discord bots easy
const DiscordManager = require('discord-multi-bot');
async function main() {
const discordTagName = await DiscordManager.initNewDiscordClient(yourSecretDiscordTokenHere);
DiscordManager.sendDiscordMessage(discordTagName, nameOfDiscordChannelToSendTo, messageYouWantToSendToTheChannel);
}
main();
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