command tweaks

This commit is contained in:
stryan 2021-12-19 17:53:07 -05:00
parent 952ec87ba4
commit c6cc3a4c99
1 changed files with 5 additions and 2 deletions

View File

@ -32,7 +32,7 @@ if File.exists?("/usr/bin/mpd")
mpd = true
end
bot = Discordrb::Commands::CommandBot.new token: options[:bot_token], prefix: '!'
bot = Discordrb::Commands::CommandBot.new token: options[:bot_token], prefix: '!radio '
bot.command :start do |event|
system("mpc play")
@ -50,16 +50,19 @@ bot.command :reload do |event|
system("mpc clear")
system("mpc update")
system("mpc add /")
nil
end
bot.command :pause do |event|
event.respond("pausing playback")
system("mpc pause")
system("mpc toggle")
nil
end
bot.command :skip do |event|
event.respond("skipping")
system("mpc next")
nil
end