Commit Graph

163 Commits

Author SHA1 Message Date
夜坂雅 e013332e05 Update 2023-02-14 10:16:45 +08:00
夜坂雅 0274b0a8cf Properly preprocess forwarded message
Some forward message in Telegram, when forwarded to Matrix,
can also be a reply to some message.

Example:
https://t.me/archlinuxcn_offtopic/5472015
https://matrix.to/#/!TczZJIbozgTQfqUYBA:nichi.co/$vEBrHmAQxFTiH_rbUn_MkSfGYqhzGkGCUtmt-GazfUw

Correct this by stripping <mx-reply> first, then pattern match the
forwarded message content.
2023-02-13 17:27:07 +08:00
夜坂雅 d848f3f1bc Update 2023-02-13 17:23:29 +08:00
夜坂雅 1734650394 Update 2023-02-13 17:08:50 +08:00
夜坂雅 6b3e3edcde Update 2023-02-11 21:47:32 +08:00
夜坂雅 e4f241d8d9 Update 2023-02-09 14:18:19 +08:00
夜坂雅 e5e574a9b3 Update 2023-02-09 13:14:16 +08:00
夜坂雅 d50a0a9e51 Update 2023-02-09 13:10:14 +08:00
夜坂雅 8c82de7bc1 Update word cutter 2023-02-09 12:16:33 +08:00
夜坂雅 b47b92fc01 Update 2023-02-01 21:13:04 +08:00
夜坂雅 da637a2ba3 Switch to TOML 2023-02-01 20:48:51 +08:00
夜坂雅 c752e52ade Update 2022-12-29 08:25:13 +08:00
夜坂雅 05f4d233a9 Update 2022-12-28 10:56:06 +08:00
夜坂雅 e6ae0d9d47 Update 2022-12-26 16:48:16 +08:00
夜坂雅 e6d4791323 Add Python segmenter 2022-12-26 10:13:17 +08:00
夜坂雅 5f6e5becfa Add word segmenter builder 2022-12-25 22:21:31 +08:00
夜坂雅 804d8f5808 Add deps 2022-12-25 21:14:24 +08:00
夜坂雅 2e0f2dc902 Add word cloud functions 2022-12-25 21:10:23 +08:00
夜坂雅 584d131bfb Update 2022-12-25 14:26:25 +08:00
夜坂雅 8b693d862f Make encryption argument optional
Default is False (disables bot's support in encrypted rooms)
2022-12-25 10:28:52 +08:00
夜坂雅 f8e743c0bb Update 2022-12-25 10:24:59 +08:00
夜坂雅 bbe117a6b5 Update 2022-12-25 10:19:43 +08:00
夜坂雅 2a6a19b5d0 Update 2022-12-25 10:13:50 +08:00
夜坂雅 d6937661c5 Make recording messages optional 2022-12-25 10:03:07 +08:00
夜坂雅 49d428ebed Update 2022-12-25 09:48:21 +08:00
夜坂雅 871decdf86 Update 2022-12-25 09:47:24 +08:00
夜坂雅 8f87fb95a7 Fix GitHub Actions 2022-12-10 10:05:12 +08:00
夜坂雅 3b9852d9a6 Update 2022-12-10 10:01:47 +08:00
夜坂雅 329516375f Update 2022-12-06 09:33:58 +08:00
夜坂雅 b4a907f26e Update 2022-11-29 11:49:01 +08:00
夜坂雅 5c8588d037 Update 2022-11-23 20:53:25 +08:00
夜坂雅 514f844ea5 Switch quote image font to Sarasa Gothic SC 2022-11-23 19:53:14 +08:00
夜坂雅 c6c8471e76 Add TRPG dicer function 2022-11-22 16:08:03 +08:00
夜坂雅 0e82d3ad4f Update 2022-11-15 10:00:16 +08:00
夜坂雅 b71a5412c2 Update 2022-11-15 09:56:54 +08:00
夜坂雅 86ddcf7e9f Update 2022-11-15 09:27:15 +08:00
夜坂雅 2e382bd33b Change divergence algorithm 2022-11-14 13:14:54 +08:00
夜坂雅 6925642646 Add extension to send_avatar command 2022-11-12 17:52:58 +08:00
夜坂雅 de36218f0e Use exact matching on commands 2022-11-12 17:44:40 +08:00
夜坂雅 13a4ab3e70 Handle Ctrl-C
Add a simple handler for KeyboardInterrupt so doing Ctrl-C won't dump a
backtrace.
2022-11-12 13:58:13 +08:00
夜坂雅 78318e8e4e Update 2022-11-08 21:54:06 +08:00
夜坂雅 8a9f8adcb7 Add last_message command 2022-11-08 21:47:00 +08:00
夜坂雅 1882056625 Add user_id command 2022-11-08 21:28:08 +08:00
夜坂雅 0862cb6fe3 Update 2022-11-05 17:29:11 +08:00
夜坂雅 923bb5b23e Graceful handle exceptions in message handler 2022-11-05 14:17:54 +08:00
夜坂雅 d8a6a64ed2 Update 2022-11-05 14:14:30 +08:00
夜坂雅 407c654003 Update 2022-11-01 17:51:13 +08:00
夜坂雅 d59427d381 Update 2022-11-01 11:31:35 +08:00
夜坂雅 f4a9fe3761 Update 2022-10-22 22:51:59 +08:00
夜坂雅 4e2291a5c5 Update 2022-10-22 20:14:48 +08:00