Added module for simulating a module error
This commit is contained in:
parent
fa979960f3
commit
b2c4550ed2
|
@ -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