https://github.com/codl/pokemonrates
a robot that rates pokémon
https://github.com/codl/pokemonrates
Last synced: 5 months ago
JSON representation
a robot that rates pokémon
- Host: GitHub
- URL: https://github.com/codl/pokemonrates
- Owner: codl
- License: other
- Created: 2017-05-15T21:44:28.000Z (about 9 years ago)
- Default Branch: main
- Last Pushed: 2025-03-09T19:55:17.000Z (over 1 year ago)
- Last Synced: 2025-04-03T20:45:50.907Z (about 1 year ago)
- Language: HTML
- Homepage: https://botsin.space/@pokemonrates
- Size: 353 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE
Awesome Lists containing this project
README
# pokemon rates
is a ~~mastodon~~ gotosocial bot that rates pokémon. it can be found at [pokemon_rates@reentry.codl.fr](https://reentry.codl.fr/@pokemon_rates)
## running
these instructions are probably not for you
### natively
make sure python 3.12ish or higher is installed, and that you're in [a venv](https://docs.python.org/3.10/library/venv.html)
```
# install dependencies
pip install -r requirements.txt
# configure
cp bot.example.yml bot.yml
$EDITOR bot.yml
# run
python run.py
```
### docker
```
# build docker image
docker buildx build -t pokemonrates .
# configure
cp bot.example.yml bot.yml
$EDITOR bot.yml
# run
docker run -d -v /absolute/path/to/bot.yml:/app/bot.yml pokemonrates
```
`--restart unless-stopped` may be a wise addition to that `docker run` command
## scraping pokemon names
this scrapes names of pokémon from bulbapedia. it's bad but i don't have anything better
### natively
```
python scrape_pokemon.py > pokemon.txt
```
### docker
```
docker buildx build -t pokemonrates:scrape --target scrape .
docker run --rm pokemonrates:scrape > pokemon.txt
```
note that you'll need to rebuild the bot's main docker image to include the new list of pokémon