Rename Twitter module to Nitter

This commit is contained in:
Aciid 2023-03-06 11:58:48 +02:00
parent 3bdf703639
commit 3d17818737
No known key found for this signature in database
GPG Key ID: 9205A4BF02D15BC5
2 changed files with 4 additions and 4 deletions

View File

@ -708,14 +708,14 @@ including version, how many users are connected, and ping time.
* !mumble - Show info about the configured mumble server * !mumble - Show info about the configured mumble server
- !mumble (set|setserver) [host] ([port]) - Set the configured mumble server - !mumble (set|setserver) [host] ([port]) - Set the configured mumble server
### Twitter ### Nitter
Reads Twitter links from room, replaces domain with nitter, removes query parameters and posts link to room. Reads Twitter links from room, replaces domain with nitter, removes query parameters and posts link to room.
#### Usage #### Usage
* !twitter enable - enable converting twitter links to nitter links in this room (must be done as room admin) * !nitter enable - enable converting twitter links to nitter links in this room (must be done as room admin)
* !twitter disable - disable converting twitter links to nitter links in this room (must be done as room admin) * !nitter disable - disable converting twitter links to nitter links in this room (must be done as room admin)
## Bot setup ## Bot setup

View File

@ -56,7 +56,7 @@ class MatrixModule(BotModule):
args = event.body.split() args = event.body.split()
args.pop(0) args.pop(0)
if len(args) == 0: if len(args) == 0:
await bot.send_text(room, 'Usage: !twitter <enable|disable>') await bot.send_text(room, 'Usage: !nitter <enable|disable>')
return return
if len(args) == 1: if len(args) == 1:
if args[0] == 'enable': if args[0] == 'enable':