Moderation for Discord's newest Voice-Message feature.
- Badword detection
- Earrape detection
- Speech-to-text command (/speech-to-text <message-id/message-link/audio-link>)
At first discord.py, pydub and whisper must be installed.
https://github.com/Rapptz/discord.py
pip install discord
pip install pydub
https://github.com/openai/whisper/
pip install openai-whisper
You should set a language in the "language" field (format: en, de, pl) to get better results
To get started you need to get your bot token on the discord developer site, and just add badwords to the list.
If you want to use non-latin letters, then you must add them yourself in main.py to valid_chars