|
|
|
|
@ -14,7 +14,7 @@ def cowsay(msg,args): |
|
|
|
|
return |
|
|
|
|
|
|
|
|
|
try: |
|
|
|
|
p=subprocess.Popen(["cowsay","-f",cowfile,text],stdout=subprocess.PIPE) |
|
|
|
|
p=subprocess.Popen(["/usr/games/cowsay","-f",cowfile,text],stdout=subprocess.PIPE) |
|
|
|
|
p.wait() |
|
|
|
|
txt=p.stdout.read() |
|
|
|
|
for line in txt.split('\n'): |
|
|
|
|
@ -22,4 +22,4 @@ def cowsay(msg,args): |
|
|
|
|
brathuhn.sendMonoMsg(brathuhn.ROOM,line,'groupchat') |
|
|
|
|
except subprocess.CalledProcessError: |
|
|
|
|
pass |
|
|
|
|
brathuhn.addCommand("/usr/games/cowsay","Usage: !cowsay [cowfile] text",cowsay) |
|
|
|
|
brathuhn.addCommand("cowsay","Usage: !cowsay [cowfile] text",cowsay) |
|
|
|
|
|