Admin commands

These are commands that require elevated access in order to execute (either by being owner, full admin, or having the relevant flag for the command). Some commands only work in debug mode by default but can be enabled for normal mode by editing  in your. Parameters wrapped in angle brackets  are required. Parameters wrapped in square brackets  are optional. A pipe character  indicates multiple valid options. The prefix  is used here, as it is the default, but it will obviously be whatever prefix you set for your instance.

Admin commands
These commands require either admin or owner access in botconfig.py or can be given to the user via. The relevant flag for each command is listed in the heading, alternatively admins (those with the +F flag) can run every admin command.

(+s)
Causes the bot to action message to target (a la /me). If used by a non-admin, the only allowed target is the main channel, otherwise can be used to target anything.

(+D)
Causes the given  to be executed after the current game is finished. You must still have permission to execute whatever command that is. Only one faftergame command will apply, future uses on the same game will overwrite what was previously set. (Note: this is due to how this command works internally, and may change eventually.)

(+d)
Forces the night to end immediately. Any night commands that were given before  was used still take effect (such as killing, giving out totems, etc.).

(+D)
Causes the bot to  IRC and then shutdown (terminating the bot's process). If a reason is specified, it will be included in the quit message.

Aliases:

(+F)
Views or modifies flags for a user. If no parameters are given, lists every access entry. If only a user is given, lists that user's access (access given from botconfig.py, e.g. the OWNERS list, is not shown). If both a user and flags are given, modifies the user's access according to the given flags. This can either add new flags (if the flags are prefixed with +) or remove them (if prefixed with -). The special flag '*' can be used to add every flag except +F or remove every flag including +F. A template name can be given for flags to make the user inherit flags from the template (if the template is changed or removed, the user's access is changed or removed automatically).

Examples: Give +j to lykos: !fflags lykos +j

Give +as to lykos as well (making total access +ajs): !fflags lykos +as

Set example's access to templatename (any existing flags not in templatename are removed): !fflags example templatename

Remove example's access: !fflags example -*

(+d)
Forces the gamemode to be selected and disables voting on game modes by players. In addition to regular modes, the special  mode is available which can be used to set arbitrary roles. The syntax for the roles mode looks like so:. Example:.

This command is only enabled for debug mode unless it is added to  in.

(+j)
Causes a goat to wander by and violently kick or headbutt the phrase passed in. This gets around any restrictions on  in that it can be used an unlimited number of times at any point (not just during day).

(+A)
Causes the bot to treat every nick in the list of parameters as if they executed a  command. If any given nick has 1 game of stasis, the stasis will be removed and they will join. If any given nick has more than 1 game of stasis, they will not be joined by this command -- the stasis will need to be removed with  first.

If debug mode is enabled, fake nicks can be joined this way. A fake nick is a nickname that contains only numbers.

(+D)
Disables starting new games, and optionally runs command after the current game is complete as if you executed  command. The bot must be restarted (via, the command line, killing and restarting the process or similar) before new games may commence.

(+A)
Causes the bot to treat every nick in the list of parameters as if they executed a  command. This will not cause the effected nicks to get stasis, even if a game is currently running.

Aliases:

(+d)
Forces the day to end immediately as if it had reached its maximum time. If any votes are currently in place, they will be counted for a lynch (with nobody being lynched on a tie).

(+d)
Forces the chosen nick to execute the given command. A special nick of  will force everyone currently playing to execute the command. The command may not be an admin command unless the person using  is an actual admin. Owner-only commands may never be forced. This command must be used in-channel, it cannot be used in pm.

This command is only enabled for debug mode unless it is added to  in.

(+A)
Causes the bot to  the given channel. This command cannot be used to force the bot to leave the main channel (the  setting in  ).

(+D)
Causes the bot to update its source code using. Assuming you set up the bot by cloning the lykos repository here, this will cause you to get the latest version of the source. After  is ran, you should   or   to make the changes take effect.

(+D)
Causes the bot to  and then restart (forking off to a new process). This will make it pick up on any code changes that were made to the bot's code, such as changes obtained from editing  or executing. If a reason is specified, it will be included in the quit message. If any players are currently joined, they will be highlighted by the bot after it rejoins the channel.

(+d)
Changes the nick's role to role or adds/removes a template from nick. If used on someone not currently playing, causes them to join the game on a player and then sets their role accordingly. Certain roles and templates can take a parameter. For example, you can specify what totem a shaman has by  or how many bullets a gunner has by.

This command is only enabled for debug mode unless it is added to  in.

(+s)
Causes the bot to say message to target. If used by a non-admin, the only allowed target is the main channel, otherwise can be used to target anything.

(+F)
Causes the bot to send any arbitrary raw IRC command to the server. This must follow all IRC specifications, for example.

(+A)
Lets you spectate wolfchat or deadchat, or removes you from spectating such. Users in the chat are not alerted that you are spectating, and you will be relayed everything that is said in that chat. If in debug mode, this has no restrictions on use and can be used in-channel. If in normal mode, this command may only be used by dead or unjoined players and will always respond in PM. Active vengeful ghosts are not counted as &quot;dead&quot; for the purpose of using this command.

(+A)
Forces the game to start, ignoring any wait time that is currently in effect. All other conditions for starting (e.g. maximum and minimum players) must still be met.

(+A)
Gets or sets the reduces on someone. If used without an amount, shows how much stasis is currently on the specified nick, account, or host. If used with an amount, sets the stasis for that nick, account, or host to the specified amount. Stasis prevents that person from ing that number of games, and is reduced by 1 each time a game is started. To remove stasis from someone entirely, set the amount to 0. This command can only be used to reduce or remove stasis from someone, it cannot be used to add stasis. See  for information on adding stasis. Reducing stasis amounts via !fstasis does not reduce when the stasis would normally expire.

(+A)
Stops any game currently in progress. The game will not count towards any statistics.

(+m)
Forces the bot to sync up channel modes with what it currently expects, useful if a game is running during netsplits and the servers mess up the modes. It will cause the bot to voice all alive players, devoice everyone else, and set  if a game is running or   if a game is not running.

(+F)
Views or modifies templates, which are collections of flags under a friendly name. If no parameters are given, a list of templates is shown. If parameters are given, modifies the given template to the given flags. Flags can either be another template name (in which case flags are inherited from that template), or a list of flags prefixed with + to add or - to remove. The flag '*' can be given to add every flag except +F, or remove every flag including +F. Modifying templates will also modify any users whose access was set to the template.

Examples: Create a new template "op" and set its flags: !ftemplate op +AaDjms

Remove the "D" flag from op, leaving +Aajms: !ftemplate op -D

Create a new template "admin" that copies flags from op: !ftemplate admin op

Set admin +F and remove all other flags: !ftemplate admin -*+F

Delete template op: !ftemplate op -*

(+A)
Adds or removes a number of seconds from the wait time.

(+F)
Adds a warning to the given user. The user can either be a nick on the channel, a hostmask in the form of nick!user@host, or an explicit account name by prefixing it with = (e.g. =account). Most parameters are optional and can be safely omitted, as the automatic sanction system generally suffices. However, they are made available to specify manually should the need arise. The warning points is a number of warning points to add, and the reason must be prefixed with a colon. Adding an @ before points means that the warning must be acknowledged before the user can !join again. An expiration time can be specified (such as ~7d or ~never), and if left out the default expiration time of 30 days is used. Valid suffixes for the expiration time are "d" for days, "m" for minutes, and "h" for hours. Alternatively, "never" can be specified to make the warning never expire. The sanctions list can be used to give the user stasis or deny access to commands. A stasis sanction should be specified as  whereas denying commands is   (no spaces are allowed in the command list or around the equals sign). The reason is displayed to the user receiving the warning, whereas the notes are only viewable by other admins. Notes are separated from the reason with a pipe character; this also means that a pipe character cannot be present in a reason (it cannot be escaped).

Examples: Basic usage: !fwarn add lykos 1 :Being rude

Requiring acknowledgement: !fwarn add lykos @1 :Being rude

Admin notes: !fwarn add lykos 1 :Being rude | See channel log for 2016-06-21 at 13:13 UTC

Modifying expiration: !fwarn add lykos 1 ~90d :Being rude

Sanctions: !fwarn add lykos 1 stasis=3 deny=goat :Abusing !goat

(+F)
Deletes the warning with the given id. At this time, warnings cannot be undeleted. You should probably modify the notes via  to indicate why you are deleting the warning. Users cannot view deleted warnings, only admins can.

(+F)
Modifies the expiration date, reason, or notes for the warning. If any parameter is not specified, it will be left unchanged. To clear the notes, specify a pipe character with nothing after it. Any expiration time is calculated from the time the warning was originally issued.

Examples: Modify expiration time and update notes while leaving reason the same: !fwarn set 5 ~60d | Continued harassment

Clear the notes !fwarn set 5 |

(+F)
Displays a list of warnings. If -all is not specified, only active (not expired or deleted) warnings are shown. If -all is specified, expired and deleted warnings are additionally shown. If user is not specified, shows all warnings or otherwise only shows warnings for the user. The user can either be a nickname of someone on the channel, a hostmask in nick!user@host form, or an account name prefixed with =, e.g. =account. 10 warnings are shown at a time, to view more the page parameter can be used to view other pages of warnings. Warnings are listed most recent first.

(+F)
Views details about the given warning.

(+m)
Updates tracking variables with the contents of the database. This can be used to re-check stasis expiration, and is also useful if one modified the database via a manual SQL query and wants to reload that updated information into the bot.

(+a)
Reveals all information about the game in progress, including who has what role and role-specific information such as who has which totems, who assassins are targeting, etc. If in debug mode, this has no restrictions on use and can be used in-channel. If in normal mode, this command may only be used by dead or unjoined players and will always respond in PM. Active vengeful ghosts are not counted as &quot;dead&quot; for the purpose of using this command.

This command is only enabled for debug mode unless it is added to  in.

(+d)
Forces everyone that is the chosen role to execute the given command. A special role of  will force everyone currently playing to execute the command. The command may not be an admin command unless the person using  is an actual admin. Owner-only commands may never be forced. This command must be used in-channel, it cannot be used in pm.

This command is only enabled for debug mode unless it is added to  in.

Owner-only commands
These commands require owner access in.

Evaluates expression as a Python expression and prints the result. Warning: This is dangerous and has the potential to do a lot of harm! You will often not need this, as this is used mainly for testing and debugging.

This command is only enabled for debug mode unless it is added to  in.

Executes arbitrary Python code. Warning: This is dangerous and has the potential to do a lot of harm! You will often not need this, as this is used mainly for testing and debugging.

This command is only enabled for debug mode unless it is added to  in.