From 6f8748a722d755f48a9f0e0aa2779e1b628cbf5d Mon Sep 17 00:00:00 2001 From: Conatum Date: Wed, 19 Jan 2022 15:59:22 +0200 Subject: [PATCH] (topgg): Avoid overflowing messages. --- bot/modules/topgg/module.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/modules/topgg/module.py b/bot/modules/topgg/module.py index 2c9f32d5..6987294e 100644 --- a/bot/modules/topgg/module.py +++ b/bot/modules/topgg/module.py @@ -44,9 +44,9 @@ def reply(util_func, *args, **kwargs): ), inline=False ) - elif 'content' in args and args['content']: + elif 'content' in args and args['content'] and len(args['content']) + len(upvote_info_formatted) < 1998: args['content'] += '\n\n' + upvote_info_formatted - elif len(args) > 1: + elif len(args) > 1 and len(args[1]) + len(upvote_info_formatted) < 1998: args[1] += '\n\n' + upvote_info_formatted else: args['content'] = '\n\n' + upvote_info_formatted