1.0.4 • Published 2 years ago

discord-multi-bot v1.0.4

Weekly downloads
6
License
ISC
Repository
github
Last release
2 years ago

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