116:9e483447654b | 117:6c0609395889 |
---|---|
45 }, | 45 }, |
46 | 46 |
47 { | 47 { |
48 'name': 'more', | 48 'name': 'more', |
49 'description': 'Prints subsequent command result pages', | 49 'description': 'Prints subsequent command result pages', |
50 'args': None, | |
51 'level': 'normal', | |
52 }, | |
53 | |
54 { | |
55 'name': 'yes', | |
56 'description': 'Confirms the previous command', | |
57 'args': None, | |
58 'level': 'normal', | |
59 }, | |
60 | |
61 { | |
62 'name': 'no', | |
63 'description': 'Unconfirms the previous command', | |
50 'args': None, | 64 'args': None, |
51 'level': 'normal', | 65 'level': 'normal', |
52 }, | 66 }, |
53 ] | 67 ] |
54 } | 68 } |
163 except OSError as e: | 177 except OSError as e: |
164 command_error ('failed to execute calc: ' + e.strerror) | 178 command_error ('failed to execute calc: ' + e.strerror) |
165 | 179 |
166 def cmd_more (bot, replyto, **rest): | 180 def cmd_more (bot, replyto, **rest): |
167 ModuleCore.print_responses (bot, replyto) | 181 ModuleCore.print_responses (bot, replyto) |
182 | |
183 def cmd_yes (**k): | |
184 ModuleCore.confirm (k, True) | |
185 | |
186 def cmd_no (**k): | |
187 ModuleCore.confirm (k, False) |