From 96f3b7b76f7cf0279be8cd3ed8589b989d2723d3 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Fri, 5 Apr 2019 02:52:14 +0300 Subject: [PATCH] change sign format --- .idea/markdown-exported-files.xml | 8 ++++++++ main.py | 3 +-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 .idea/markdown-exported-files.xml diff --git a/.idea/markdown-exported-files.xml b/.idea/markdown-exported-files.xml new file mode 100644 index 0000000..5d1f129 --- /dev/null +++ b/.idea/markdown-exported-files.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/main.py b/main.py index e100f2b..668df4f 100755 --- a/main.py +++ b/main.py @@ -143,8 +143,7 @@ def _sign_text(text, m: Message, limit): sign = '' if text.startswith('!sign') or text.startswith('/sign'): text = text[5:] - sign = f'\n\n____________\n' \ - f'by {escape(m.from_user.full_name)}' + sign = f'\n\n — {escape(m.from_user.full_name)}' return text[:limit - len(sign)] + sign