AndreiSva / oddify

Pokemon... but Oddish?

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Oddify

Add Oddify to your Discord Server

A discord bot... but Oddish???

Oddify is a discord bot built for the sole of pasting Oddish's face onto random pokemon (and flags). It is made with Pokemon Fusion, Flagpedia, and discord.py.

Oddnat Oddto Oddwhirl
canada uk tuvalu

How to use

First, Invite Oddify. Then just type oddify help to get started!

Some fun pokemon... but odd

Oddpod Oddster
> oddify metapod > oddify cloyster
Oddgar Oddth
> oddify gengar > oddify meowth
Oddmime Oddfing
> oddify mr. mime > oddify koffing
Oddlax Oddish
> oddify snorlax > oddify oddish

Flags

france US
> oddify france > oddify us

All 151 (+1) first generation pokemon are supported through https://pokemon.alexonsager.net/. Flags from Flagpedia, names from pycountry.

Development

Clone this repo

git clone https://github.com/liam-ilan/oddify.git

Install the required pacakges with Poetry

poetry install

Alternatively, a requirements.txt file is provided

Create a bot through the discord developer dashboard Invite it through the link obtained under the OAuth2 tab

Create a .env file, and write the following

TOKEN=<secret token>

Your secret token is your bot's token

Then run

poetry run python main.py

to start the bot

Hosting through Heroku

Note: this bot is currently being hosted through https://replit.com, you can find the repl here: https://replit.com/@snowboardsheep/oddify

  1. Set your buildpack to Python
  2. Build requirements.txt with poetry export -f requirements.txt --output requirements.txt, since Heroku's Python buildpack uses pip to install packages.
  3. Push the bot to Heroku
  4. Ping the site to keep the bot online (see ping.py)

Credits

About

Pokemon... but Oddish?


Languages

Language:Python 100.0%