diff --git a/main.rb b/main.rb index 8776575..73b1669 100644 --- a/main.rb +++ b/main.rb @@ -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