feat: enhance gitignore and bot prefix handling

- Updated .gitignore to properly exclude Python cache files and environment variables
- Modified bot.py to improve prefix case handling for better command recognition
- Refactored mail.py to streamline feedback email generation and database interaction
- Added environment variable loading in mail.py for better configuration management
This commit is contained in:
2026-06-01 14:14:52 +00:00
parent 3e6410d112
commit 4b07ca86b9
10 changed files with 166 additions and 147 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ class Client(commands.Bot):
intents=discord.Intents.all(),
help_command=MyNewHelp(),
)
def iterate_prefix(self, prefix):
def iterate_prefix(self, prefix): #Needed as case_insensitive doesn't work with prefixes and only commands, not the bot itself. This is a workaround to make the bot respond to both uppercase and lowercase prefixes.
prefixes = list(map(''.join, itertools.product(*zip(prefix.upper(), prefix.lower()))))
print(prefixes)