Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

discordbot-script

Package Overview
Dependencies
Maintainers
2
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discordbot-script

discordbot-script is the powerfull library, allowing you to interact with discord easily.

  • 1.8.2
  • npm
  • Socket score

Version published
Weekly downloads
11
decreased by-50%
Maintainers
2
Weekly downloads
 
Created
Source

DISCORD BOT SCRIPT

$ npm install discordbot-script

This package allows you to make your bot with similar language of bot designer for discord app but if you are not familiar with it then you can still use this package because its very simple to understand how everything works.


const Dlang = require('discordbot-script')

const discordScript = require("discordbot-script")

const bot = new discordScript({
  token: "TOKEN",
  prefix: ["?"]
})

bot.MessageEvent()
 
bot.Command({
  name: "ping",
  code: `
 $ping
  `
})

EVENTS

You can use events very easily and if you do not know what are events then they simply reacts when there is particular action is done like when someone joins the server then there is event for it, below is the exmaple.

bot.JoinedCommand({
name: "channelID or variable",
code: `
something here like <@$authorID> thanks for joining the server!`
})
bot.onJoined()

FUNCTIONS

Functions in discordbot-script helps you to perform task and provide the information, lets take a look at the example given below

bot.Command({
  name: "clear",
  code: `Cleared $message[1] messages
  $clear[$message[1]]`
})

DOCUMENTATION IS HERE : DB-SCRIPT

Keywords

FAQs

Package last updated on 21 Oct 2020

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