Please see Gitlab for the updated version. This is just a clone.
rustc
,cargo
, stable version if you want to compile itpython3
withrequests
- Redis
git clone
the repositorycd src/rust/coordinator
- Edit the
main.rs
file if you want ton configure the project. cargo build --release
- You'll find the executable in
target/release
.
- Get a Riot API Key and put it in a file somewhere
- Edit
twitch.py
and changeDEFAULT_API_KEY_PATH
if necessary - Put the
coordinator
binary andtwitch.py
like that :
.
├── coord
│ └── coordinator
└── twitch
└── twitch.py
- Launch your redis instance :
redis-server
- Launch the coordinator
./coordinator
.
Nickname generator, based on (guess what?) Markov chains and Riot API. The project is divided into 3 subprojects.
It would be nice to have :
- Get nickname from mastery level, not currently played champion.
- Correctly separate libs and observer (like point 1 in fact..)
Twitch is the script that gets the data and (currently) feeds a JSON file with nicknames. It is currently written in Python.
- Have some logging
- Rewrite twitch in rust ?
- Try to feed ryze instead of feeding a JSON file ? Or at least find a nice way to make twitch and zilean communicate.
- Change the way it behaves in order to include lower-ranked games, and base on mastery level rather than on the currently player champion.
See payeTonPseudo on Github for the python script which gets the data.
Ryze will be the data storage solution.
I don't really know how I will store the data and access it.
I'd like to learn some NoSQL databases, because everyone starts to use it, so it's always better to know what it's about.
Ryze is the redis database. It does not currently represent some code. But it may represent code in the future.
Zilean is the project where we generate the pseudonyms, and where we parse them in order to put them in the database. Currently the data are stored into nested hashmaps, and are not yet serialized.
Abstract the hashmaps and provide a simple object with methods feed()
and gen()
.
Get and constitute a database which correlates a champion with player nicknames. Feed a chain with these nicknames and you can generate some champion-dependant names !