From c6cc3a4c99075c301f4ddb617689a4c05b1308ae Mon Sep 17 00:00:00 2001 From: Steve Date: Sun, 19 Dec 2021 17:53:07 -0500 Subject: [PATCH] command tweaks --- main.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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