13 lines
311 B
Python
13 lines
311 B
Python
|
#!/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)
|
||
|
|