]> jfr.im git - erebus.git/blobdiff - modules/sms.py
msg module
[erebus.git] / modules / sms.py
index 80f5fb922449aa0753d79469b0f24951026757a7..16077a3244edd61c20b84f77b81d6df333571990 100644 (file)
@@ -1,13 +1,14 @@
 # Erebus IRC bot - Author: Erebus Team
-# simple module example
+# twilio sms module
 # This file is released into the public domain; see http://unlicense.org/
 
 # module info
 modinfo = {
        'author': 'Erebus Team',
        'license': 'public domain',
-       'compatible': [1], # compatible module API versions
-       'depends': [], # other modules required to work properly?
+       'compatible': [1,2],
+       'depends': [],
+       'softdeps': ['help'],
 }
 
 # preamble
@@ -26,9 +27,9 @@ def client(bot):
        )
 
 
-#@lib.hook(needchan=False, glevel=lib.MANAGER)
+@lib.hook(needchan=False, glevel=lib.MANAGER)
 def reply(bot, user, chan, realtarget, *args):
-       return NotImplemented
+       raise NotImplementedError
 
 @lib.hook(('sms','w'), needchan=False, glevel=lib.OWNER)
 @lib.help("<number> <message>", "send an SMS")