Archived
1
0
Fork 0
Commit graph

92 commits

Author SHA1 Message Date
23ae1fb5f2
feat: partial matrix support (#680)
* build(deps): add matrix-nio

* build(deps): update requirements.txt for matrix-nio

* feat: add example config for matrix

* feat: init matrix support

* feat: do init sync to avoid receiving old messages

* feat: store next sync batch with file

* feat: parse matrix message

* feat: check moderator permission

* feat: redacting message

* feat: toMessageChain for m.text and m.image

* feat: drop m.notice messages

* feat: sending messages

* fix: power level fetching

* fix: rich reply fallback stripping

* style: less log

* feat: guess image content type

* fix: image upload

* feat: sending audio

* chore: add todo

* chore: add todo

* fix: use FinS.result to store room id

As the spec, room_id is an opaque identifier, and at least all valid ASCII characters except '/' and ':' can be included in room_id. This means in some servers, '|' may be included in room_id.

* fix: print RoomSendError

* fix: public rooms with two user are regarded as DM

* feat: resolving pm

* fix: nio.ErrorResponse

* feat: add post test

* feat: pm post test

* Revert "feat: pm post test"

This reverts commit 3688213c80.

* Revert "feat: add post test"

This reverts commit 259fcf54ca.

* feat: create TPM room

* feat: send typing notifications

* feat: leave empty room

* feat: rich reply formatted fallback support

* fix: import

* fix: include body in formatted rich reply fallbacks

* fix: escape line breaks in html

* fix: <br/> tag

* feat: improve matrix direct messaging

* feat: parse m.emote as m.text

* fix: command run blockingly

* fix: message send error handle

* fix: keep DM room

* fix: reuse of DM rooms

* feat: add error log

* docs: add deploy guide for matrix

* docs: add matrix to readme

* docs: add more warning

* style: remove explictly type declartion  (poljar/matrix-nio#417)

* feat: receive audio message

* feat: standard rich-reply fallback for m.emote

* chore: add matrix to bug report issues template
2023-07-30 17:41:01 +08:00
yzhh
70a7e206f6 e 2023-07-30 00:26:34 +08:00
yzhh
df472f6114 update 2023-07-30 00:24:35 +08:00
多羅狼
b5239f83b5
sort 2023-07-29 21:30:26 +08:00
多羅狼
b821234458
add slash by webrender 2023-07-29 20:49:47 +08:00
多羅狼
83c41f04f1
Update config.toml.example 2023-07-23 16:23:07 +08:00
多羅狼
c88762ef4a
Update 2023-07-23 16:22:30 +08:00
多羅狼
0f2aba0af2
Update config.toml.example 2023-07-17 11:49:41 +08:00
yzhh
280c4f9974 Update config.toml.example 2023-07-15 17:35:54 +08:00
多羅狼
0d35ad769d
Update config.toml.example 2023-07-15 17:34:30 +08:00
yzhh
3f1baa068d P 2023-07-15 01:03:00 +08:00
yzhh
d8ae9561f7 Merge branch 'master' of https://github.com/Teahouse-Studios/akari-bot 2023-07-15 01:02:14 +08:00
yzhh
2c89b2a7d7 Update config.toml.example 2023-07-15 01:02:01 +08:00
多羅狼
893d55c260
Revert "update config"
This reverts commit ecc0ed259f.
2023-07-15 00:57:34 +08:00
多羅狼
ecc0ed259f
update config 2023-07-15 00:42:45 +08:00
多羅狼
af65661e3f
Update config.toml.example 2023-07-14 16:48:53 +08:00
多羅狼
fb10f3bf11
update 2023-07-14 15:59:01 +08:00
多羅狼
e9e07e1b76
Add config prompt 2023-07-13 12:26:10 +08:00
多羅狼
3e01c65048
Update 2023-07-08 01:30:31 +08:00
多羅狼
342cae5016
lowercase 2023-07-06 00:23:07 +08:00
yzhh
011bc3a4fc update 2023-07-05 23:14:43 +08:00
多羅狼
a1da7cb92f
simplified confirm_command 2023-07-05 00:52:00 +08:00
yzhh
6aa157d5ee make command_prefix & confirm_command configurable 2023-07-05 00:18:45 +08:00
多羅狼
76ec00589f
Add kook_token remove unused config 2023-06-30 17:38:09 +08:00
yzhh
96251135d8 bruh 2023-06-29 21:41:01 +08:00
yzhh
cb5138b347 Update __init__.py 2023-06-29 21:38:53 +08:00
yzhh
ba4ed4583e use toml #517; auto convert cfg to toml 2023-06-29 20:57:46 +08:00
yzhh
1242b102f7 return NoneType instead of False value when field is not configured 2023-06-28 20:16:22 +08:00
多羅狼
1f0f2924a2
i18n 2023-06-17 19:52:42 +08:00
多羅狼
5d1e11b952
Update config.cfg.example 2023-06-10 13:58:48 +08:00
多羅狼
21bbf3e6ac
set dice config 2023-06-07 17:03:00 +08:00
yzhh
562247762b Update config.cfg.example 2023-05-30 21:14:40 +08:00
yzhh
7b384f806d #457 2023-05-30 21:14:00 +08:00
多羅狼
8c58935c64
Upd 2023-05-28 21:58:17 +08:00
SilianZ
17ccd1f6b4
[New]: 增添新模块【Music】 (#583)
* 增加新模块【Netease Cloud Music】

1. 基于(网易云音乐API)[https://github.com/Binaryify/NeteaseCloudMusicApi]开发
2. 接入了oa-webrender-api以生成图片
3. 对代码进行了i18n

* 更新 config.cfg.example

更新此部分代码以适配新模块

* 更新 DEPLOY.md

更新此部分代码以适配新模块

* Delete zh_tw.json

* Delete en_us.json

* Update modules/netease_cloud_music/__init__.py

Co-authored-by: 多羅狼 <Dorowolf314@gmail.com>

* Update modules/netease_cloud_music/__init__.py

Co-authored-by: 多羅狼 <Dorowolf314@gmail.com>

* Update modules/netease_cloud_music/__init__.py

Co-authored-by: 多羅狼 <Dorowolf314@gmail.com>

* 更新代码

* 借助了科技的力量简化了代码

*均由ChatGPT生成
1. 简化了逻辑和语法,去除了冗余的代码;
2. 使用 f-string 来构建字符串,提高了代码的可读性;
3. 减少了重复代码,使用列表推导式等更加简洁的方式完成任务。

* Update __init__.py

---------

Co-authored-by: 多羅狼 <Dorowolf314@gmail.com>
2023-05-28 21:19:32 +08:00
多羅狼
78755ff8f8
using by config 2023-05-21 17:11:39 +08:00
yzhh
440e264a92
Merge branch 'master' into dev/phigros_module 2023-05-17 10:45:52 +08:00
多羅狼
aca69cd38d
Update 2023-05-14 09:18:23 +08:00
多羅狼
c73b36b29c
split url 2023-05-02 22:31:41 +08:00
yzhh
f443d6c0be add minimum support for phigros b19 2023-04-29 16:19:10 +08:00
yzhh
cef07e1915 allow temp message session for aiocqhttp 2023-04-27 01:22:59 +08:00
多羅狼
67d02a3bb5
rename 2023-04-18 21:59:07 +08:00
多羅狼
85bbf54da5
Update config.cfg.example 2023-04-18 20:54:42 +08:00
多羅狼
8f0b8f0f08
hide API key 2023-04-18 20:54:01 +08:00
z0z0r4
98a737e052
Update config.cfg.example 2023-04-09 07:27:05 +08:00
z0z0r4
8ca1a95c96
Update config.cfg.example 2023-04-09 07:26:37 +08:00
z0z0r4
7d8648e150
Merge branch 'master' into master 2023-04-09 07:23:12 +08:00
z0z0r4
7b9e4d4e34
feat: config curseforge_api_key 2023-04-09 07:12:12 +08:00
yzhh
f71112a3e0 update 2023-04-09 01:01:27 +08:00
yzhh
2e7b57fef3 Update __init__.py 2023-04-05 12:48:00 +08:00