Features:
Using the Google Cloud Translate API, simply add !translate at the end of a message, and it will automatically detect and translate the message to the set language (default is English).
Our bot features a robust automatic profanity filter to maintain a respectful environment, and can automatically time users out. Includes a common list of banned words and the ability to add custom words to the filter by moderators. This feature can be turned off or enabled/disabled in chosen chat rooms by moderators.
Example of 3 separate messages being sent with profanity:
Our bot includes a spam prevention feature that automatically detects and manages spam messages. If a user sends multiple messages in quick succession, the bot temporarily restricts the user to prevent further spam, ensuring a clean and orderly chat environment. This feature can be turned off or enabled/disabled in chosen chat rooms by moderators.
Our bot also features a convenient search functionality powered by the Google Custom Search API. Users can append !search to their queries, and the bot will provide relevant search results directly in the chat. To ensure a safe browsing experience, Google SafeSearch is enabled and moderators can add restricted words to be filtered out. The bot will warn users and take action if inappropriate content is detected.
More button displays link:
Ability to add/remove/create roles using slash command
To update slash commands (make global or specific guild), run: node deploy-commands.cjs
Read comments on line 45 to make global (only do after testing)
https://discordjs.guide/creating-your-bot/command-deployment.html#guild-commands
.env missing: DISC_TOKEN="token for bot" MODERATOR_CHANNEL_ID="sends message to specific channel for moderators" ALLOWED_CHANNELS="allowed channels (copy channel id) for links where links are allowed"
Coming changes: dashboard for bot to allow profanity, links, spam in channels, automatic translation for most languages using google translate api. currently have it manually for links only
.env missing: MODERATOR_CHANNEL_ID= "sends message to specific channel for moderators" clientId: Your application's client id (Discord Developer Portal > "General Information" > application id) guildId: Your development server's id (Enable developer mode > Right-click the server title > "Copy ID")
MODERATOR_CHANNEL_ID: for update messages sent to moderation team channel ALLOWED_CHANNELS: channels where profanity/links/etc allowed (config this more later)
node deploy-commands.cjs //for command updates
run project: node . //run project backend (port 5000) npx vite dev --host --port 8000 //run project frontend