|
|
|
@ -14,7 +14,9 @@ def cowsay(msg,args): |
|
|
|
return |
|
|
|
return |
|
|
|
|
|
|
|
|
|
|
|
try: |
|
|
|
try: |
|
|
|
txt=subprocess.check_call(["cowsay","-f",cowfile,text]) |
|
|
|
p=subprocess.Popen(["cowsay","-f",cowfile,text],stdout=subprocess.PIPE) |
|
|
|
|
|
|
|
p.wait() |
|
|
|
|
|
|
|
txt=p.stdout.read() |
|
|
|
for line in txt.split('\n'): |
|
|
|
for line in txt.split('\n'): |
|
|
|
#brathuhn.sendStyledMsg(brathuhn.ROOM,line,'groupchat',) |
|
|
|
#brathuhn.sendStyledMsg(brathuhn.ROOM,line,'groupchat',) |
|
|
|
brathuhn.sendMonoMsg(brathuhn.ROOM,line,'groupchat') |
|
|
|
brathuhn.sendMonoMsg(brathuhn.ROOM,line,'groupchat') |
|
|
|
|