Skip to content

Latest commit

 

History

History
175 lines (107 loc) · 3.49 KB

command-manage.md

File metadata and controls

175 lines (107 loc) · 3.49 KB

Management Commands

These commands are used to configure the bot.

Table of Contents

AddAnswer (Admin Only)

Adds an answer from a user for the given question

Example Example Example Example

Syntax

$addanswer <question> <user> <answer>

Arguments

  • question: The question id to answer to
  • user: The user snowflake to answer for
  • answer: The text answer

DelAnswer (Admin Only)

Deletes the answer from given user for given question

Example

Example

Example

Syntax

$delanswer <question> <user>

Arguments

  • question: The question id to delete an answer from
  • user: The user snowflake to delete answer from

ConvertQuestion (Admin Only)

Convert a given message in a given channel to a new QuestionBot question.

Example

Example Example

Syntax

convertquestion <messageid> <channel> <note> (optional)

Arguments

  • messageid: The message id for the message to be converted
  • channel: The channel the message id is posted in
  • note: Text to be added as a note to the question (optional)

ConvertAnswer (Admin Only)

Convert a given message in a given channel to a new QuestionBot answer.

Example

Example

Syntax

convertanswer <question> <messageid> <channel> 

Arguments

  • question: The question id to add the answer to
  • messageid: The message id for the message to be converted
  • channel: The channel the message id is posted in

EnableLogging (Admin Only)

Toggles logging command invocations.

Example

Example

Syntax

$enablelogging <setting>

Arguments

  • <setting>: Either on or off.
    • on: Turns on logging
    • off: Turns off logging

SetChannel (Admin Only)

Sets the channel to emit <target> messages to.

Example

Example

Syntax

$setchannel <target> <channel>

Arguments

  • <target>: The category. Either log, questions or answers
    • log: The text channel to emit logs to
    • questions: The text channel to emit questions to
    • answers: The text channel to emit answers to
  • channel: The text channel to bind these events to

SetPrefix (Admin Only)

Changes the prefix used to invoke commands.

Note: This setting modifies the bot prefix for every guild it is in. Use with caution.

Example

Example

Syntax

$setprefix <prefix>

Arguments

  • prefix: The new bot prefix.

SetRole (Admin Only)

Sets the minimum required role to invoke bot commands.

Example

Example

Syntax

$setrole <role>

Arguments

  • role: The name of the new role (not snowflake)