Different Command Prefixes per discord server with discordpy (less than 2 minutes)

Different Command Prefixes per discord server with discordpy (less than 2 minutes)

Richard Schwabe

1 год назад

2,366 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Misanth Mizzie
Misanth Mizzie - 10.02.2023 12:02

hello there! Thanks for all these free resources man!
I have one question with this method in particular. For some reason, every and any message that gets sent in the server loops over the 'get_prefix'. Is that normal/intended? I discovered that by having a print statement in the 'get_prefix' function. The cmd for changing the prefix works as intended and successfully hotswapps the prefix without the need for restart. Storing the prefix works as well (i'm using an sqlite db instead of a list but it shouldn't matter?).
Cheers and all the best

Ответить