diff -r 9e483447654b -r 6c0609395889 mod_util.py --- a/mod_util.py Mon Jan 12 02:44:56 2015 -0500 +++ b/mod_util.py Mon Jan 12 10:55:45 2015 +0200 @@ -50,6 +50,20 @@ 'args': None, 'level': 'normal', }, + + { + 'name': 'yes', + 'description': 'Confirms the previous command', + 'args': None, + 'level': 'normal', + }, + + { + 'name': 'no', + 'description': 'Unconfirms the previous command', + 'args': None, + 'level': 'normal', + }, ] } @@ -165,3 +179,9 @@ def cmd_more (bot, replyto, **rest): ModuleCore.print_responses (bot, replyto) + +def cmd_yes (**k): + ModuleCore.confirm (k, True) + +def cmd_no (**k): + ModuleCore.confirm (k, False)