parent
fa979960f3
commit
b2c4550ed2
1 changed files with 12 additions and 0 deletions
@ -0,0 +1,12 @@ |
||||
#!/usr/bin/env python |
||||
from modulebase import ModuleBase,ModuleHook |
||||
|
||||
class Error(ModuleBase): |
||||
def __init__(self, bot, moduleName): |
||||
ModuleBase.__init__(self, bot, moduleName) |
||||
self.hooks=[ModuleHook("PRIVMSG", self.error)] |
||||
|
||||
def error(self, args, prefix, trailing): |
||||
if "error" in trailing: |
||||
print(10/0) |
||||
|
Loading…
Reference in new issue