Explorar o código

up rate to 50 messages

Kylie Jo Swistak %!s(int64=5) %!d(string=hai) anos
pai
achega
153c623269
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      bot.rb

+ 1 - 1
bot.rb

@@ -1006,7 +1006,7 @@ bot.message do |event|
       #error_embed("Command not found!")
     #)
   elsif event.message.channel.id == 644771348073152522 && content.match(/clear chat/i)
-    msgs = event.message.channel.history(10)
+    msgs = event.message.channel.history(50)
     msgs.reject { |msg| msg.author.webhook? || msg.id == 651836628486062081 }
 
     event.message.channel.delete_messages(msgs)