Procházet zdrojové kódy

up rate to 50 messages

Kylie Jo Swistak před 5 roky
rodič
revize
153c623269
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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)