Archived
1
0
Fork 0
Commit graph

511 commits

Author SHA1 Message Date
yzhh
3a6a5162fe Update message.py 2022-05-12 22:25:22 +08:00
yzhh
0b085cec64 Revert "temporary change logging level for test"
This reverts commit 55d8621007.
2022-05-08 23:28:12 +08:00
yzhh
55d8621007 temporary change logging level for test 2022-05-08 23:23:56 +08:00
yzhh
fc68d9ba8d test 2022-05-08 23:15:20 +08:00
yzhh
cf6ba4397d test 2022-05-08 23:13:29 +08:00
yzhh
1e453bae08 fixed an logger format issue 2022-05-08 14:32:42 +08:00
yzhh
2ce6a25e5c Update client.py 2022-05-08 13:48:16 +08:00
yzhh
24aa5d0712 update anti-autofilter wordlist 2022-04-23 22:32:08 +08:00
yzhh
7acf2f2739 temporarily disable dungeons module 2022-04-23 22:22:56 +08:00
yzhh
ce7b0f0d10 Update message.py 2022-04-14 18:57:20 +08:00
yzhh
d4723754dc Update chain.py 2022-04-04 14:20:22 +08:00
yzhh
0275abb5c4 convert discord embed 2022-04-04 14:16:39 +08:00
yzhh
8cfdaa2da2 update 2022-04-01 22:55:21 +08:00
yzhh
3bc048ea6b mention 2022-03-16 19:20:30 +08:00
yzhh
96ae41cdb7 . 2022-03-05 21:34:08 +08:00
yzhh
cbebb93d1b Update __init__.py 2022-02-27 18:43:21 +08:00
yzhh
cf4a107352 Revert "Update component.py"
This reverts commit b433283dfa.
2022-02-25 22:22:57 +08:00
yzhh
b433283dfa Update component.py 2022-02-24 23:48:20 +08:00
yzhh
0ed82bb870 Update __init__.py 2022-02-06 20:36:13 +08:00
yzhh
1608c18def enable middleman and disable poke for security
for QQ
2022-02-06 17:39:18 +08:00
yzhh
f9a1812599 disable auto approve friend requests 2022-02-04 15:24:02 +08:00
yzhh
47d8b444c3 Update message.py 2022-02-02 13:16:49 +08:00
yzhh
42ada25131 update 2022-01-29 19:25:23 +08:00
yzhh
d165d6525b Update __init__.py 2022-01-29 16:49:13 +08:00
yzhh
ebf7115e8d pageid query support for wiki module 2022-01-27 21:16:53 +08:00
yzhh
0ef1033e26 . 2022-01-26 22:13:36 +08:00
yzhh
1a530e12f7 update 2022-01-26 21:45:17 +08:00
yzhh
025cf1f997 u 2022-01-26 17:52:17 +08:00
yzhh
f0cb6f06e3 Remove FetchedTarget.sendMessage and add FetchedTarget.sendDirectMessage methods 2022-01-26 16:54:57 +08:00
yzhh
b23cee7d03 Update message.py 2022-01-25 15:04:50 +08:00
yzhh
fcc0323a1a update 2022-01-20 21:31:50 +08:00
yzhh
3c974216fc Update logger.py 2022-01-20 21:06:06 +08:00
yzhh
4dd346eaad autoformat 2022-01-20 20:13:03 +08:00
yzhh
e7e5cf4efe Update chain.py 2022-01-18 20:57:04 +08:00
yzhh
ba8b5c9671 Update logger.py 2022-01-18 20:46:56 +08:00
yzhh
6aaf33f28c some changes to logging 2022-01-18 20:32:43 +08:00
yzhh
bd9ea33f6b Update bot.py 2022-01-18 18:14:38 +08:00
yzhh
bfec03fb96 Merge branch 'master' of https://github.com/Teahouse-Studios/bot 2022-01-18 17:57:25 +08:00
yzhh
90eea43b53 add disable_mm option 2022-01-18 17:57:22 +08:00
Dianliang233
5f42a883e8
Debug 2022-01-18 12:06:09 +08:00
yzhh
bf16cd5a96 aaaaaaaaaaa 2022-01-17 23:34:07 +08:00
yzhh
c1356a6c69 aaaaaa 2022-01-17 23:30:38 +08:00
yzhh
a6979301df caesar encrypt 2022-01-17 22:54:59 +08:00
yzhh
7044b45c8a Update bot.py 2022-01-17 22:38:42 +08:00
yzhh
f27a386c67 temporary enable middleman for aiocqhttp 2022-01-17 22:35:51 +08:00
yzhh
e73323a5fa add Url elements 2022-01-17 21:28:49 +08:00
yzhh
80df75f2f2 Update message.py 2022-01-16 21:44:57 +08:00
yzhh
23919cc8ee support reply to confirm[aiocqhttp only] 2022-01-16 21:44:24 +08:00
yzhh
27603b6917 ..wait 2022-01-16 21:25:39 +08:00
yzhh
b9b5c00702 more feature attributes 2022-01-16 21:24:15 +08:00
yzhh
93871b87d0 add FinishedSession 2022-01-15 22:28:35 +08:00
yzhh
39675bf5d4 add FetchedSession 2022-01-15 21:46:23 +08:00
yzhh
b8ef0a4b00 Update message_guild.py 2022-01-14 22:26:09 +08:00
yzhh
b5fc21b7c6 add detail for recording unfriendly actions 2022-01-14 21:03:15 +08:00
yzhh
4de7c45b79 use 233 as reboot exit code instead of 512
due to linux behavior
2022-01-14 20:39:51 +08:00
yzhh
cfc84471fd Update 2022-01-14 17:51:17 +08:00
MysticNebula70
faa672fa7c
Update __init__.py 2022-01-14 17:34:22 +08:00
MysticNebula70
eea5d68cfd
Update __init__.py 2022-01-14 17:32:45 +08:00
yzhh
2d467a1cf3 Reimplement restart command #121 2022-01-13 23:50:17 +08:00
yzhh
c916c82de0 Update message.py 2022-01-13 20:09:51 +08:00
yzhh
2a20973045 remove smms
unused
2022-01-13 20:08:14 +08:00
yzhh
df28ecefb6 add site whitelist to KeCode for security 2022-01-10 23:30:41 +08:00
yzhh
044b588d89 re-support embed image
discord side needs the smms image hosting token to send image
2022-01-10 22:32:47 +08:00
Dianliang233
f810cca4ae
Merge branch 'master' into dev/meme 2022-01-08 22:04:08 +08:00
Dianliang233
a0344f8d3d
Add nbnhhsh from dev/meme 2022-01-08 20:27:46 +08:00
Dianliang233
a7344fe10e
Merge branch 'dev/meme' of https://github.com/Teahouse-Studios/bot into dev/meme 2022-01-08 19:25:23 +08:00
Dianliang233
63656af42f
several bugfixes
The part of query jikiwiki still doesn't work
2022-01-08 19:23:31 +08:00
Dianliang233
fa658791fd
Add some code, need to be debugged 2022-01-08 19:21:51 +08:00
Dianliang233
cf26736977
Let's shut the fxxk up 2022-01-08 19:05:17 +08:00
Dianliang233
c2edf730b7
Merge branch 'master' of https://github.com/Teahouse-Studios/bot 2022-01-08 16:38:39 +08:00
Dianliang233
a334041b3f
Show user's permission in whoami
Also added MessageSession.checkNativePermission(), just for fun
2022-01-08 16:37:03 +08:00
yzhh
27a34453bc add disable secret check parameter 2022-01-08 16:08:25 +08:00
Dianliang233
998d247ca9
Rename everything unit_test to console & extra for whoami
This is what it should have been like
2022-01-08 15:31:30 +08:00
Dianliang233
80b0fc9fe8
Add bot moderation util commands 2022-01-08 15:17:21 +08:00
yzhh
30107139ab Update image_table.py 2022-01-08 00:27:57 +08:00
yzhh
bb1995e882 Update image_table.py 2022-01-08 00:26:38 +08:00
yzhh
028ad877b9
Update image_table.py 2022-01-08 00:21:08 +08:00
yzhh
eec737c75d Update image_table.py 2022-01-07 23:50:43 +08:00
yzhh
17ff0f0b16 add httpcat 2022-01-07 23:16:28 +08:00
yzhh
7a84dde223 add KeCode
Used in situations where the use of Message elements is not suitable
2022-01-07 23:02:57 +08:00
yzhh
ef80952954 update 2022-01-05 19:14:45 +08:00
yzhh
ec102ba7e4 Update chain.py 2022-01-04 23:32:09 +08:00
yzhh
a5d2cd0e5d several bugfixes
The part of query jikiwiki still doesn't work
2022-01-04 23:28:14 +08:00
Dianliang233
beeda64d7c
Add some code, need to be debugged 2022-01-03 17:13:42 +08:00
yzhh
71bc955970
Update chain.py 2022-01-01 01:53:08 +08:00
yzhh
e6d7cca52f Use Error Message Template 2021-12-31 23:08:23 +08:00
yzhh
2af03986e1 add MessageChain elements 2021-12-31 22:44:34 +08:00
yzhh
eec8eca672 Update message.py 2021-12-26 12:04:12 +08:00
yzhh
650a76a194 add embed elements 2021-12-25 22:01:33 +08:00
yzhh
9f6e1c1cc2 update 2021-12-25 16:00:59 +08:00
yzhh
75b3a45263 bugfix 2021-12-24 00:18:46 +08:00
yzhh
4b6c60abd6 Update message.py 2021-12-22 21:13:12 +08:00
yzhh
c832c8fc19 Update message.py 2021-12-22 21:09:37 +08:00
yzhh
e7f662ac4b add sudo command 2021-12-22 21:06:40 +08:00
yzhh
808e599a4b use modified html2text
To remove link title
2021-12-06 20:49:50 +08:00
Dianliang233
969f3fb76a
Patch secret check to not include empty strings 2021-12-04 16:50:53 +08:00
yzhh
463d2c9982 Update message.py 2021-12-03 19:50:52 +08:00
yzhh
6bcba0c368 bugfix 2021-11-25 23:40:30 +08:00
yzhh
91d44b020d update issue template 2021-11-21 21:20:07 +08:00
yzhh
3012e12206 replace old link 2021-11-20 23:30:03 +08:00
yzhh
8468f3ed76 Update message_guild.py 2021-11-20 00:53:57 +08:00
yzhh
b457b61fa1 Update command.py 2021-11-20 00:52:08 +08:00
yzhh
1b4f5c585d Update command.py 2021-11-20 00:49:48 +08:00
yzhh
c258554be0 ignore self message 2021-11-20 00:40:47 +08:00
yzhh
f9dce522e3 global enable/disable test 2021-11-20 00:33:53 +08:00
yzhh
ef9ad9b746 Update message.py 2021-11-19 12:55:05 +08:00
yzhh
80997a49d4 Update message.py 2021-11-18 18:48:07 +08:00
yzhh
40f2a473c9 bugfix 2021-11-18 00:17:41 +08:00
yzhh
5b7c0b3261 Update message.py 2021-11-17 22:20:51 +08:00
yzhh
58acfa97f6 add secret check 2021-11-17 22:14:57 +08:00
yzhh
e0dda4dd08
bugfix 2021-11-17 07:08:09 +08:00
yzhh
e06f1dd13b guild support 2021-11-16 22:19:48 +08:00
yzhh
37cf06dd15 why i do this
BlackList -> BlockList
WhiteList -> allowList
2021-11-16 00:26:11 +08:00
yzhh
3f863fe1bc add toggle typing 2021-11-14 17:57:53 +08:00
yzhh
754685f22d Update dirty_check.py 2021-11-13 18:53:04 +08:00
yzhh
8e301fd1be bugfix? 2021-11-13 13:40:19 +08:00
yzhh
50423ceff5 Update bot.py 2021-11-12 22:55:29 +08:00
yzhh
0f4c439150 Update bot.py 2021-11-12 22:45:31 +08:00
yzhh
6fc35668ef update 2021-11-12 22:43:04 +08:00
yzhh
11be9e095e update 2021-11-12 22:25:53 +08:00
yzhh
3a48f59441 Update bot.py 2021-11-10 13:00:03 +08:00
yzhh
50d7220bde bugfix 2021-11-09 21:48:41 +08:00
yzhh
d47d41e295
Update message.py 2021-11-09 11:24:40 +08:00
yzhh
f646fa9f8c Update message.py 2021-11-09 00:22:36 +08:00
yzhh
c4e166bd8c update 2021-11-09 00:09:06 +08:00
yzhh
95143a00c0 Update bot.py 2021-11-06 20:59:35 +08:00
yzhh
eee76bb019 bugfix 2021-11-06 20:01:37 +08:00
yzhh
0d8cea1402 add receive filter for aiocqhttp 2021-11-05 22:08:51 +08:00
yzhh
883e7fefc3 Update message.py 2021-11-03 20:33:05 +08:00
yzhh
c94998ec79 add sitenotice regex expression for wiki_inline 2021-11-02 22:58:42 +08:00
yzhh
18f7ba0c27 add back dirty word check for query wiki 2021-11-01 23:56:32 +08:00
yzhh
658afbb432
Merge branch 'master' into dev/wiki_whitelist 2021-11-01 22:04:08 +08:00
yzhh
11cec6392f enable wikilib v2 2021-10-31 23:59:18 +08:00
yzhh
1b1100e3db Update message.py 2021-10-24 19:02:26 +08:00
yzhh
7e862253e2 Update message.py 2021-10-24 19:01:59 +08:00
yzhh
68a49c799e new decorator 2021-10-24 18:55:45 +08:00
yzhh
aab0b1d89c Update message.py 2021-10-22 22:27:49 +08:00
yzhh
93e78cc3e1 add ExecutionLock 2021-10-22 21:24:09 +08:00
yzhh
9d078faf52 auto warning & temp ban 2021-10-20 22:04:30 +08:00
yzhh
17544445bf fixed an bug about permissions 2021-10-19 18:11:47 +08:00
yzhh
2215d36c71 Create tos.py 2021-10-18 23:50:46 +08:00
yzhh
4b64c00e18 bugfix 2021-10-17 01:01:41 +08:00
yzhh
dadd6b82fe auto dealing with mute operations that violate tos 2021-10-17 00:17:21 +08:00
yzhh
2351df0546 Update bot.py 2021-10-16 18:42:54 +08:00
yzhh
1932bb67dc Update bot.py 2021-10-16 18:26:56 +08:00
yzhh
8f63949287 Update bot.py 2021-10-16 13:24:53 +08:00
yzhh
7fe8ed51bb Update message.py 2021-10-16 13:15:55 +08:00
yzhh
02e49f1fc4 that is my port onii-chan 2021-10-16 01:52:40 +08:00
yzhh
dd620102bc update command parser 2021-10-16 01:36:22 +08:00
yzhh
337583ea21 try to fix regex function 2021-10-15 19:14:05 +08:00
yzhh
6d728184ff bugfix 2021-10-15 18:21:34 +08:00
yzhh
efb34e4f17 ? 2021-10-14 23:29:45 +08:00
yzhh
e20ffa7d44 ? 2021-10-14 23:29:26 +08:00
yzhh
01d8b7b70c ? 2021-10-14 23:21:31 +08:00
yzhh
4b7e40aaf8 fixed hardcode loader 2021-10-14 23:18:47 +08:00
yzhh
12d9a07cc8 add StartUp elements 2021-10-14 22:49:12 +08:00
yzhh
01e9f19f10 add "on_" prefix for schedule decorator 2021-10-14 20:27:53 +08:00
yzhh
cedbde762b add "on_" prefix for regex decorator 2021-10-14 20:25:24 +08:00
yzhh
f5cb0e2df8 add "on_" prefix for command decorator 2021-10-14 20:22:58 +08:00
yzhh
898e0e67f4 move core.loader.decorator to core.decorator 2021-10-14 20:20:34 +08:00
yzhh
df246d873a add docs for decorators; introduce regex decorator 2021-10-13 23:22:11 +08:00
yzhh
f032212b6c port mai-bot as module 2021-10-12 23:02:36 +08:00
yzhh
e36bc78403 new rc and ab 2021-10-11 22:45:28 +08:00
yzhh
04470accef logger 2021-10-10 22:05:19 +08:00
yzhh
53d28d01a4 bombed something 2021-10-09 21:32:54 +08:00
yzhh
68ae5acec9 disable aiocqhttp 2021-10-09 21:08:18 +08:00
yzhh
c5254d8f83 Update message.py 2021-10-08 21:14:09 +08:00
yzhh
31cbadde3b Update message.py 2021-10-08 21:13:47 +08:00
yzhh
3c97cc084c unescape html entites 2021-10-08 20:25:57 +08:00
yzhh
15a9767fec use aiocqhttp 2021-10-08 19:54:27 +08:00
yzhh
0220a4dcda bugffix 2021-10-07 23:54:37 +08:00
yzhh
e8510488d6 Update bot.py 2021-10-02 15:05:50 +08:00
Dianliang233
e6c4bee841
Aduit test 2021-10-01 09:18:04 +08:00
yzhh
298dd2e23d remove random sleep 2021-09-30 23:57:24 +08:00
Dianliang233
cc5ee7e4e7
Module dev credit
Fixes #65
2021-09-19 20:52:42 +08:00
yzhh
486895778e retry test 2021-09-12 20:51:13 +08:00
yzhh
24098d80db recommend modules and allownone 2021-09-11 02:05:27 +08:00
yzhh
ef4f751d55 ignore nduge error 2021-09-10 23:34:07 +08:00
yzhh
0815afead6 Update dirty_check.py 2021-09-07 21:08:21 +08:00
yzhh
0ba34e850b bugfix 2021-09-06 13:13:03 +08:00
yzhh
75ed81b4e6 Update command.py 2021-09-04 21:27:23 +08:00
yzhh
93cd4bf180 bugfix 2021-09-04 03:19:07 +08:00
yzhh
c3ace2f8dc schedule decorator and post_message 2021-08-31 02:53:39 +08:00
yzhh
8b0b23101b use ujson instead of original built-in json 2021-08-30 00:53:43 +08:00
yzhh
7271ae3eeb match to github 2021-08-27 00:37:18 +08:00
yzhh
43bb225656 add rollback when commit failed 2021-08-27 00:24:21 +08:00
yzhh
6d5ed7eb73 Update message.py 2021-08-26 00:30:50 +08:00
yzhh
0aec73f297 bugfix 2021-08-25 23:33:58 +08:00
yzhh
c00a1163a3 add qq message logging to db 2021-08-25 23:15:20 +08:00
yzhh
bc730acbcb aiohttp_retry 2021-08-25 22:32:37 +08:00
yzhh
5b118d7b82 less usage 2021-08-25 19:45:03 +08:00
yzhh
c7294a355f query cache test 2021-08-25 19:23:59 +08:00
yzhh
4dd232062e scheduler bugfix 2021-08-24 19:00:13 +08:00
yzhh
2ce0fc7d55 fixed cache issue 2021-08-24 18:22:36 +08:00
Dianliang233
8b0ad42d31
Add bug report link to every internal error 2021-08-24 14:49:35 +08:00
yzhh
e26aa9ac47 fack 2021-08-24 00:49:54 +08:00
yzhh
47a8901a6f Update message.py 2021-08-24 00:48:55 +08:00
yzhh
9b89b0c7ae Update message.py 2021-08-24 00:45:05 +08:00
yzhh
f7f9e2e936 bugfix 2021-08-24 00:08:21 +08:00
yzhh
8138838a3b fixed alerts 2021-08-23 20:44:31 +08:00