mirror of
https://github.com/fotoente/MIsskey-ebooks-bot
synced 2024-11-10 05:44:14 +00:00
Fixed that answers are directly to username
This commit is contained in:
parent
d6763d4c6b
commit
06476ead2a
2 changed files with 4 additions and 3 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -3,4 +3,5 @@ markov.json
|
|||
test-rd.py
|
||||
bot.cfg
|
||||
__pycache__
|
||||
/mia-markov-chain
|
||||
mia-markov-chain
|
||||
.venv
|
4
rdbot.py
4
rdbot.py
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue