Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.