You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
414 B
Ruby

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