Git Product home page Git Product logo

gary's Introduction

Gary, the most awesome Discord bot, by TheV0rtex

I'm proud to offer you guys my now open-sourced Discord bot, Gary! :D - TheV0rtex

Setting it up:

  1. Rename config.json.example to config.json and fill in the details.
  2. Run $ node gary.js

Roles:

There are two flavours of roles, groups and subroles.

Group roles are configured in the roles.roles section of config.json. A group role requires a unique ID and a name matching a configured role on the server. assignableRoles is a list of the IDs that can be assigned using the role command. defaultRoles are the IDs of the group roles a user is automatically assigned on joining the server.

Subroles are managed via the subrole command. Subroles can be created and deleted with subrole new and subrole delete. Once added, a subrole can be assigned to one or many parents with subrole add, or removed with subrole remove. Lastly, availably subroles can be shown with subrole list and subrole list <group name>.

Permissions:

By default a command is available to everyone. To limit the availability of a command, create a new group in config.json under permissions.permissiongroups. Only the role IDs listed in the roles section of the group will be able to use a command listed in commands.

Links:

Rename links.json.example to links.json. Available links can be listed be calling the links command without parameters.

To use the define command, which uses the Oxford Dictionary API, fill in the app_id and app_key.

Quiz

Rename quizconfig.json.example to quizconfig.json. Add timeToAnswer and timeToJoin to the file (in seconds).

Message Filter

To filter messages, use the messagefilter section of config.json. If you have a channel specified with the name of *, all channels will be filtered off it's blacklist and whitelist, as well as their own.

The filter uses Regular Expressions.

Available commands:

Available commands can be listed with the help command.

The order in which plugins and commands appear in the help command can be configured with pluginorder.json.example. Rename it to pluginorder.json and create an entry for each plugin, specifying the desired sort order. The order of commands under a plugin heading is configured by the order of the commands in the plugin's .commands member.

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.