Archived
1
0
Fork 0
Commit graph

44 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
ba4ed4583e use toml #517; auto convert cfg to toml 2023-06-29 20:57:46 +08:00
yzhh
440e264a92
Merge branch 'master' into dev/phigros_module 2023-05-17 10:45:52 +08:00
yzhh
ba32295acd add update assets function 2023-05-01 00:31:17 +08:00
Dianliang233
d78a3f368a Add self_knowledge tool 2023-04-30 08:54:42 +08:00
Dianliang233
6754dff311 Add natural functionality 2023-02-09 11:10:34 +08:00
yzhh
7936266775 add basic command autotest & bugfixes 2022-06-19 00:21:59 +08:00
yzhh
44fa29b4e2 chemical code 2022-06-17 13:59:15 +08:00
yzhh
660ba179df code cleanup 2022-06-12 15:07:53 +08:00
yzhh
2c62be3f6d update mcbv & add mcbv_rss 2022-04-02 22:45:17 +08:00
yzhh
fcc0323a1a update 2022-01-20 21:31:50 +08:00
yzhh
e73323a5fa add Url elements 2022-01-17 21:28:49 +08:00
yzhh
2d467a1cf3 Reimplement restart command #121 2022-01-13 23:50:17 +08:00
yzhh
95e07b1595 2 2021-11-02 01:12:04 +08:00
yzhh
4b7e40aaf8 fixed hardcode loader 2021-10-14 23:18:47 +08:00
yzhh
f032212b6c port mai-bot as module 2021-10-12 23:02:36 +08:00
yzhh
15a9767fec use aiocqhttp 2021-10-08 19:54:27 +08:00
Dianliang233
499112f97b
Add feedback_news module
Closes #73
2021-10-01 10:28:33 +08:00
yzhh
c00a1163a3 add qq message logging to db 2021-08-25 23:15:20 +08:00
yzhh
ae60ce827f gitignore 2021-08-19 20:19:54 +08:00
yzhh
f6fb290a27 remove duplicate part of mcv_jira_rss 2021-08-07 15:56:48 +08:00
Dianliang233
ee48e5ed33
Fix #33 2021-08-02 12:40:29 +08:00
Dianliang233
fdabebcef7
Update ignore 2021-06-19 20:58:26 +08:00
yzhh
3e95311d63 auto init b30 resource now 2021-05-28 23:23:59 +08:00
yzhh
03f87f7353 more ping infomation 2021-04-28 21:39:15 +08:00
yzhh
7737b858e7 remove cache files 2021-04-10 22:44:15 +08:00
yzhh
819563a4d7 delete cache files 2021-04-08 20:23:38 +08:00
yzhh
782e398c59 refactor loader & bugfix 2021-04-03 00:35:26 +08:00
yzhh
b8034b33e4 update 2021-03-06 00:19:06 +08:00
Dianliang233
af795086b4 🙈 config 2021-02-19 18:13:31 +08:00
yzhh
2c9ebf275e update 2021-02-19 16:56:57 +08:00
yzhh
67bb2402f8 add cytoid b30/r30 2021-02-13 00:44:53 +08:00
yzhh
68236bdbb4 remove unused module help and refactor user 2021-02-09 21:05:19 +08:00
yzhh
0322600068 v3 2021-02-01 23:13:11 +08:00
yzhh
bb17c6a3da 1 2020-10-04 15:25:33 +08:00
LittleC
beb64bfa1f
:truct: rename assests to assets 2020-09-20 18:31:57 +08:00
LittleC
d5ceea07ce
🐛 shouldn't be here 2020-09-20 18:29:19 +08:00
yzhh
e1bc674e27 Automatically filter duplicate objects 2020-09-17 20:05:44 +08:00
yzhh
3fed576b5a update subbot to graia 2020-08-19 12:41:47 +08:00
yzhh
e200924011 remove unused files 2020-08-13 12:59:23 +08:00
yzhh
404ba6d87b Update .gitignore 2020-08-08 12:28:43 +08:00
yzhh
52b4a64d0c update 2020-08-07 14:24:22 +08:00
yzhh
5f1d004ca5 Update .gitignore 2020-08-04 17:23:59 +08:00
yzhh
6b52c7b7d0 Create .gitignore 2020-07-26 00:44:53 +08:00