{"id":13620288,"url":"https://github.com/Namchee/pleasantcord","last_synced_at":"2025-04-14T19:31:45.364Z","repository":{"id":39996278,"uuid":"292213954","full_name":"Namchee/pleasantcord","owner":"Namchee","description":"🤖 NSFW image moderation bot for Discord","archived":true,"fork":false,"pushed_at":"2023-10-11T15:08:21.000Z","size":19866,"stargazers_count":7,"open_issues_count":5,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-08T06:41:29.268Z","etag":null,"topics":["bot","discord","nsfw-detection"],"latest_commit_sha":null,"homepage":"https://pleasantcord.namchee.dev","language":"TypeScript","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/Namchee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-09-02T07:42:14.000Z","updated_at":"2024-04-15T10:24:40.000Z","dependencies_parsed_at":"2024-01-11T13:20:32.661Z","dependency_job_id":null,"html_url":"https://github.com/Namchee/pleasantcord","commit_stats":null,"previous_names":[],"tags_count":41,"template":false,"template_full_name":"Namchee/liby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Namchee%2Fpleasantcord","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Namchee%2Fpleasantcord/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Namchee%2Fpleasantcord/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Namchee%2Fpleasantcord/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Namchee","download_url":"https://codeload.github.com/Namchee/pleasantcord/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248945940,"owners_count":21187412,"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","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","nsfw-detection"],"created_at":"2024-08-01T21:00:54.155Z","updated_at":"2025-04-14T19:31:40.349Z","avatar_url":"https://github.com/Namchee.png","language":"TypeScript","funding_links":[],"categories":["P"],"sub_categories":[],"readme":"# Pleasantcord\r\n\r\n\u003e This bot has been deprecated. Do not try to visit the dashboard or invite the bot!\r\n\r\n\u003cp align=\"center\"\u003e\r\n  \u003cimg src=\"docs/banner.png\" title=\"Pleasantcord\" alt=\"Pleasantcord Banner\" /\u003e\r\n\u003c/p\u003e\r\n\r\n\u003cp align=\"center\"\u003e\r\n  \u003ca href=\"http://www.typescriptlang.org/\"\u003e\r\n    \u003cimg src=\"https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg\" title=\"TypeScript\" alt=\"Made with TypeScript\" /\u003e\r\n  \u003c/a\u003e\r\n  \u003ca href=\"https://github.com/google/gts\"\u003e\r\n    \u003cimg src=\"https://img.shields.io/badge/code%20style-google-blueviolet.svg\" title=\"CodeStyle: Google\" alt=\"GTS Logo\" /\u003e\r\n  \u003c/a\u003e\r\n  \u003ca href=\"https://discord.com/api/oauth2/authorize?client_id=750668307555942482\u0026permissions=2147493888\u0026scope=bot%20applications.commands\"\u003e\r\n    \u003cimg src=\"https://img.shields.io/badge/Discord-Invite-blue\" title=\"Bot Invite Link\" alt=\"Bot Invite Link\" /\u003e\r\n  \u003c/a\u003e\r\n  \u003ca href=\"https://discord.gg/Pj4aGp8Aky\"\u003e\r\n    \u003cimg src=\"https://img.shields.io/badge/Support%20Server-Invite%20Link-blue?logo=discord\" title=\"Support Server Link\" alt=\"Support Server Link\" /\u003e\r\n  \u003c/a\u003e\r\n  \u003ca href=\"https://github.com/Namchee/pleasantcord/issues\"\u003e\r\n    \u003cimg src=\"https://img.shields.io/github/issues/namchee/pleasantcord\" title=\"Issues\" alt=\"Issues\" /\u003e\r\n  \u003c/a\u003e\r\n  \u003ca href=\"https://github.com/Namchee/pleasantcord/blob/master/LICENSE\"\u003e\r\n    \u003cimg src=\"https://img.shields.io/github/license/namchee/pleasantcord\" title=\"License\" alt=\"License\" /\u003e\r\n  \u003c/a\u003e\r\n\u003c/p\u003e\r\n\r\nPleasantcord is a simple NSFW image auto moderation bot 🤖 for Discord powered by [TensorFlow JS](https://www.npmjs.com/package/@tensorflow/tfjs-node). On the inside, it uses a pretrained model provided by [nsfw.js](https://github.com/infinitered/nsfwjs) that is able to distinguish image category to several categories.\r\n\r\n\u003cp align=\"center\"\u003e\r\n  \u003cimg src=\"./docs/demo.gif\" /\u003e\r\n\u003c/p\u003e\r\n\r\n\u003e This is just a demo. Of course Pleasantcord won't remove Cuphead images!\r\n\r\n## Installation\r\n\r\nInvite this bot to your server by clicking [this link](https://discord.com/api/oauth2/authorize?client_id=750668307555942482\u0026permissions=2147493888\u0026scope=bot%20applications.commands).\r\n\r\nThe bot itself requires the following permission in your server, make sure that the bot has **all** the permissions below:\r\n\r\n- `Send Messages`\r\n- `Manage Messages`\r\n- `Use Slash Commands`\r\n\r\nBesides the above permissions, make sure that `pleasantcord` is able to view and access your channels.\r\n\r\nFailed to comply with those requirements may result `pleasantcord` to throw `Missing permissions` or `Missing Access`.\r\n\r\n## Commands\r\n\r\nAll commands are prefixed with `pc!`\r\n\r\nCommand | Description\r\n------- | -----------\r\n`status` | Show the bot status (ping, environment, etc).\r\n`config` | View server config\r\n`help` | Show the bot help menu.\r\n\r\n## FAQ\r\n\r\n### What's the default behavior of `pleasantcord`?\r\n\r\nBy default, `pleasantcord` will classify any image contents as NSFW when it has `Hentai` or `Porn` label with more than 70% accuracy and delete it from any **text channel** that isn't configured to be a NSFW channel.\r\n\r\n### Animated `webp` and `png` throw errors!\r\n\r\nDiscord cannot display them correctly, yet there's no way to distinguish them from normal non-animated one as they share the same header.\r\n\r\n### The classification is incorrect!\r\n\r\nI'm not the one who created the model, so I can't say anything about it. That being said, image classification is an ML algorithm which could produce false alarms from time to time, so false alarms are quite common occurence.\r\n\r\n## Data Privacy\r\n\r\nTechnically, `pleasantcord` won't store any of your data. However when `pleasantcord` has encountered an error on your server, `pleasantcord` will store the stacktrace on the logging system which *may* include your personal data (which is 100% embeddable content). This is done to ensure easier error debugging and fixing.\r\n\r\nWhen the issue has been detected, acknowledged, and analyzed, your personal data will **immediately** deleted. If you feel that your data is still stored on our system, ~~feel free to join our support server and contact the moderators directly.~~\r\n\r\n## Dashboard\r\n\r\nYou can access the full open-source code of the dashboard [here](https://github.com/Namchee/pleasantcord-dashboard)\r\n\r\n## Credits\r\n\r\n- [infinitered](https://github.com/infinitered) — Provides an easy-to-use pretrained model for NSFW detection.\r\n- [Namchee](https://github.com/Namchee/pleasantcord) — (me) For working on the project!\r\n\r\n## License\r\n\r\nThis project is licensed under the [MIT License](LICENSE)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNamchee%2Fpleasantcord","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNamchee%2Fpleasantcord","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNamchee%2Fpleasantcord/lists"}