From aee180767d68daa5ae27127a8f043cf8d9996351 Mon Sep 17 00:00:00 2001 From: iou1name Date: Fri, 6 Sep 2019 12:44:24 -0400 Subject: [PATCH] added arbitrary cutoff to wikipedia module --- modules/wikipedia.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/wikipedia.py b/modules/wikipedia.py index 2f3d9f3..dc646b4 100755 --- a/modules/wikipedia.py +++ b/modules/wikipedia.py @@ -33,6 +33,7 @@ def say_snippet(bot, query, show_url=True): msg = f'[\x0304WIKIPEDIA\x03] \x0310{page_name}\x03 | \x0312"{snippet}"' if show_url: msg = msg + f"\x03 | \x0307https://en.wikipedia.org/wiki/{query}" + msg = msg[:270] + '...' # arbitrary cutoff bot.msg(msg)