X-Git-Url: https://jfr.im/git/erebus.git/blobdiff_plain/7e64e1a25bec7b5c215609a89add3a60eeee963f..c3ff1486929923f394c219e6999df301a5a5bf04:/modules/sms.py diff --git a/modules/sms.py b/modules/sms.py index acf46da..49bdaa2 100644 --- a/modules/sms.py +++ b/modules/sms.py @@ -1,13 +1,15 @@ # Erebus IRC bot - Author: Erebus Team -# simple module example +# vim: fileencoding=utf-8 +# 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': [0], + 'depends': [], + 'softdeps': ['help'], } # preamble @@ -26,11 +28,8 @@ def client(bot): ) -#@lib.hook(needchan=False, glevel=lib.MANAGER) -def reply(bot, user, chan, realtarget, *args): - pass - @lib.hook(('sms','w'), needchan=False, glevel=lib.OWNER) +@lib.help(" ", "send an SMS") def sms(bot, user, chan, realtarget, *args): number = "+%s" % (args[0]) message = ' '.join(args[1:])