Do you have a discord channel where you and your friends post your daily wordles? Have you ever wanted to know who ranks supreme? If so, this repo is for you.
Docker, Discord, Git
(HTTPS)
git clone https://github.com/ramity/discord-wordle-processor.git
(SSH)
git clone [email protected]:ramity/discord-wordle-processor.git
Follow these steps to integrate your self hosted bot.
Create the needed .env
file in docker/python/
directory. The .env.dist
shows a sample .env
file. Be sure to set the TOKEN
, CHANNEL
, and LIMIT
vars:
TOKEN
- The provided token obtained via the discord interface.CHANNEL
- The name of the text channel you wish to scrape from.LIMIT
- The max number of messages you wish to scrape.
Ensure that the docker host is running, navigate to the root of the cloned repository, then run the following command:
docker compose up -d
Enter the created discord_bot
docker container:
(Linux/Unix)
docker exec -it discord_bot bash
(Windows)
winpty docker exec -it discord_bot bash
Run the scrape.py
script to generate a dump.pkl
file:
python scrape.py
Example output displayed below:
Logged on as WordleBot#9999
Pulling messages from the #wordle text channel
Calculating stats
Complete
Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x0>, 0.0)]']
connector: <aiohttp.connector.TCPConnector object at 0x0>
When complete, exit the container via the exit
command.
Commit and push the changes to wordle-stats-by-author.json and wordles-by-author.json.
git add.
git commit -m "scrape data"
git push origin master
Create github page:
Settings > Pages > Set folder to "/docs"
Navigate to the created site.
https://ramity.github.io/discord-wordle-processor/
Open a new git issue thread with the question
label.
Open a new git issue thread with the enhancement
label.