Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ewpratten/no-bitches-bot
A genuinely horrible Discord bot made with OpenCV and zip ties
https://github.com/ewpratten/no-bitches-bot
discord discord-bot docker face-detection megamind no-bitches opencv python3
Last synced: 4 months ago
JSON representation
A genuinely horrible Discord bot made with OpenCV and zip ties
- Host: GitHub
- URL: https://github.com/ewpratten/no-bitches-bot
- Owner: ewpratten
- License: gpl-3.0
- Created: 2022-05-27T00:01:14.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-11-28T10:32:19.000Z (about 1 year ago)
- Last Synced: 2024-10-04T20:30:55.081Z (4 months ago)
- Topics: discord, discord-bot, docker, face-detection, megamind, no-bitches, opencv, python3
- Language: Rust
- Homepage:
- Size: 453 KB
- Stars: 5
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# No Bitches Bot
[![Build](https://github.com/Ewpratten/no-bitches-bot/actions/workflows/build.yml/badge.svg)](https://github.com/Ewpratten/no-bitches-bot/actions/workflows/build.yml)
[![Clippy](https://github.com/Ewpratten/no-bitches-bot/actions/workflows/clippy.yml/badge.svg)](https://github.com/Ewpratten/no-bitches-bot/actions/workflows/clippy.yml)
[![Audit](https://github.com/Ewpratten/no-bitches-bot/actions/workflows/audit.yml/badge.svg)](https://github.com/Ewpratten/no-bitches-bot/actions/workflows/audit.yml)
This repository contains a Discord bot that will take any image containing a face and mutilate it until it reasonably resembles a [Megamind meme](https://knowyourmeme.com/memes/no-bitches).
*This project was made for [Meme Appreciation Month](https://va3zza.com/events/meme-month-2022/)*
## Bot Architecture
![Bot design diagram](assets/arch.png)
### Forehead Transform
The most complicated part of this whole bot is performing a perspective warp to enlarge the forehead.
I'm essentially pulling the chin to sit at `1/4` and `3/4` of the width of the image at the bottom, the top right of the head goes to the top right corner, and the top left is at `1/8` width.
## FAQ
### Q: Can I host this myself?
**A:** Yep. Please see my `docker-compose.yml`. I'll handle everything you need. Just be sure to set `$DISCORD_TOKEN` to your bot's token. (aka: make your own bot at [discord.com/developers](https://discord.com/developers/))
### Q: Why does this look like it was written in 25 minutes?
**A:** Yes.
### Q: How do use?
**A:** Refer to this screenshot:
![A horrible usage explanation](assets/bot-screenshot.png)
---
Ok. have a nice day.