discord-login-bot

1.1.4 • Public • Published

discord-login-bot

A simple package that allows you to log in a bot and join a voice channel and set status.

Installation

To install this package, run the command in your terminal/shell:

npm install discord-login-bot

Usage

To use this package, create a new instance of the discordBot class and call the login method to log in to Discord.

const { discordBot, statusType } = require("discord-login-bot");

const bot = new discordBot("YOUR_BOT_TOKEN");
bot.login(); //login
bot.joinVoice("channelId"); // if you want bot join voice channel
bot.setStatus(statusType.online); // add status bot
bot.setActivity("DZAN TESTING NEW VIRSON", "PLAYING"); // add activity bot (support streaming)

Methods

login()

Log in to Discord

joinVoice(channelId)

Joins a voice channel with the provided ID.

channelId: The ID of the voice channel to join.

setStatus(status)

Sets the bot's status.

  • status: The status to set (e.g. "dnd" or "online").

setActivity( type, text)

Sets the bot's activity.

  • type: The type of activity to set (e.g. "PLAYING" or "WATCHING").
  • text: The text to display in the bot's status.

SlashCommand

deletingCommand(clientId,guildId) && deletingCommandsWithToken(clientId,guildId)

if You want delete all command from server .guild() if You want delete all command but global .global()

License

This package is licensed under the MIT License.

Acknowledgments

This package uses the discord.js v13 library , chalk library.

Developer

discord : dz0.

Package Sidebar

Install

npm i discord-login-bot

Weekly Downloads

4

Version

1.1.4

License

MIT

Unpacked Size

8.71 kB

Total Files

9

Last publish

Collaborators

  • dzan