160 |
160 |
161 try: |
161 try: |
162 func (**commandObject) |
162 func (**commandObject) |
163 except Confirmxeption as e: |
163 except Confirmxeption as e: |
164 if time.time() - g_lastConfirm < 15 and g_confirmCommand != None: |
164 if time.time() - g_lastConfirm < 15 and g_confirmCommand != None: |
165 command_error ('another confirm is underway') |
165 command_error ('''another confirm is underway''') |
166 |
166 |
167 g_lastConfirm = time.time() |
167 g_lastConfirm = time.time() |
168 response_function (str (e) + ' (.yes/.no)') |
168 response_function (str (e) + ' (.yes/.no)') |
169 commandObject['confirmed'] = e.id |
169 commandObject['confirmed'] = e.id |
170 g_confirmCommand = commandObject |
170 g_confirmCommand = commandObject |
|
171 except Exception as e: |
|
172 command_error (str (e)) |
171 |
173 |
172 # |
174 # |
173 # call_command (bot, message, cmdname, **kvargs) |
175 # call_command (bot, message, cmdname, **kvargs) |
174 # |
176 # |
175 # Calls a cobalt command |
177 # Calls a cobalt command |