OnionSproutsBot merge requestshttps://gitlab.torproject.org/tpo/anti-censorship/gettor-project/OnionSproutsBot/-/merge_requests2023-04-22T12:23:31Zhttps://gitlab.torproject.org/tpo/anti-censorship/gettor-project/OnionSproutsBot/-/merge_requests/17Draft: Move dialogue.py to plugins/ folder2023-04-22T12:23:31Zn0tooseDraft: Move dialogue.py to plugins/ folderI basically did literally the exact same thing, it was supposed to work, it never did because Pyrogram threw me an error that it did not load any plugins from the `plugins` folder, and now it just miraculously works.
I'm highly suspicio...I basically did literally the exact same thing, it was supposed to work, it never did because Pyrogram threw me an error that it did not load any plugins from the `plugins` folder, and now it just miraculously works.
I'm highly suspicious of that, and as I intend to make every commit main "ready to be deployed", I am putting the change up for review just to be completely sure that this wasn't just me testing the change on an older version for now.https://gitlab.torproject.org/tpo/anti-censorship/gettor-project/OnionSproutsBot/-/merge_requests/19Help translators do their job better2022-10-26T12:40:25Zn0tooseHelp translators do their job betterAddresses #17.
This MR fixes some maintenance-related problems regarding our source strings and adds a plethora of comments that explain requirements, context and the thinking that went behind the source strings, as well as an overview ...Addresses #17.
This MR fixes some maintenance-related problems regarding our source strings and adds a plethora of comments that explain requirements, context and the thinking that went behind the source strings, as well as an overview as to where the string "fits in". I believed I added an amount of information that was appropriate, on a case-by-case basis.
My goal was to answer as many questions that a translator may have as possible. I used my past experiences as a point of reference. Many comments may seem redundant, but were copied and pasted under the assumption that a translator may not want to look through other "neighboring" translations in order to better understand the greater picture. I believe that such an approach may reduce the amount translations that are half-completed, as I am assuming that multiple different people will work on a specific language throughout the years and will not have a way to communicate with each other when building on top of each others' work.https://gitlab.torproject.org/tpo/anti-censorship/gettor-project/OnionSproutsBot/-/merge_requests/14remove code duplication in helpers.py2022-10-04T12:44:35Zzseriremove code duplication in helpers.pyinline the single used 4-line function from helpers.py to bot.py;
all other functions defined in that file were duplicated in ui.py, and unsused.
This commit also fixes a nitpick in ui.py: replace range(len(...)) with enumerate(...)inline the single used 4-line function from helpers.py to bot.py;
all other functions defined in that file were duplicated in ui.py, and unsused.
This commit also fixes a nitpick in ui.py: replace range(len(...)) with enumerate(...)https://gitlab.torproject.org/tpo/anti-censorship/gettor-project/OnionSproutsBot/-/merge_requests/15Fix type hints for callback queries2022-10-03T21:32:30ZzseriFix type hints for callback querieshttps://docs.pyrogram.org/api/types/CallbackQueryhttps://docs.pyrogram.org/api/types/CallbackQueryhttps://gitlab.torproject.org/tpo/anti-censorship/gettor-project/OnionSproutsBot/-/merge_requests/7Fix formatting using Black2022-09-09T17:16:51Zn0tooseFix formatting using Black