From d288643a484d8781e755e5c454729c2f730c2b49 Mon Sep 17 00:00:00 2001 From: Stefan Krulj Date: Tue, 30 Oct 2012 22:24:19 +0100 Subject: [PATCH] cowsay, now uses full path --- modules/active/cowsay.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/active/cowsay.py b/modules/active/cowsay.py index b45bfee..d48d6e4 100644 --- a/modules/active/cowsay.py +++ b/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)