11/21/2023 0 Comments Discord chatbot apiIf you want to change the moderation settings for which messages get flagged or blocked, edit the values in src/constants.py.If you want to change the personality of the bot, go to src/config.yaml and edit the instructions.This should be of the format: server_id:channel_id,server_id_2:channel_id_2 If you want moderation messages, create and copy the channel id for each server that you want the moderation messages to send to in SERVER_TO_MODERATION_CHANNEL.Note: make sure you are using Python 3.9+ (check with python -version) Copy and paste it into your browser to add the bot to your server. You should see an invite URL in the console. If you want to allow multiple servers, separate the IDs by "," like server_id_1,server_id_2 Copy the ID the server you want to allow your bot to be used in by right clicking the server icon and clicking "Copy ID".Go to the OAuth2 tab, copy your "Client ID", and fill in DISCORD_CLIENT_ID.Enable "Message Content Intent" under "Privileged Gateway Intents".Disable "Public Bot" unless you want your bot to be visible to everyone. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |