2
0
mirror of https://github.com/Nick80835/microbot synced 2025-08-29 13:38:55 +00:00

461 Commits

Author SHA1 Message Date
Nick80835
2b84d937ac rework permissions and command values a bit 2023-10-22 19:43:46 -04:00
Nick80835
b20c67d220 fix chance commands 2023-10-22 19:04:15 -04:00
Nick80835
6443a54d97 remove the last while True 2023-10-22 18:58:23 -04:00
Nick80835
f0e257c59b expose client in init alongside ldr 2023-10-22 18:51:36 -04:00
Nick80835
073c8ae47a remove extra get_me that I forgot to remove 2023-10-22 18:19:29 -04:00
Nick80835
87f5d7657d use minutes= not seconds= for simplicity 2023-10-21 21:28:24 -04:00
Nick80835
2c3aaaaef1 filter owner and sudo from usage 2023-10-21 21:05:48 -04:00
Nick80835
504f9cc1e6 allow everyone to use modmode 2023-10-21 20:59:06 -04:00
Nick80835
f24e56e00a add cooldown to mod commands 2023-10-21 20:57:02 -04:00
Nick80835
0119698e81 improve/fix moderation mentions 2023-10-21 20:35:06 -04:00
Nick80835
4aae840a8c add simple in-memory cmd use stat 2023-10-21 19:58:41 -04:00
Nick80835
ffea3fe581 mark admin commands as no_private 2023-10-21 19:48:07 -04:00
Nick80835
30238f088a clarify prefix doc 2023-10-21 19:40:45 -04:00
Nick80835
c799f34f89 improve type hinting/doc a bit 2023-10-21 19:30:14 -04:00
Nick80835
8857b4710d remove unused sub import 2023-10-17 13:25:28 -04:00
Nick80835
ac786333f4 allow moderating non-participants 2023-10-16 22:48:34 -04:00
Nick80835
fda5d69818 fixup input entity id stuff 2023-10-16 22:36:55 -04:00
Nick80835
530d3c2e7f make moderation commands more fun 2023-10-16 22:11:52 -04:00
Nick80835
3747a654e8 improve time matching, remove useless match 2023-10-16 21:12:29 -04:00
Nick80835
a75044fa39 fix potential issue in timed mute/ban 2023-10-16 20:50:07 -04:00
Nick80835
84f1c5998e we need 3.10 now actually 2023-10-16 20:37:59 -04:00
Nick80835
d81f3ba447 implement timed bans, and muting 2023-10-16 20:34:19 -04:00
Nick80835
ceb29e8583 parallel download cleanup 2023-10-16 19:25:50 -04:00
Nick80835
d58c0454e9 small cache cleanup
I don't really use this crap though
2023-10-16 19:23:42 -04:00
Nick80835
bbbf0d30e7 handle self-ban/kick gracefully 2023-10-16 19:10:22 -04:00
Nick80835
9035363b80 move log config out of bot init 2023-10-16 19:06:34 -04:00
Nick80835
22f51784f5 we need python 3.9 now 2023-10-16 19:02:11 -04:00
Nick80835
115fa99209 gracefully handle keyboardinterrupt 2023-10-16 18:40:25 -04:00
Nick80835
15007e5b27 add rough ban and kick commands
sudo-only for now
2023-10-16 18:37:23 -04:00
Nick80835
e6b2bcbfbc facilitate modmode commands 2023-10-16 18:13:41 -04:00
Nick80835
f588111344 rework startup 2023-10-16 14:32:57 -04:00
Nick80835
dbd7a564c3 forgot to remove a silent bail check 2023-10-16 09:54:11 -04:00
Nick80835
e75f9b13f5 remove useless chat_db definition 2023-10-16 09:54:11 -04:00
Nick80835
09ee6a4608 add a client shortcut to eval/exec 2023-10-16 09:54:11 -04:00
Nick80835
07a5cdbcb2 improve sudo/blacklist handling 2023-10-16 09:54:11 -04:00
Nick80835
2068bce8ff improve priv check, implement priv callbacks 2023-10-16 09:54:11 -04:00
Nick80835
cbd4b47e6d add nice error messages to booru 2023-10-16 09:54:11 -04:00
Nick80835
b5c9ecdb62 add db statistics command 2023-10-16 09:54:11 -04:00
Nick80835
05a3b5a14e add ChatWrapper cache, simplify disabled commands 2023-10-16 09:54:11 -04:00
Nick80835
70400d80cb lstrip -> removeprefix 2023-10-16 09:54:11 -04:00
Nick80835
b69ecd1a40 return ChatWrapper from db get_chat 2023-10-16 09:54:11 -04:00
Nick80835
2189e8d955 fix nsfw spoilering in booru buttons 2023-10-16 09:54:10 -04:00
Nick80835
b8b42eab18 fixup booru safety 2023-10-16 09:54:10 -04:00
Nick80835
ea755795ce print exceptions in exec and eval 2023-10-16 09:54:10 -04:00
Nick80835
f5c7855922 print traceback on module load failure 2023-10-16 09:54:10 -04:00
Nick80835
9116e21d06 remove cli api id and bot token input 2023-10-16 09:54:10 -04:00
Nick80835
42ccbfd1c4 make logs more consistent 2023-10-16 09:54:10 -04:00
Nick80835
300ccd9e31 add uptime to alive 2023-10-16 09:54:10 -04:00
Nick80835
c1b0b10017 implement update command and improved stop_client 2023-10-16 09:54:10 -04:00
Nick80835
7a2cb4f204 use global aiohttp client in reddit 2023-10-16 09:54:10 -04:00