Update app.py
Browse files
app.py
CHANGED
|
@@ -21,7 +21,7 @@ def middchat(bot_cache: BotCache, message: str, history: List[Tuple[str, str]])
|
|
| 21 |
"""
|
| 22 |
# get the bot options
|
| 23 |
# for new chats, fetch new bots
|
| 24 |
-
if message == "update bots":
|
| 25 |
all_bots = bot_cache.update()
|
| 26 |
else:
|
| 27 |
all_bots = bot_cache.bots
|
|
|
|
| 21 |
"""
|
| 22 |
# get the bot options
|
| 23 |
# for new chats, fetch new bots
|
| 24 |
+
if message == "update bots" or len(history) <= 1:
|
| 25 |
all_bots = bot_cache.update()
|
| 26 |
else:
|
| 27 |
all_bots = bot_cache.bots
|