txlyre 2 lat temu
rodzic
commit
661326fb9d
2 zmienionych plików z 3 dodań i 3 usunięć
  1. 1 1
      actions.py
  2. 2 2
      makeshot.py

+ 1 - 1
actions.py

@@ -99,7 +99,7 @@ async def create_new_pack(bot, sticker):
 
 async def get_current_pack(bot):
   pack = await StickerPack.all().order_by('-id').first()
-  if not pack or pack.stickers_count == 120:
+  if not pack or pack.stickers_count == 119:
     return None
 
   return pack

+ 2 - 2
makeshot.py

@@ -27,8 +27,8 @@ text = data['text']
 username = demojize(username)
 text = demojize(text)
 
-if len(username) > 15:
-  username = username[:15] + '...'
+if len(username) >= 37:
+  username = username[:40] + '...'
 
 text = fill(text, width=40, replace_whitespace=False)