6 changed files with 25 additions and 6 deletions
@ -1,7 +1,10 @@ |
|||
{{ |
|||
{"I'm a real person, I swear!"}, |
|||
{"I'm a real person, I swear!","I'm most certainly not a bot! D:"}, |
|||
{"are","you","bot"} |
|||
},{ |
|||
{"Thisisalsoatest"}, |
|||
{"1234","9999"} |
|||
{"I really like Queens of the Stone Age","Paramore is pretty good.","Green Day is great to listen to."}, |
|||
{"music","favorite","like","?"} |
|||
},{ |
|||
{"Yes.","No.","Perhaps."}, |
|||
{"?","?"} |
|||
}} |
|||
|
@ -0,0 +1,10 @@ |
|||
local nick,chan,tCommand,message = ... |
|||
local mpdHost = "192.168.1.17" |
|||
if tCommand[2] == "current" then |
|||
sendchan(chan,io.popen("mpc -h "..mpdHost.." current"):read("*a")) |
|||
elseif tCommand[2] == "playlist" then |
|||
io.popen("mpc -h "..mpdHost.." playlist > ~/public_html/mpd-playlist.txt") |
|||
sendchan(chan,"http://lain.shadowkat.science/~izaya/mpd-playlist.txt") |
|||
else |
|||
sendchan(chan,":mpd subcommands: current, playlist") |
|||
end |
@ -0,0 +1,4 @@ |
|||
nick,chan,tCommand,message = ... |
|||
if checkAdmin(nick) then |
|||
_G.loadconfig() |
|||
end |
Loading…
issues.context.reference_issue