Fixed that answers are directly to username

This commit is contained in:
Fotoente 2022-02-20 10:05:15 +01:00
parent d6763d4c6b
commit 06476ead2a
2 changed files with 4 additions and 3 deletions

3
.gitignore vendored
View file

@ -3,4 +3,5 @@ markov.json
test-rd.py
bot.cfg
__pycache__
/mia-markov-chain
mia-markov-chain
.venv

View file

@ -10,7 +10,7 @@ from roboduck import *
# Load Misskey configuration
config = configparser.ConfigParser()
config.read(Path(__file__).parent.joinpath('bot.cfg'))
uri = config.get("misskey", "instance_write")
uri = "https://" + config.get("misskey", "instance_write")
token = config.get("misskey", "token")
@ -41,7 +41,7 @@ class MyBot(commands.Bot):
async def on_mention(self, note: Note):
if not note.author.is_bot:
text = note.author.action.get_mention()
text = note.author.action.get_mention() + " "
text += create_sentence()
await note.reply(content=text) # Reply to a note