From 3d195e8e16b44a393f0e5339845c882c0feeca27 Mon Sep 17 00:00:00 2001 From: Ed Date: Fri, 18 Aug 2023 10:53:25 +0200 Subject: [PATCH 1/3] Added Telethon sessions to .gitignore --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 9624b59..dbc498a 100644 --- a/.gitignore +++ b/.gitignore @@ -160,4 +160,5 @@ cython_debug/ #.idea/ config.py -bot.session +*.session +*.session-* -- 2.47.3 From a3eca6e7d113e6cbe24ed18776589ce965569eb1 Mon Sep 17 00:00:00 2001 From: Ed Date: Fri, 18 Aug 2023 10:53:54 +0200 Subject: [PATCH 2/3] Fixed exception on sticker length limit + added logging to admin --- bot.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 05e9751..f28ec01 100644 --- a/bot.py +++ b/bot.py @@ -77,7 +77,8 @@ async def handler(ev): # Limit stickers ratio (so people don't print incredibly long stickers) if img.size[1]/img.size[0] > MAX_ASPECT_RATIO: - return ev.respond(RATIO_ERR_MSG) + await ev.respond(RATIO_ERR_MSG) + return # Remove transparency if img.mode == 'RGBA': @@ -95,6 +96,8 @@ async def handler(ev): img.save(IMAGE_PATH, 'PNG') + await client.forward_messages(ADMIN_ID, ev.message) + status_code = system(PRINT_COMMAND) if status_code == 0: print_log[ev.peer_id.user_id] = time() -- 2.47.3 From a6c4de8e2c218507fa82580d0204a333d346cfe5 Mon Sep 17 00:00:00 2001 From: Eloy Date: Sun, 21 Jan 2024 17:52:40 +0100 Subject: [PATCH 3/3] Add 37C3 to README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 33a0e92..90c4fe2 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ Currently, you can set any command to print your sticker (by default brother_ql * [MCH2022](https://mch2022.org) * [BornHack (2023)](https://bornhack.dk/bornhack-2023) * [Chaos Communication Camp (2023)](https://events.ccc.de/camp/2023/infos/index.html) +* [37th Chaos Communication Congress (2023)](https://events.ccc.de/congress/2023/infos/startpage.html) **Running it at your con? Add it with a pull request! :D** -- 2.47.3