Added module for simulating a module error

dave/xdcc
dave 8 years ago
parent fa979960f3
commit b2c4550ed2
  1. 12
      pyircbot/modules/Error.py

@ -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…
Cancel
Save