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.
15 lines
380 B
Ruby
15 lines
380 B
Ruby
def skipMusic_getCommand()
|
|
return ["skip", "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 |