more load tweaks
This commit is contained in:
parent
5afa7bb7d6
commit
d1175cbe2f
6
main.rb
6
main.rb
@ -97,13 +97,13 @@ bot.command :skip do |event|
|
||||
end
|
||||
|
||||
bot.command :initialize do |event|
|
||||
event.respond("loading last 20 songs from channel")
|
||||
event.respond("loading last 50 messages from channel")
|
||||
channel = bot.channel(options[:channel_id])
|
||||
messages = channel.history(20)
|
||||
messages = channel.history(50)
|
||||
messages.each do |msg|
|
||||
parse_songs_from_string(mpd,msg.content)
|
||||
end
|
||||
nil
|
||||
event.respond("done loading")
|
||||
end
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user