public inbox for [email protected]
 help / color / mirror / Atom feed
* [PATCH v1 00/11] Plan to redesign code
@ 2022-07-18 11:19 Muhammad Rizki
  2022-07-18 11:19 ` [PATCH v1 01/11] Fix __send_patch_msg function parameter Muhammad Rizki
                   ` (12 more replies)
  0 siblings, 13 replies; 20+ messages in thread
From: Muhammad Rizki @ 2022-07-18 11:19 UTC (permalink / raw)
  To: Ammar Faizi; +Cc: Muhammad Rizki, GNU/Weeb Mailing List

Hi sir,

In this series I want to redesign codes to make it clear and clean.
I've inherit the DaemonClient with the Pyrogram's Client, so with
this method we can create our custom functions, such as
send email message and patch message in the DaemonClient.

There 10 patches in this series:

- Patch 1 is to fix the lack of __send_patch_msg function parameter
- Patch 2 is just add required imports and remove unused imports
- Patch 3 is to add default temporary directory name
- Patch 4 is to move Telegram bot session file
- Patch 5 is to add traceback to get the error detail while debugging
- Patch 6 is to create send email and patch msg in the DaemonClient
- Patch 7 is just remove the ____send_patch_msg
- Patch 8 is to move utility functions to the utils file
- Patch 9 is to create fix_utf8_chars function
- Patch 10 is just cleaning some codes to make it looks more practice

Please give it a test, thanks.

Signed-off-by: Muhammad Rizki <[email protected]>
---

Ammar Faizi (1):
  daemon: Fix raw lore URL on the inline keyboard button

Muhammad Rizki (10):
  Fix __send_patch_msg function parameter
  Fix import problem
  Add default temporary directory
  Move the Telegram bot session into the storage directory
  Add traceback to get the error detail
  Re-design send email message to Telegram
  Move ____send_patch_msg
  Move prepare for patch and clean up patch functions
  Create fix_utf8_chars function
  Recode some codes

 daemon/packages/__init__.py       |  1 +
 daemon/packages/client.py         | 59 ++++++++++++++++++++++++++++++
 daemon/packages/plugins/scrape.py |  1 +
 daemon/run.py                     |  8 ++--
 daemon/scraper/bot.py             | 61 +++++++------------------------
 daemon/scraper/scraper.py         |  4 --
 daemon/scraper/utils.py           | 50 +++++++++++++++++++++----
 7 files changed, 121 insertions(+), 63 deletions(-)
 create mode 100644 daemon/packages/__init__.py
 create mode 100644 daemon/packages/client.py


base-commit: 339d992bdd77f19e67d0d9a30e3ac6eef1e4035a
-- 
Muhammad Rizki


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2022-07-18 12:49 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-18 11:19 [PATCH v1 00/11] Plan to redesign code Muhammad Rizki
2022-07-18 11:19 ` [PATCH v1 01/11] Fix __send_patch_msg function parameter Muhammad Rizki
2022-07-18 12:45   ` Ammar Faizi
2022-07-18 11:19 ` [PATCH v1 02/11] Fix import problem Muhammad Rizki
2022-07-18 11:19 ` [PATCH v1 03/11] Add default temporary directory Muhammad Rizki
2022-07-18 11:31   ` Ammar Faizi
2022-07-18 11:20 ` [PATCH v1 04/11] Move the Telegram bot session into the storage directory Muhammad Rizki
2022-07-18 11:20 ` [PATCH v1 05/11] daemon: Fix raw lore URL on the inline keyboard button Muhammad Rizki
2022-07-18 11:20 ` [PATCH v1 06/11] Add traceback to get the error detail Muhammad Rizki
2022-07-18 11:27   ` Ammar Faizi
2022-07-18 12:24     ` Kiizuha
2022-07-18 11:20 ` [PATCH v1 07/11] Re-design send email message to Telegram Muhammad Rizki
2022-07-18 12:49   ` Ammar Faizi
2022-07-18 11:20 ` [PATCH v1 08/11] Move ____send_patch_msg Muhammad Rizki
2022-07-18 11:20 ` [PATCH v1 09/11] Move prepare for patch and clean up patch functions Muhammad Rizki
2022-07-18 11:20 ` [PATCH v1 10/11] Create fix_utf8_chars function Muhammad Rizki
2022-07-18 11:20 ` [PATCH v1 11/11] Recode some codes Muhammad Rizki
2022-07-18 11:33   ` Ammar Faizi
2022-07-18 11:28 ` [PATCH v1 00/11] Plan to redesign code Ammar Faizi
2022-07-18 11:34 ` Ammar Faizi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox