Last Reset Plugin

This plugin is intended to be used in speedrun channels. Whenever a reset is performed, the reason for it can be set via !setreset and then later, when chat asks why the run was reset, it can be retrieved again using !lastreset.

This functionality is a shameless rip-off of botimuz, another small bot made and used by Joshimuz. All credits for the idea go to him.

Synopsis

Identifier:
last_reset
Permissions:
set_reset, get_reset
Commands:
!setreset, !lastreset

Setup

Simply enable the plugin using the global command !k_enable:

#tester_mantester_man: !k_enable last_reset
kabukibot: tester_man, the plugin "last_reset" has been enabled.

Usage

Use the !setreset to set the reason for the last reset:

#tester_mantester_man: !setreset the game crashed
kabukibot: tester_man, the reset reason has been updated.

To retrieve the reset reason again, use !lastreset:

#tester_mantester_man: !lastreset
kabukibot: tester_man, last reset was because: the game crashed

You can clear the reset reason by not giving an argument to !setreset:

#tester_mantester_man: !setreset
kabukibot: tester_man, the reset reason has been cleared.

Permissions

Use the global commands !k_allow and !k_deny to control the permissions for this plugin.

set_reset
Users with this permission may use the !setreset command. Moderators are usually a good group to grant this to.
get_reset
Users with this permission may use the !lastreset command. If you have sensible subscribers, grant this to subscribers and moderators, otherwise maybe keep it to moderators only.

Example:

#tester_mantester_man: !k_allow set_reset $mods
kabukibot: tester_man, granted permission "set_reset" to $mods.
#tester_mantester_man: !k_allow get_reset $mods,$subs
kabukibot: tester_man, granted permission "get_reset" to $mods and $subs.