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.
21 lines
732 B
21 lines
732 B
import brathuhn
|
|
|
|
kraken_img = """ _,.---. ,''-._
|
|
Release the kraken! ;- X ,/-- \\
|
|
/ \\ ' `. :
|
|
| \\ / | | )
|
|
,''-..--'\\ \\....-'__ '
|
|
/ .-...--'': ,. , _.-'O,'
|
|
.'/ _O_ O / /O)\\ \\''-O,-'
|
|
[\\_ .' /,' ,+-'._/O/ / /_
|
|
\\/'-' :/ ' '`'''''`+
|
|
_;._.:..."""
|
|
|
|
|
|
def kraken(mfrom,msg):
|
|
body = unicode(msg.getBody())
|
|
if "kraken" in body.lower() and not brathuhn.room_nick in unicode(mfrom):
|
|
for line in kraken_img.split('\n'):
|
|
brathuhn.sendMonoMsg(brathuhn.ROOM,line,'groupchat')
|
|
brathuhn.addGroupListener(kraken)
|
|
|
|
|