fix les ping telegram
This commit is contained in:
parent
14acf07925
commit
19512c86ec
3 changed files with 4 additions and 4 deletions
|
@ -57,6 +57,6 @@ bots:
|
|||
channels:
|
||||
- server: irc.rezometz.org
|
||||
port: 6667
|
||||
channel: "#campus"
|
||||
bots: [sel, Macron, Patou, Claudy, Chuck]
|
||||
channel: "#test"
|
||||
bots: [sel]
|
||||
|
||||
|
|
|
@ -70,7 +70,7 @@ class Bot:
|
|||
username = user.split('!')[0]
|
||||
tg_user_match = self.tg_user_match.match(message)
|
||||
if 'bot' in username.lower() and tg_user_match:
|
||||
username = '@' + tg_user_match.groupdict()
|
||||
username = '@' + tg_user_match.groupdict()['username']
|
||||
|
||||
context = {
|
||||
'server': self.server,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import logging
|
||||
from logging.handlers import RotatingFileHandler
|
||||
|
||||
DEBUG = False
|
||||
DEBUG = True
|
||||
|
||||
if not DEBUG:
|
||||
BOT_FILE = '/etc/klafirc/bots.yaml'
|
||||
|
|
Loading…
Reference in a new issue