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
427 B
Ruby

def unpauseMusic_getName()
return "unpause"
end
def unpauseMusic_getCommand()
return "unpauseMusic_main"
end
def unpauseMusic_main(event)
voice_channel = event.author.voice_channel.id
if ENV["#{voice_channel}"] == 'paused'
event.respond "Unpausing currently playing song"
voiceBot = $voicebots[voice_channel]
voiceBot.continue()
ENV["#{voice_channel}"] = 'playing'
else
event.respond "Bot not paused!"
end
end