def skipMusic_getName() return "skip" end def skipMusic_getCommand() return "skipMusic_main" end def skipMusic_main(event) voice_channel = event.author.voice_channel.id if ENV["#{voice_channel}"] == 'playing' event.respond "Skipping currently playing song" voiceBot = $voicebots[voice_channel] voiceBot.stop_playing() ENV["#{voice_channel}"] = 'open' else event.respond "Bot not playing!" end end