more load tweaks

This commit is contained in:
stryan 2021-12-19 18:08:54 -05:00
parent 5afa7bb7d6
commit d1175cbe2f

View File

@ -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