Archived
1
0
Fork 0
Commit graph

525 commits

Author SHA1 Message Date
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
yzhh
6949c923d6 bugfix 2021-08-22 22:55:25 +08:00
yzhh
493aaab4fa add back something and bugfix 2021-08-21 23:58:07 +08:00
yzhh
016450340a FUCK YOU GBK 2021-08-21 15:45:21 +08:00
yzhh
0797ea3967 bugfix 2021-08-21 00:32:46 +08:00
yzhh
ae60ce827f gitignore 2021-08-19 20:19:54 +08:00
yzhh
65f3f85248 private assets 2021-08-19 20:17:48 +08:00
yzhh
1f853f10c2 aiogram scheduler support 2021-08-18 21:11:14 +08:00
yzhh
e48fd8c3b2 more customizable message tasks 2021-08-17 23:35:54 +08:00
yzhh
3840e5de63 introduce MessageTaskManager 2021-08-17 00:07:04 +08:00
yzhh
8c46df1157 aiogram test
msg.waitConfirm and scheduler is currently not supported since I can't understand the doc, may fix them after
2021-08-14 23:26:10 +08:00
yzhh
b6b3641e0d Revert "move core.loader.decorator and core.loader.options to core"
This reverts commit 009fc6355a.
2021-08-14 21:10:52 +08:00
yzhh
009fc6355a move core.loader.decorator and core.loader.options to core 2021-08-14 16:45:47 +08:00
Dianliang233
9713352f7c
Rescheduled i18n to v4.1
Issue: #42
2021-08-11 21:08:13 +08:00
yzhh
b35ef74a1a clean up duplicate code 2021-08-07 20:55:07 +08:00
yzhh
f6fb290a27 remove duplicate part of mcv_jira_rss 2021-08-07 15:56:48 +08:00
Dianliang233
3a7c69d3cc
Address code quality issues 2021-08-07 11:59:58 +08:00
yzhh
02f9c55257 add docs for core.elements.message.sendMessage 2021-08-06 22:10:48 +08:00
yzhh
c163a67082 scheduler test(may not works properly, but it works!) 2021-08-05 00:14:23 +08:00
yzhh
123cafa261 fetch test 2021-08-04 00:04:59 +08:00
yzhh
f2a66489c6 get target 2021-08-02 23:35:45 +08:00
Dianliang233
65597d9203
More debugging (still not yet usable) 2021-08-02 17:29:44 +08:00
Dianliang233
3e25ad1cde
i18n (not yet working, need debugging) 2021-08-02 15:32:16 +08:00
yzhh
1a1cb0bd04 #45 2021-08-02 12:14:26 +08:00
yzhh
7f540f8ad3 remove dynamic bind template 2021-08-01 22:54:25 +08:00
yzhh
05b330aa90 aaaaaaaaaaaaaaaaaa
给我整明白了属于是
2021-07-31 22:26:41 +08:00
yzhh
77da971416 Update internal.py 2021-07-31 21:11:39 +08:00
yzhh
109dec0fe5 fixed a bug cause alias option can't support list type 2021-07-31 20:54:01 +08:00
yzhh
3b844257bb fixed a table bug 2021-07-31 03:32:58 +08:00
yzhh
e89d3cfe75 rewrite unit test 2021-07-31 02:06:04 +08:00
yzhh
d1768aa9df port wiki module to v4 2021-07-29 02:51:24 +08:00
yzhh
1c34afc0a2 Reproduce something 2021-07-28 01:42:47 +08:00
yzhh
36d8c23d44 update 2021-07-28 00:03:48 +08:00
yzhh
e3b16bd76b rewrite option 2021-07-27 22:31:45 +08:00
yzhh
a102c7afd9 rewrite regex part 2021-07-26 22:33:49 +08:00
yzhh
95e227e6db Update command.py 2021-07-26 21:28:38 +08:00
yzhh
0442699b0f rewrite 2021-07-26 20:43:51 +08:00
yzhh
becbddb6ca Update __init__.py 2021-07-25 01:24:21 +08:00
yzhh
5948f35224 Update template.pyi 2021-07-25 01:14:55 +08:00
yzhh
389608ad55 a small bug 2021-07-24 21:59:17 +08:00
yzhh
671c4efc19 Update template.pyi 2021-07-24 21:53:32 +08:00
yzhh
9020628818 Create template.pyi 2021-07-24 21:43:26 +08:00
yzhh
2479fc58cc Delete loop.py 2021-07-24 21:35:24 +08:00
yzhh
650196e43d delete old database 2021-07-24 21:07:50 +08:00
yzhh
e6d51b45e0 refactor MessageSession 2021-07-24 16:59:15 +08:00
yzhh
ecd568d70e discord support 2021-07-22 01:58:33 +08:00
yzhh
5279c2c75b 1 2021-07-20 15:01:12 +08:00
yzhh
47b081aef0 new command parser is working now 2021-07-20 00:12:29 +08:00
yzhh
63440959c4 update docopt to docopt-ng 0.7.2 2021-07-19 13:34:29 +08:00
yzhh
9eea0351c4 new command parser(not used now) 2021-07-19 00:17:59 +08:00
yzhh
e7604ec8b2 new command parser(not used now) 2021-07-19 00:17:09 +08:00
yzhh
582824e2ab Did you write a lot of code again?
Yes, but actually no
2021-07-16 23:50:25 +08:00
yzhh
f1bc517332 rename and rewrite something 2021-07-15 22:59:32 +08:00
yzhh
0d8354a6ea 🐟 👋 2021-07-13 23:48:43 +08:00
yzhh
b429dbc17f 🐟 👋 2021-07-12 21:31:11 +08:00
yzhh
067e80962c just save works
nothing break change, just move and rename something 🐟 👋
2021-07-11 22:20:24 +08:00
yzhh
72493e0e4d move database.utils to database __init__.py 2021-07-11 10:19:40 +08:00
yzhh
0742fc1bac rewrite enable/disable function; rewriting others 2021-07-11 01:05:07 +08:00
yzhh
45d1a3c316 remove something 2021-07-09 17:41:06 +08:00
yzhh
44a49b7c7d Update parser.py 2021-07-09 17:36:38 +08:00
yzhh
d362c412d3 rename "Plugin" to "Module" 2021-07-09 17:35:23 +08:00
yzhh
d862498387 Delete loader_old.py 2021-07-09 17:34:46 +08:00
yzhh
d55423bc0d Update parser.py 2021-07-08 23:52:05 +08:00
yzhh
f07afdccfa Update loader.py 2021-07-08 23:51:58 +08:00
yzhh
6010c5a7d4 Update decorator.py 2021-07-08 23:51:51 +08:00
yzhh
ed91e037e1 saved 2021-07-08 00:00:24 +08:00
yzhh
028a9363b0 decorator test 2021-07-07 02:00:26 +08:00
yzhh
69e8df9147 Update template.py 2021-06-19 11:37:48 +08:00
yzhh
99fed37f72 Update template.py 2021-06-19 11:36:29 +08:00
yzhh
df6692a682 bug 2021-06-13 13:31:27 +08:00
yzhh
a1f9419913 *********** 2021-06-13 13:30:39 +08:00
yzhh
6a3dfbceb0 yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy是是是是是是是是是是是是是是是是是是是是是是是是是是是 2021-06-13 13:29:41 +08:00
yzhh
e937ce574b yyyyyyyyyyyyyyyyyyyyyyyyyyy 2021-06-13 13:27:52 +08:00
yzhh
b0df31091c 是是是是是是是是是是是是是是是是是是是是是是是是是是是是是是 2021-06-13 13:27:34 +08:00
yzhh
bcb660d918 hide traceback 2021-06-10 13:49:19 +08:00
yzhh
7ebd6b80ec split something 2021-06-08 20:53:49 +08:00
yzhh
a91af9947e Update template.py 2021-06-08 18:15:58 +08:00
yzhh
8e407bd0cd just split something 2021-06-07 21:49:39 +08:00
yzhh
c4723fbcd2 breaking change: alias system;don't use while True in the mcv rss check
rename 'wiki_regex' module to 'wiki_inline'
port 'wiki_regex' to 'wiki_inline'
port 'enable' to 'module enable'
port 'disable' to 'module disable'
port 'w' to 'wiki'
port 'u' to 'user'
port 'p' to 'ping'
port 's' to 'server'
rewrite 'enable' help
rewrite 'disable' help
new command parser comming soon.
2021-06-05 18:25:21 +08:00
yzhh
7e7686ac14 add group_useradmin 2021-06-04 23:54:08 +08:00
yzhh
53ee3a4e5c add help about minecraft_news; add alias type in loader(not working now) 2021-06-04 22:59:33 +08:00
yzhh
ac6a6f280a unnecessary catch exception 2021-06-04 21:53:24 +08:00
yzhh
ec607e8208 add try to sending an empty message prompt 2021-06-02 18:14:10 +08:00
yzhh
77104e12e8 fixed possibility that the list out of range 2021-05-31 23:30:22 +08:00
yzhh
ac9155f599 add confirm alias 2021-05-31 23:08:18 +08:00
yzhh
12f4ac1672 use a little walrus operator 2021-05-30 19:33:16 +08:00
yzhh
aa4e1f708e Update template.py 2021-05-30 18:21:11 +08:00