GithubHelp home page GithubHelp logo

00-00-00-11 / discord-dragon-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dragonofmath/discord-dragon-bot

0.0 1.0 0.0 1.39 MB

Personal NodeJS Discord client featuring tons of flexible, fun commands.

License: MIT License

JavaScript 99.22% HyPhy 0.01% Brainfuck 0.76%

discord-dragon-bot's Introduction

discord-dragon-bot

My personal Node.js Discord bot featuring a vast library of commands with near-endless customization. Its main prefix is ๐Ÿ‰.

Installation

npm install DragonOfMath/discord-dragon-bot

Setup

Pass an object to the client constructor with the following keys:

{
	"token":   "...", // Discord auth token
	"ownerID": "...", // your Discord ID, not your name or discriminator
	"permissions": 268790902, // or some other value
	"apiKeys": {...} // additional API keys
}

Links

Database

  • analytics for counting command usage
  • block for the client's block list
  • permissions for storing permission settings for commands
  • moderation for moderation housekeeping
  • client for keeping global data for the bot; used by the Mandelbrot and Reminder modules
  • servers is required for moderation, and is used by the CAH, blacklist, and greeting modules
  • channels is unused for now
  • roles is used by the Roles module
  • users is used by the Fishing and Pokemon modules

Commands

  • DragonBot's main prefix is the dragon emoji "๐Ÿ‰", but can also have custom prefixes.
  • There are over 500 commands built into the client, and many more on the way.
  • Commands are broken into categories, subcommands, and even metacommands.
  • Commands can be restricted to privileged users, the bot owner, or to any whitelist/blacklist of users/servers/channels.

See src/Commands/README.md for an in-depth guide on command usage.

Sessions

  • These are multi-purpose data structures made to retain data or provide special responses.
  • They can be loaded from modules and remain active while the bot is online.
  • They can be generated on the fly and expire after a period of time.
  • They can receive messages and respond if necessary.
  • They can trigger events or be called each 1-second cycle.

See src/Sessions/README.md for more information on sessions.

Database

  • DragonBot uses a homemade JSON database framework. It's not the best for large-scale use, but it's great for my experimenting.
  • The tables are loaded into memory during initialization and only writes to their files when called.
  • It requires many of the listed tables to function correctly.

See src/Database/README.md for more details about the database and how to use it.

discord-dragon-bot's People

Watchers

 avatar

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.