From c239dcf4895c373c5f3ec6b288b8ea31a212fd65 Mon Sep 17 00:00:00 2001 From: deadcade Date: Sat, 27 Aug 2022 16:31:37 +0200 Subject: [PATCH] Add translation to README --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 078fa6e..9359f21 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ - !shrug: Add `¯\_(ツ)_/¯` to the end of your message - !emoji_size: Set the default size for custom emojis - !emoji_list: Get a list of available emojis + #### 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. @@ -32,6 +33,11 @@ By default, some kaomojis are added to `data/textreplace.json`. This json file c - Example config: `{"glasses": "(⌐■_■)"}` - 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 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.