discord-multi-bot

1.0.4 • Public • Published

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

Package Sidebar

Install

npm i discord-multi-bot

Weekly Downloads

2

Version

1.0.4

License

ISC

Unpacked Size

3.92 kB

Total Files

3

Last publish

Collaborators

  • dustytrash