Rename Twitter module to Nitter
This commit is contained in:
parent
3bdf703639
commit
3d17818737
|
@ -708,14 +708,14 @@ including version, how many users are connected, and ping time.
|
|||
* !mumble - Show info about 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.
|
||||
|
||||
#### Usage
|
||||
|
||||
* !twitter 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 enable - enable 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
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ class MatrixModule(BotModule):
|
|||
args = event.body.split()
|
||||
args.pop(0)
|
||||
if len(args) == 0:
|
||||
await bot.send_text(room, 'Usage: !twitter <enable|disable>')
|
||||
await bot.send_text(room, 'Usage: !nitter <enable|disable>')
|
||||
return
|
||||
if len(args) == 1:
|
||||
if args[0] == 'enable':
|
Loading…
Reference in New Issue