{"id":31745294,"url":"https://github.com/mateocallec/savage-bot","last_synced_at":"2025-10-09T12:49:18.945Z","repository":{"id":316305653,"uuid":"1062749783","full_name":"mateocallec/savage-bot","owner":"mateocallec","description":"A fun Discord bot that automatically replies with savage messages.","archived":false,"fork":false,"pushed_at":"2025-09-23T23:36:42.000Z","size":6417,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-24T01:19:54.705Z","etag":null,"topics":["bot","discord-bot","fun"],"latest_commit_sha":null,"homepage":"https://discord.com/oauth2/authorize?client_id=1420071359538528409\u0026permissions=3941734153713728\u0026integration_type=0\u0026scope=bot","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mateocallec.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-23T17:13:16.000Z","updated_at":"2025-09-23T23:36:45.000Z","dependencies_parsed_at":"2025-09-24T01:31:03.424Z","dependency_job_id":null,"html_url":"https://github.com/mateocallec/savage-bot","commit_stats":null,"previous_names":["mateocallec/discord-savage-bot","mateocallec/savage-bot"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/mateocallec/savage-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mateocallec%2Fsavage-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mateocallec%2Fsavage-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mateocallec%2Fsavage-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mateocallec%2Fsavage-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mateocallec","download_url":"https://codeload.github.com/mateocallec/savage-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mateocallec%2Fsavage-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001422,"owners_count":26083078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","discord-bot","fun"],"created_at":"2025-10-09T12:49:17.549Z","updated_at":"2025-10-09T12:49:18.939Z","avatar_url":"https://github.com/mateocallec.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Savage Bot\n\n\u003cimg src=\"https://github.com/mateocallec/savage-bot/blob/main/docs/profile.png?raw=true\" alt=\"Profile\" style=\"height: 100px;\" /\u003e\n\nSavage Bot is a French Discord bot that replies automatically to messages in a server and allows users to send playful or trash-talk messages via slash commands.\nAll messages and configurations are **user-defined per server**.\n\n---\n\n## Files\n\n### `index.js`\n\nThe main entry point for Savage Bot.\nIt handles:\n\n* Connecting to Discord with the required intents.\n* Counting messages per server and replying automatically when the threshold is reached.\n* Handling slash commands like `/trashtalk`, `/addmessage`, `/listmessages`, `/reset`, `/deletemessage`, `/threshold`, `/export`, and `/info`.\n* Error handling for permissions and failed message sending.\n\nKey features:\n\n* Replaces `{user}` in messages with the display name of the target user.\n* Stores messages and server configuration **locally per server**.\n* Allows exporting all server messages and settings via `/export`.\n\n---\n\n### `server storage`\n\nAll user-added messages and server configuration are stored **per server** in the `./storage/servers/\u003cguildId\u003e/` folder:\n\n* `messages.json` – Stores messages added by server members.\n* `config.json` – Stores server-specific settings like message threshold, terms URI, and privacy URI.\n\n\u003e All message content is **defined by users**, not preloaded.\n\n---\n\n### `.env`\n\nHolds bot configuration variables:\n\n```\nTOKEN=YOUR_BOT_TOKEN_HERE\nTHRESHOLD=5\nACTIVITY=Watching the chat 👀\nTERMS_URI=https://yourwebsite.com/terms\nPRIVACY_URI=https://yourwebsite.com/privacy\n```\n\n* **TOKEN**: Your Discord bot token.\n* **THRESHOLD**: Default number of messages before automatic reply.\n* **ACTIVITY**: Status shown under the bot’s presence in Discord.\n* **TERMS\\_URI** \u0026 **PRIVACY\\_URI**: Optional; can override server-specific links.\n\n---\n\n### `CHANGELOG.md`\n\nTracks the history of changes, updates, and bug fixes for Savage Bot.\n\n---\n\n### `CONTRIBUTE.md`\n\nGuidelines for contributing to Savage Bot, including submitting bug fixes or new features.\n\n---\n\n### `SECURITY.md`\n\nInstructions for reporting security vulnerabilities responsibly.\nContact: **[mateo@callec.net](mailto:mateo@callec.net)**\n\n---\n\n### `DISCLAIMER.md`\n\nDetails about liability and usage of Savage Bot.\nSee this file for more information.\n\n---\n\n### `docs/terms.md`\n\n[Terms of Service](./docs/terms.md) for using Savage Bot.\n\n---\n\n### `docs/privacy.md`\n\n[Privacy Policy](./docs/privacy.md) explaining data usage.\nSavage Bot **only stores messages and configuration necessary for its operation**, no external personal data is collected.\n\n---\n\n## Setup\n\n1. Clone this repository.\n2. Create a `.env` file in the root folder with your bot token, threshold, activity, and optional URIs.\n3. Install dependencies:\n\n```bash\nnpm install\n```\n\n4. Start the bot:\n\n```bash\nnode src/index.js\n```\n\n---\n\n## Docker Setup\n\nSavage Bot is containerized and can run in Docker:\n\n1. Build the Docker image:\n\n```bash\nscripts/build.sh\n```\n\n2. Pull the public Docker image (optional):\n\n```bash\nscripts/pull.sh\n```\n\n3. Start the bot using Docker Compose:\n\n```bash\nscripts/start.sh\n```\n\n4. Stop the bot:\n\n```bash\nscripts/stop.sh\n```\n\n\u003e The bot uses `scripts/entrypoint.sh` or `scripts/startup.sh` inside the container to start.\n\u003e Use `.env` or environment variables to configure settings.\n\n---\n\n## Adding the Bot to Your Server\n\n[Invite Savage Bot](https://discord.com/oauth2/authorize?client_id=1420071359538528409\u0026permissions=3941734153713728\u0026scope=bot)\n\nMake sure you have permissions to invite a bot.\n\n---\n\n## Usage\n\n* **Automatic replies**: The bot replies every `THRESHOLD` messages with a random message added by users.\n* **Slash commands**:\n\n  * `/trashtalk @username` – Send a trash-talk message to a user.\n  * `/addmessage` – Add a new message to the server storage.\n  * `/listmessages` – List all messages stored for the server.\n  * `/reset` – Delete all stored messages.\n  * `/deletemessage` – Delete a specific message by ID.\n  * `/threshold` – Set or view the server message threshold.\n  * `/export` – Export messages and server configuration as JSON.\n  * `/info` – Show GitHub, Terms, and Privacy links.\n\n\u003e All messages are **user-defined** and managed per server.\n\n---\n\n## Disclaimer\n\nSavage Bot is designed for fun.\nThe developer is **not responsible** if anyone is harmed, offended, or affected by messages sent by the bot.\nSee [DISCLAIMER.md](./DISCLAIMER.md) for more information.\n\n---\n\n## License\n\nSee [LICENSE](./LICENSE) for more information.\n\n---\n\n**Created by Matéo Florian Callec**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmateocallec%2Fsavage-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmateocallec%2Fsavage-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmateocallec%2Fsavage-bot/lists"}