Jabber/XMPP conference bot & framework
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
brathuhn/modules/active/tantrum.py

21 lines
583 B

import brathuhn
tantrum_img = """ ###
`. | | .'
\ .' '. ,'
/_____\\
|::' |
'' - - |:: | - - --
|:____|
|' |
' :_._._: ._
' ` _
,' TANTRUM `."""
def tantrum(mfrom,msg):
body = unicode(msg.getBody())
if "tantrum" in body.lower() and not brathuhn.room_nick in unicode(mfrom):
for line in tantrum_img.split('\n'):
brathuhn.sendMonoMsg(brathuhn.ROOM,line,'groupchat')
brathuhn.addGroupListener(tantrum)