Skip to content

Commands

Will Russell edited this page May 4, 2019 · 4 revisions

The bot prefix is flex:. Any of the following will work, as long as there is no space between the first command and the prefix.

Commands

helpme

Explains how food flex works to any user.

say <channel> <message>

Allows you to send a message as the bot.

Channel Argument:

  • main (food-chat)
  • submissions
  • voting
  • results

Message arugment can be any string enclosed in quote marks.

Only the user with the admin_id in data/config.json can use this.

score

Returns the scoreboard.

submissions

Forces the submission period to start.

Only the user with the admin_id in data/config.json can use this.

close_submissions

Pauses submissions, and prevents users from posting into #submissions.

Only the user with the admin_id in data/config.json can use this.

voting

Forces the voting period to start.

Only the user with the admin_id in data/config.json can use this.

results

Forces the results period to start.

Only the user with the admin_id in data/config.json can use this.

Groups

There are 2 groups:

  • debug
  • data

debug group

This group contains:

force_status <period>

Allows you to change the bots presence and status to match the period. The arguments are:

  • submissions
  • voting
  • results

Only the user with the admin_id in data/config.json can use this.

ping

Just a simple ping pong test, to see if the bot is responding.

test

Just a simple test to see if the bot can message that channel, and the author individually.

data group

This group contains:

clear <list>

Allows you to clear one of the lists. Arguments:

  • submissions
  • voters
  • votes

Only the user with the admin_id in data/config.json can use this.

force_json_dump <json_file>

Save the data to the corresponding json file. Arguments:

  • data for daily data
  • score for scoreboard

Only the user with the admin_id in data/config.json can use this.

get_data

Returns the daily data dictionary.

rude_quotes

Returns all the quotes in the rude list found in data/quotes.json.

winner

Returns the user with the higest overall score.