diff options
Diffstat (limited to 'plugins/logger.py')
-rw-r--r-- | plugins/logger.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/logger.py b/plugins/logger.py index 1657700..a3453c5 100644 --- a/plugins/logger.py +++ b/plugins/logger.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- # --------------------------------------------------------------------------- # @@ -87,10 +87,10 @@ def logger_self(msg): def replace_items_regexp(t): t = t.group().strip(' @') return '<a href="https://t.me/%s" target="_blank">@%s</a>' % (t, t) - + def replace_items(text): return re.sub('@[\w]+', replace_items_regexp, text) - + def logger(raw_in): global CHAT_ID if LOG_DEBUG: |