|
|
|
@ -48,6 +48,25 @@ def choose(msg,args): |
|
|
|
brathuhn.sendMsg(brathuhn.ROOM,args[1+random.randint(0,len(args[1:])-1)],'groupchat') |
|
|
|
brathuhn.sendMsg(brathuhn.ROOM,args[1+random.randint(0,len(args[1:])-1)],'groupchat') |
|
|
|
brathuhn.addCommand("choose","Usage: !choose item_1 item_2 ... item_n",choose) |
|
|
|
brathuhn.addCommand("choose","Usage: !choose item_1 item_2 ... item_n",choose) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
kraken_img = """ |
|
|
|
|
|
|
|
_,.---. ,''-._ |
|
|
|
|
|
|
|
Release the kraken! ;- X ,/-- \\ |
|
|
|
|
|
|
|
/ \\ ' `. : |
|
|
|
|
|
|
|
| \\ / | | ) |
|
|
|
|
|
|
|
,''-..--'\\ \\....-'__ ' |
|
|
|
|
|
|
|
/ .-...--'': ,. , _.-'O,' |
|
|
|
|
|
|
|
.'/ _O_ O / /O)\\ \\''-O,-' |
|
|
|
|
|
|
|
[\\_ .' /,' ,+-'._/O/ / /_ |
|
|
|
|
|
|
|
\\/'-' :/ ' '`'''''`+ |
|
|
|
|
|
|
|
_;._.:...""" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def kraken(mfrom,msg): |
|
|
|
|
|
|
|
if "kraken" in msg.lower() and not brathuhn.room_nick in mfrom: |
|
|
|
|
|
|
|
for line in kraken_img.split('\n'): |
|
|
|
|
|
|
|
brathuhn.sendMonoMsg(brathuhn.ROOM,line,'groupchat') |
|
|
|
|
|
|
|
brathuhn.addGroupListener(kraken) |
|
|
|
|
|
|
|
|
|
|
|
brathuhn.connect_and_join() |
|
|
|
brathuhn.connect_and_join() |
|
|
|
brathuhn.loop() |
|
|
|
brathuhn.loop() |
|
|
|
|
|
|
|
|
|
|
|
|