Skip to content
This repository has been archived by the owner on Oct 17, 2020. It is now read-only.

Latest commit

 

History

History
64 lines (54 loc) · 2.2 KB

usage.md

File metadata and controls

64 lines (54 loc) · 2.2 KB

Usage

This overview assumes that all config options are set to their defaults.

Commands

You can run commands with .<command>. Each one has a page describing it's usage.

Processes

Each of these processes is run as an async function when the bot starts up.

Activity Changer

Every five minutes, the bot's status is set to a random item from the activities element of the config object. After one minute, it's set back to .help.

Command Listener

Every time a message is sent, if it isn't a dm or sent by a bot and begins with ., the command is checked against the commands object from src/commands/index.js, and if it exists, the user is checked to make sure it has the proper permissions, and if so, the command is run with the arguments passed in.

Info Reaction Listener

This listens for reactions to the info message, and if a user reacts with the checkmark, the verified role is added to them, and removed if they remove the reaction.

Role Reaction Listener

This listens to reactions to the role messages and if they match up with approved roles, the role is added to the user, and removed if they remove the reaction.

Thanks Listener

For every message, if it isn't a dm or sent by a bot, and if it contains the words ['thank', 'kudos'], the user who was thanked (tagged) gets a reputation point added to them.

Toriel's Anti Bot Crusade

Adapted from https://gist.github.com/Dracovian/cb923c2b2fff7bad07ff7da4cdb6a3f8

If a message contains a blacklisted URL, remove it and log it.

Author

devmod © RedXTech, Released under the MIT License.