Compare commits
2 commits
165047581f
...
cbddda9a76
Author | SHA1 | Date | |
---|---|---|---|
cbddda9a76 | |||
1ffa300741 |
2 changed files with 1 additions and 4 deletions
|
@ -38,8 +38,5 @@ By default, the bot's session is not verified. Verification is required to view
|
|||
### Messages sent by selfbot
|
||||
Any messages sent by this selfbot, like responses to commands, will include `(SelfBot)` (and if linked, the source code) at the end of the message. This is to help room moderators quickly identify why exactly a user account is responding automatically, and will hopefully give the user running the selfbot a chance to disable it in a specific room before being removed by moderators. This does not affect edited messages.
|
||||
|
||||
### Broken features
|
||||
Using a feature of the bot that edits your message, like custom emojis, replacement text, or !shrug, while replying to another message, duplicates the reply in the edit.
|
||||
|
||||
### Support room
|
||||
The support room can be found [here](https://matrix.to/#/#deadcade-selfbot:deadca.de). It is recommended to keep testing in this room or another private room, as it is unencrypted and does not clutter other rooms.
|
||||
|
|
2
main.py
2
main.py
|
@ -355,7 +355,7 @@ async def message_callback(room: nio.MatrixRoom, event: nio.RoomMessageText) ->
|
|||
with open(settings["emojis_path"], "w") as f:
|
||||
json.dump(emojis, f)
|
||||
# Replace the emoij with the respective file
|
||||
new_body = new_body.replace(":" + emoji + ":" + ("" if not sizeset else f"{size}:"), f"<img src=\"{emojis[size][emoji]}\" alt=\"{emoji}\">", 1)
|
||||
new_body = new_body.replace(":" + emoji + ":" + ("" if not sizeset else f"{size}:"), f"<img height=\"{size}\" src=\"{emojis[size][emoji]}\" alt=\"{emoji}\">", 1)
|
||||
# Text replace processor
|
||||
if event.body.count(";") > 1:
|
||||
for to_replace in text_replace.keys():
|
||||
|
|
Loading…
Reference in a new issue