2
0
mirror of https://github.com/Nick80835/microbot synced 2025-08-22 18:19:16 +00:00

120 Commits

Author SHA1 Message Date
Nick80835
04227f6628 add lenient commands to help 2025-06-19 07:43:01 -04:00
Nick80835
6a13085bd4 add lenient commands 2025-06-19 07:37:17 -04:00
Nick80835
d0187b585b make command regex work as expected again 2024-07-08 15:19:35 -04:00
Nick80835
666ae13e81 make a little more sense of the pattern templates 2024-07-03 20:29:16 -04:00
Nick80835
c4e0dcc884 rename force_hard_prefix to force_standard_prefix, oops 2024-07-03 16:03:04 -04:00
Nick80835
cc38f11c81 allow commands to force the '/' prefix while being disableable 2024-07-03 15:55:39 -04:00
Nick80835
fd4266ae7c add privacy commands, command.private_only 2024-07-03 15:51:22 -04:00
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
f24e56e00a add cooldown to mod commands 2023-10-21 20:57:02 -04:00
Nick80835
4aae840a8c add simple in-memory cmd use stat 2023-10-21 19:58:41 -04:00
Nick80835
c799f34f89 improve type hinting/doc a bit 2023-10-21 19:30:14 -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
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
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
c1b0b10017 implement update command and improved stop_client 2023-10-16 09:54:10 -04:00
Nick80835
edd35a0060 handle worthless exceptions properly 2023-10-16 09:54:10 -04:00
Nick80835
99177b70ed use get_chat for chat_db fetching 2023-10-16 09:54:10 -04:00
Nick80835
9f9923ff17 add support for buttons in inline responses 2023-10-16 09:54:10 -04:00
Nick80835
800dd32c31 add chat_db to callbacks 2023-10-16 09:54:10 -04:00
Nick80835
e9c68f6beb add command.filter, like func in Telethon
also continue where returns were previously
2023-10-16 09:54:09 -04:00
Nick80835
52095122ec I am an idiot 2023-10-16 09:54:09 -04:00
Nick80835
db6f1d6d67 remove excessive logging 2023-10-16 09:54:09 -04:00
Nick80835
5b2e1f44d6 dont error when bot is muted 2023-10-16 09:54:09 -04:00
Nick80835
0bf1ddbb05 better logging 2023-10-16 09:54:09 -04:00
Nick80835
52e26ab0dd make silent_bail work correctly desu, also remove stupid logging 2023-10-16 09:54:09 -04:00
Nick80835
b5a21c03ef add silent_bail 2023-10-16 09:54:09 -04:00
Nick80835
ea02b42c2c use setters and getters for some db functions, more event.prefix 2023-10-16 09:54:08 -04:00
Nick80835
7295fabd2c only generate prefix pattern for commands which use it 2023-10-16 09:54:08 -04:00
Nick80835
f182ac90fb reduce redundant db calls and add event.chat_db 2023-10-16 09:54:08 -04:00
Nick80835
9e8a96d550 clean up old prefix def 2023-10-16 09:54:08 -04:00
Nick80835
fd0763f149 add event.prefix 2023-10-16 09:54:08 -04:00
Nick80835
b47088fe4b add custom prefixes 2023-10-16 09:54:08 -04:00
Nick80835
5986870479 switch to peewee and use the database for more stuff 2023-10-16 09:54:08 -04:00
Nick80835
2626efa37c forgot to remove some stuff 2023-10-16 09:54:08 -04:00
Nick80835
16848b2bf2 tweak pattern templates and fix args starting with newlines 2023-10-16 09:54:08 -04:00
Nick80835
0328df1f79 allow customizing nsfw warnings 2023-10-16 09:54:08 -04:00
Nick80835
93819eacfa reject forwards properly 2023-10-16 09:54:08 -04:00
Nick80835
ff00311655 fix other_args with simple patterned normal commands 2023-10-16 09:54:08 -04:00
Nick80835
748b2caded beefier UD 2023-10-16 09:54:07 -04:00
Nick80835
8dbf05ba8c cleanup because im rarted 2023-10-16 09:54:07 -04:00
Nick80835
769fae21b1 dont execute forwarded commands 2023-10-16 09:54:07 -04:00
Nick80835
044230015c fucktarded shit 2023-10-16 09:54:07 -04:00
Nick80835
f8b28157be handle anonymous admins 2023-10-16 09:54:07 -04:00