Inspiration
Inspired by the ability of Google Cloud Vision to process images, our group decided we wanted to integrate that into Discord somehow. Also as server owners, we know that the Discord content filter does a pretty suboptimal job of stopping explicit content. So with those two inspirations, we decided we would make a discord bot that combines those two things.
What it does
Our Discord bot constantly intakes images posted on a Discord server, temporarily deletes them, and analyzes them via the Google Cloud Vision API. To analyze them the program takes the safe search detection of the Vision API and uses that to determine if an image is classified as adult, racy, violence, or medical. If it is clean it will repost the image and give credit to the person who uploaded it. If it is not clean it will keep the picture deleted and leave a message saying who posted the explicit content. This program works with any image format including jpg, png, gif, and more! We would show examples of the explicit content it can filter but because it is explicit we decided not to.
How we built it
We utilized python and the Google Cloud Vision API.
Challenges we ran into
It was our first time working with Google Cloud APIs and Discord Bot tools so naturally, we ran into a ton of learning curve problems.
Accomplishments that we're proud of
The whole project is something we are all extremely proud of. To finish a project in such a limited time with what to us was a pretty grand scope was something we can all be happy about at the end of the day.
What we learned
We learned all about Google Cloud Vision API and Discord Bot creation.
What's next for Discord Image Filter Bot
To make the Image Filter Bot a public tool that is easily portable would be great. Also, we could add various functions that let you change the filter levels and if you want to blur the images instead of deleting them.
Built With
- discord.rpy
- google-cloud-vision
- python

Log in or sign up for Devpost to join the conversation.