Merge pull request #6 from imeesa/patch-1

This commit is contained in:
WhatDidYouExpect 2025-04-01 07:49:34 +02:00 committed by GitHub
commit cae1418dd7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

4
bot.py
View file

@ -275,7 +275,7 @@ intents = discord.Intents.default()
intents.messages = True intents.messages = True
intents.message_content = True intents.message_content = True
bot = commands.Bot(command_prefix=PREFIX, intents=intents) bot = commands.Bot(command_prefix=PREFIX, intents=intents, allowed_mentions=discord.AllowedMentions(everyone=False, roles=False, users=False, replied_user=True))
memory = load_memory() memory = load_memory()
markov_model = load_markov_model() markov_model = load_markov_model()
if not markov_model: if not markov_model:
@ -607,4 +607,4 @@ def improve_sentence_coherence(sentence):
sentence = sentence.replace(" i ", " I ") sentence = sentence.replace(" i ", " I ")
return sentence return sentence
bot.run(TOKEN) bot.run(TOKEN)