Home

Awesome

Pleasantcord

This bot has been deprecated. Do not try to visit the dashboard or invite the bot!

<p align="center"> <img src="docs/banner.png" title="Pleasantcord" alt="Pleasantcord Banner" /> </p> <p align="center"> <a href="http://www.typescriptlang.org/"> <img src="https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg" title="TypeScript" alt="Made with TypeScript" /> </a> <a href="https://github.com/google/gts"> <img src="https://img.shields.io/badge/code%20style-google-blueviolet.svg" title="CodeStyle: Google" alt="GTS Logo" /> </a> <a href="https://discord.com/api/oauth2/authorize?client_id=750668307555942482&permissions=2147493888&scope=bot%20applications.commands"> <img src="https://img.shields.io/badge/Discord-Invite-blue" title="Bot Invite Link" alt="Bot Invite Link" /> </a> <a href="https://discord.gg/Pj4aGp8Aky"> <img src="https://img.shields.io/badge/Support%20Server-Invite%20Link-blue?logo=discord" title="Support Server Link" alt="Support Server Link" /> </a> <a href="https://github.com/Namchee/pleasantcord/issues"> <img src="https://img.shields.io/github/issues/namchee/pleasantcord" title="Issues" alt="Issues" /> </a> <a href="https://github.com/Namchee/pleasantcord/blob/master/LICENSE"> <img src="https://img.shields.io/github/license/namchee/pleasantcord" title="License" alt="License" /> </a> </p>

Pleasantcord is a simple NSFW image auto moderation bot 🤖 for Discord powered by TensorFlow JS. On the inside, it uses a pretrained model provided by nsfw.js that is able to distinguish image category to several categories.

<p align="center"> <img src="./docs/demo.gif" /> </p>

This is just a demo. Of course Pleasantcord won't remove Cuphead images!

Installation

Invite this bot to your server by clicking this link.

The bot itself requires the following permission in your server, make sure that the bot has all the permissions below:

Besides the above permissions, make sure that pleasantcord is able to view and access your channels.

Failed to comply with those requirements may result pleasantcord to throw Missing permissions or Missing Access.

Commands

All commands are prefixed with pc!

CommandDescription
statusShow the bot status (ping, environment, etc).
configView server config
helpShow the bot help menu.

FAQ

What's the default behavior of pleasantcord?

By 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.

Animated webp and png throw errors!

Discord cannot display them correctly, yet there's no way to distinguish them from normal non-animated one as they share the same header.

The classification is incorrect!

I'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.

Data Privacy

Technically, 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.

When 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.

Dashboard

You can access the full open-source code of the dashboard here

Credits

License

This project is licensed under the MIT License