Updated plugin, makes it respond more intelligently
This commit is contained in:
parent
d721d6c6df
commit
7ba729f372
|
|
@ -361,7 +361,7 @@ async def handle_message(ctx):
|
||||||
if (len(very_recent_history) == 2):
|
if (len(very_recent_history) == 2):
|
||||||
if very_recent_history[0].startswith(f"{bot_name}") and not very_recent_history[1].startswith(f"{bot_name}"):
|
if very_recent_history[0].startswith(f"{bot_name}") and not very_recent_history[1].startswith(f"{bot_name}"):
|
||||||
random_roll = random.random()
|
random_roll = random.random()
|
||||||
if (random_roll < 0.7):
|
if (random_roll < 0.25):
|
||||||
logger.info("Messaged right after us... Replying")
|
logger.info("Messaged right after us... Replying")
|
||||||
await llm_response(ctx)
|
await llm_response(ctx)
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue