dscbots.js is a Node.js module that allows you to interact with the Discord API without any complications.

Overview

dscbots.js


Credits

Goodsie - Helping me with the websocketmanager

About

dscbots.js is a Node.js module that allows you to interact with the Discord API without any complications.

  • Performant
  • 100% coverage of the Discord API

Usage


Node.js 16.9.0 or newer is required.

Installing dscbots.js:

npm install dscbots.js
yarn add dscbots.js
pnpm add dscbots.js

Setup your bot with the following code:

const Dbot = require('dscbots.js')
const bot = new Dbot.BotClient({
    intents: [Dbot.Intents.FLAGS.GUILD_MESSAGES, Dbot.Intents.FLAGS.DIRECT_MESSAGES],
    token: "<Bot Token>"
})

bot.on('ready', () => {
    console.log(`${bot.user.tag} is ready.`)
})

bot.CreateBot();

Afterwards we can create quite simple commands:

const Dbot = require('dscbots.js')
const bot = new Dbot.BotClient({
    intents: [Dbot.Intents.FLAGS.GUILD_MESSAGES, Dbot.Intents.FLAGS.DIRECT_MESSAGES],
    token: "<Bot Token>"
})

bot.on('ready', () => {
    console.log(`${bot.user.tag} is ready.`)
})

bot.on('newMessage', (message) => {
    if (message.author.isBot) return;
    
    if (message.content === '!hello') {
        message.reply("Hi!");
    }
})

bot.CreateBot();

You can also set your activity!

const Dbot = require('dscbots.js')
const bot = new Dbot.BotClient({
    intents: [Dbot.Intents.FLAGS.GUILD_MESSAGES, Dbot.Intents.FLAGS.DIRECT_MESSAGES],
    token: "<Bot Token>"
})

bot.on('ready', () => {
    console.log(`${bot.user.tag} is ready.`)
    bot.user.setActivity("This server!", "WATCHING");
    //Dbot.activities - Returns a list of activities available.
    // There is currently 2,5s delay to not cause ratelimit!
})

bot.CreateBot();

And you can set the your bot to be on phone.

const Dbot = require('dscbots.js')
const bot = new Dbot.BotClient({
    intents: [Dbot.Intents.FLAGS.GUILD_MESSAGES, Dbot.Intents.FLAGS.DIRECT_MESSAGES],
    token: "<Bot Token>",
    device: Dbot.devices.mobile
    // You can also remove this option, it's not required!
})

bot.on('ready', () => {
    console.log(`${bot.user.tag} is ready.`)
    bot.user.setActivity("This server!", "WATCHING");
})

bot.CreateBot();

Help

If you don't understand something in the package, you are experiencing problems, or you just need a gentle nudge in the right direction, please don't hesitate to join our official dscbots.js Server.

You might also like...

Discord.js ticket bot with buttons and without DB!

Ticket Bot Star (Please) How to use? Download the repo, create a .env file, and add your token into it. You need to change guildOnly to your guild id

Nov 17, 2022

🧰 DiscordKit is a package that allows you to easily create a Discord bot.

DiscordKit Developed with ❤️ by Swôth What's DiscordKit? DiscordKit is a package that allows you to ✨ easily ✨ create a Discord bot. Installation Deta

Oct 29, 2022

This bot is a cool Discord bot made in discord.js using Node.JS

This bot is a cool Discord bot made in discord.js using Node.JS

Anti-Crosspost Discord Bot This bot is a cool Discord bot made in discord.js using Node.JS. It detects when a user cross-posts a message in multiple c

May 31, 2022

Denky is a multipurpose Discord bot, build with Node.js, TypeScript and discord.js.

🤖 Denky Bot Denky is a brazilian Discord bot, build with Node.js, TypeScript and discord.js. ⚙️ How to Create a Discord application. Guide Install No

Apr 6, 2022

Denky is a multipurpose Discord bot used in +3000 servers. Built with Node.js, TypeScript and discord.js.

🤖 Denky Bot Denky is a brazilian Discord bot, built with Node.js, TypeScript and discord.js. ⚙️ Self hosting ⚠️ Support will not be provided for self

Dec 26, 2022

Eclipse is a multipurpose Discord bot. Built with Node.js, TypeScript and discord.js.

🤖 Eclipse Bot Eclipse is a brazilian Discord bot, built with Node.js, TypeScript and discord.js. 💻 Self-Hosting ⚠️ Support will not be provided for

Dec 15, 2022

Enhanced Collector Module for Discord.js

djs-extended-collectors NOT: You can write your suggestions on Discord. Async Collectors is coming soon. Why djs-extended-collectors? TypeScript Suppo

Dec 15, 2022

A fully configurable and customizable discord bot for any type of server written from scratch in the JavaScript

A fully configurable and customizable discord bot for any type of server written from scratch in the JavaScript programming language with just a few dependencies. A solid and reliable alternative to creating a discord bot yourself, without having to spend a lot of time filling in the configuration file. Made with love from our organization in Spain.

Jun 24, 2022

A Discord bot that snitches on the lore & events, i.e. lies, about any two random users within a server.

A Discord bot that snitches on the lore & events, i.e. lies, about any two random users within a server.

Trash Panda Bot Trash Panda Bot A little trash panda to randomly post in your Discord server. Explore the docs » · Report Bug · Request Feature Table

May 29, 2022
Releases(v10.1.8)
Owner
Scarlot Spy
Full stack NodeJS coder.
Scarlot Spy
An Easy to use and advanced working multiguild Waitingroom Bot written in discord.js v13 without any extra modules.

Multiguild-Waitingroom-v13 An Easy to use and advanced working multiguild Waitingroom Bot written in discord.js v13 without any extra modules. It is m

Tomato6966 17 Dec 11, 2022
library to interact with Whatsapp's Cloud API

Whatsapp Cloud JS Whatsapp Cloud JS is a library to allows you to interact with Whatsapp's Cloud API ?? Getting started import { Client } from 'whatsa

Thalles Passos 6 Dec 5, 2022
A bot that allows you to control pterodactyl from discord powered by discord.js 12 and mongodb

A bot that allows you to control pterodactyl from discord powered by discord.js 12 and mongodb

Hirzi 13 Dec 24, 2022
A simple & easy2use API for obtaining information about a discord user, discord bot or discord guild and their use for some purpose on websites!

discord-web-api A simple & easy2use API for obtaining information about a discord user, discord bot or discord guild and their use for some purpose on

InvalidLenni 2 Jun 28, 2022
Discord-Bot - You can use the discord bot codes that are updated in every video of the codes I use in the discord bot making series that I have published on my youtube channel.

Discord-Bot You can use the discord bot codes that are updated in every video of the codes I use in the discord bot making series that I have publishe

Umut Bayraktar 114 Jan 3, 2023
Easiest medium to use buttons with any discord API wrapper

Discord Buttons Plugin Easiest medium to use buttons with any discord API wrapper /* Generate 1st Button with "Yes" lable on it */ const button1

CTK WARRIOR 17 May 14, 2022
Discord Neura - a Discord bot framework built on discord.js

Discord Neura Description Discord Neura is a Discord bot framework built on discord.js. Features Command Handler, Arguments, Preconditions and Listene

Discord Neura 3 Mar 23, 2022
Gitlift Discord Bot is a discord bot which is listening Discord Messages to reply with user gitlift profile and total contributions.

Remoklify - Gitlift Discord Bot Gitlift Discord Bot is a discord bot which is listening Discord Messages to reply with user gitlift profile and total

Remoklify 3 Mar 20, 2022
A discord bot made using discord.js and discord-player

Musx A custom discord bot that can play music in your server ?? Add the bot to your server If you are looking for a music bot for your Discord server

Shashwat Singh 4 Mar 28, 2022
About Discord bot draft that does not contain ready-made commands, compatible with discord.js v14. Create your own discord bot with this command handler.

discordJS-V14 About Discord bot draft that does not contain ready-made commands, compatible with discord.js v14. Create your own discord bot with this

Umut Bayraktar 36 Dec 28, 2022