Socket
Socket
Sign inDemoInstall

quick-discord

Package Overview
Dependencies
101
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    quick-discord

A powerful package to allow Discord Bot Developers to Create Commands Quickly and Easily.


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

Readme

Source

⚠ This Package is Still in Development! (Find any bugs? Join Our Discord Server, link is at the bottom of this page!)

QuickDiscord

Create Commands for your Discord Bot with Ease with just a few Lines of Code.

Install Package

Let's take a look at how you can install this package into your Discord Bot Project.

npm i quick-discord --save

Example Code

const Discord = require("discord.js");
const quickDiscord = require("quick-discord");
const client = new Discord.Client();

const PREFIX = "!";

client.on("ready", () => {
    console.log("Bot is Online")
});

client.on("message", async message => {
    if(message.content.startsWith(`${PREFIX}ping`)) {
        quickDiscord.ping(client, message)
    }
    else if(message.content.startsWith(`${PREFIX}help`)) {
        quickDiscord.help(message, {
            "Basic Commands": ["ping", "help", "poll"],
            "Music Commands": ["play", "stop", "seek"],
            "Admin Commands": ["kick", "warn", "ban"]
        });
    }
    else if(message.content.startsWith(`${PREFIX}poll`)) {
        quickDiscord.poll(message, "Is this a Good Package?", 30000) //time is optional
    }
});

client.login("Discord Bot Token")

Need Help? Join Our Discord Server!

https://discord.gg/P2g24jp

Keywords

FAQs

Last updated on 02 Apr 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