Add translation to README

This commit is contained in:
deadcade 2022-08-27 16:31:37 +02:00
parent 85d0fa4335
commit c239dcf489

View file

@ -17,6 +17,7 @@
- !shrug: Add `¯\_(ツ)_/¯` to the end of your message - !shrug: Add `¯\_(ツ)_/¯` to the end of your message
- !emoji_size: Set the default size for custom emojis - !emoji_size: Set the default size for custom emojis
- !emoji_list: Get a list of available emojis - !emoji_list: Get a list of available emojis
#### Ratelimit #### Ratelimit
Commands activated by users that aren't from the user itself are ratelimited, with a default of 1 command every 10 seconds. Commands activated by the user running the bot are not ratelimited. Commands activated by users that aren't from the user itself are ratelimited, with a default of 1 command every 10 seconds. Commands activated by the user running the bot are not ratelimited.
@ -32,6 +33,11 @@ By default, some kaomojis are added to `data/textreplace.json`. This json file c
- Example config: `{"glasses": "(⌐■_■)"}` - Example config: `{"glasses": "(⌐■_■)"}`
- Example usage: `;glasses;` which gets replaced with `(⌐■_■)` - Example usage: `;glasses;` which gets replaced with `(⌐■_■)`
### Automatic translation
If libretranslatepy is installed (the bindings module, not libretranslate itself), reacting to a message with either a US or UK flag will attempt to translate that message to English.
- libretranslatepy currently has a small issue, causing it to stop working on self hosted instances. Add `method="GET"` to line 63 in api.py to fix.
- If autodetecting languages does not work, react with the flag of the language you want to translate from.
### Encrypted rooms ### Encrypted rooms
By default, the bot's session is not verified. Verification is required to view and participate in encrypted rooms. To verify it's session, any other verified client with the "Manually verify by text" feature can be used. Element Android (and possibly iOS) is the only client I have found to support manual verification by choice instead of defaulting to verifying by emoji. By default, the bot's session is not verified. Verification is required to view and participate in encrypted rooms. To verify it's session, any other verified client with the "Manually verify by text" feature can be used. Element Android (and possibly iOS) is the only client I have found to support manual verification by choice instead of defaulting to verifying by emoji.