Class

DiscordContests

DiscordContests()

The DiscordContests class handles all functions related to Discord contests. It will ask questions in set intervals and pick winners based on keywords for those questions that have correct answers. For other questions it will tag staff and staff will be able to tell it the winner. It can also be paused and un-paused, and questions can be removed. Note: all answers are case-insensitive but any extra or missing characters will be considered incorrect.
Constructor

# new DiscordContests()

View Source commands/a_activity/discord-contests.js, line 19

Extends

Members

CommandPermissionInfo

# private permissionInfo

The permission info
Overrides:

View Source classes/permission-command.js, line 40

Methods

# async runCommand(botGuild, message)

Stores a map which keeps the questions (strings) as keys and an array of possible answers (strings) as values. It iterates through each key in order and asks them in the Discord channel in which it was called at the given intervals. It also listens for emojis that tell it to pause, resume, or remove a specified question.
Parameters:
Name Type Description
botGuild BotGuildModel
message Message the message in which this command was called
Overrides:

View Source commands/a_activity/discord-contests.js, line 41