Socket
Socket
Sign inDemoInstall

discord-multi-bot

Package Overview
Dependencies
92
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    discord-multi-bot

Simple module for interacting with 1 or more Discord clients


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
1.30 MB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 31 Dec 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc