Skip to content

Commit 6ef6ee5

Browse files
committed
Add reply for ChatGPT
1 parent 2c144be commit 6ef6ee5

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

config.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ def log(logger_method):
3131

3232

3333
TELEGRAM_BOT_TOKEN = config(
34-
"TELEGRAM_BOT_TOKEN",
35-
default="put here the token of your bot",
36-
suppress_log=True
34+
"TELEGRAM_BOT_TOKEN", default="put here the token of your bot", suppress_log=True
3735
)
3836

3937
# How likely is the bot to be triggered by one of the patterns it recognises.
@@ -48,24 +46,19 @@ def log(logger_method):
4846
POLL_INTERVAL = config('POLL_INTERVAL', int, default=3)
4947

5048
# Bot message for start command
51-
BOT_GREETING = config('BOT_GREETING',
52-
default="Hi! I'm a friendly, slightly psychopath robot")
49+
BOT_GREETING = config('BOT_GREETING', default="Hi! I'm a friendly, slightly psychopath robot")
5350

5451
# A username longer than this will be considered non-human
5552
# - Allowed values: An integer larger than 1
56-
MAX_HUMAN_USERNAME_LENGTH = config('MAX_HUMAN_USERNAME_LENGTH',
57-
int,
58-
default=100)
53+
MAX_HUMAN_USERNAME_LENGTH = config('MAX_HUMAN_USERNAME_LENGTH', int, default=100)
5954

6055

6156
# We have found, through empiric evidence, that a large ration of Chinese
6257
# characters usually indicates the user is a spammer or bot.
6358
# This sets the maximum allowed percent of Chinese characters before
6459
# considering the user a bot.
6560
# - Allowed values: A float from 0 to 1
66-
MAX_CHINESE_CHARS_PERCENT = config('MAX_CHINESE_CHARS_PERCENT',
67-
float,
68-
default=0.15)
61+
MAX_CHINESE_CHARS_PERCENT = config('MAX_CHINESE_CHARS_PERCENT', float, default=0.15)
6962

7063

7164
# Delay (in seconds) to wait before sending welcome message. New users have
@@ -96,20 +89,27 @@ def bot_replies_enabled() -> bool:
9689
"Although never is often better than *right* now.",
9790
"If the implementation is hard to explain, it's a bad idea.",
9891
"If the implementation is easy to explain, it may be a good idea.",
99-
"Namespaces are one honking great idea -- let's do more of those!"
100-
]
92+
"Namespaces are one honking great idea -- let's do more of those!",
93+
]
10194

10295

10396
REPLIES = {
10497
("java",): "BIBA JABA!! ☕️",
10598
("cobol",): "BIBA KOBOL!! 💾",
10699
("javascript",): "BIBA JABAESKRIPT!! 🔮",
107100
("php",): "BIBA PEHACHEPÉ!! ⛱",
108-
("he visto", "has visto", "han visto", "visteis", "vieron", "vi"):
109-
"Yo he visto cosas que vosotros no creeríais. Atacar naves en llamas "
110-
"más allá de Orión. He visto Rayos-C brillar en la oscuridad cerca de "
111-
"la puerta de Tannhäuser. Todos esos momentos se perderán en el "
112-
"tiempo... como lágrimas en la lluvia. Es hora de morir. 🔫",
101+
("chatgpt", "gpt", "openai"): "BIBA CHATJEPETÉ!! 🤖",
102+
(
103+
"he visto",
104+
"has visto",
105+
"han visto",
106+
"visteis",
107+
"vieron",
108+
"vi",
109+
): "Yo he visto cosas que vosotros no creeríais. Atacar naves en llamas "
110+
"más allá de Orión. He visto Rayos-C brillar en la oscuridad cerca de "
111+
"la puerta de Tannhäuser. Todos esos momentos se perderán en el "
112+
"tiempo... como lágrimas en la lluvia. Es hora de morir. 🔫",
113113
("python", "pitón", "piton"): THE_ZEN_OF_PYTHON,
114114
}
115115

0 commit comments

Comments
 (0)