New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@dscbots/dscbots

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dscbots/dscbots

Make discord bots with this simple to use Package.

  • 10.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

dscbots.js


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 LOL.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 LOL.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("H!");
    }
})

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.

Keywords

FAQs

Package last updated on 09 Oct 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc