Allow setting parameters for fortune in config file
This commit is contained in:
parent
cd01be4952
commit
984fa1addf
1 changed files with 1 additions and 1 deletions
|
@ -17,4 +17,4 @@ class Module(ModuleBase):
|
||||||
if not re.match(r'!fortune(?:\W|\Z)', text):
|
if not re.match(r'!fortune(?:\W|\Z)', text):
|
||||||
return
|
return
|
||||||
|
|
||||||
handler.reply(subprocess.Popen([self.fortune], stdout=subprocess.PIPE).communicate()[0].strip())
|
handler.reply(subprocess.Popen(self.fortune, stdout=subprocess.PIPE).communicate()[0].strip())
|
||||||
|
|
Reference in a new issue