I forgot to import subprocess like a hecking Neanderthal
This commit is contained in:
parent
98ab1c6559
commit
4d0c56824e
|
@ -1,4 +1,4 @@
|
|||
import plugin, re
|
||||
import plugin, re, subprocess
|
||||
|
||||
@plugin.command("latest","<count/filter>")
|
||||
def on_latest(self,channel,nick,count="5"):
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import plugin, re
|
||||
import plugin, re, subprocess
|
||||
|
||||
unhighlight_nick = lambda nick: "_{!s}_".format(nick)
|
||||
|
||||
@plugin.command("roster","<count/filter>")
|
||||
@plugin.command("roster","<filter>")
|
||||
def on_roster(self,channel,nick,*namecnt):
|
||||
output = subprocess.check_output(["/usr/local/bin/roster",' '.join(namecnt)]).decode("ascii").split("\n")
|
||||
output = filter(None,output)
|
||||
|
|
Loading…
Reference in New Issue