Giter VIP home page Giter VIP logo

discordbot_demo's Introduction

DiscordBot Demo

A Simple Discord bot to make Announcements or Kick/Ban/Mute a user!

Created using Discord.JS module

Getting Started

Installing Dependencies:

npm install

Set Environment Varialbles:

To Set DISCORD_BOT_TOKEN :

  • You can create a bot by going here.
  • And then copy BOT TOKEN.

To set WEBHOOK_ID & WEBHOOK_TOKEN :

  • You can create a webhook to a channel in a server by going to it's settings -> integrations.
  • There you can craete webhook then COPY WEBHOOK URL.
  • The link would look like https://discord.com/api/webhooks/WEBHOOK_ID/WEBHOOK_TOKEN.
  • Copy the ID and TOKEN.

To Start the server:

npm start

Available Commands:

  1. $kick

    • Used to kick users out of server. (User must be present in server).
    • Syntax: $kick "user_id".
    • The User & Bot must have the permission to kick the users.
  2. $ban

    • Used to ban users. (Users not in server can also be banned).
    • Syntax: $ban "user_id".
    • The User & Bot must have the permission to ban the users.
  3. $mute

    • Used to mute users. (User must be present in server).
    • Syntax: $mute "user_id" "duration".
    • The User & Bot must have the permission to manage roles.
  4. $announce

    • Announces the given message with @everyone.
    • Syntax: $announce "message".
    • No permission requried.

discordbot_demo's People

Contributors

dependabot[bot] avatar varunsathreya avatar

Watchers

 avatar

Forkers

w0wseriously

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.