Explorar o código

update attachment value to 50 chars

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

+ 1 - 1
bot.rb

@@ -99,7 +99,7 @@ bot.message do |event|
 
     # Add 40 to the message length if there's a file
     msg_length = event.message.attachments.map(&:filename).count > 0 ?
-      40 + message.length : message.length
+      50 + message.length : message.length
 
     # Record post lengths and count
     user = User.find(author.id)