cowsay, now uses full path

master
Stefan Krulj 14 years ago
parent 475e5d3cbb
commit d288643a48
  1. 4
      modules/active/cowsay.py

@ -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)

Loading…
Cancel
Save