Skip to content

Discover your discord server's Wordle leaderboard and finally settle who reigns supreme! Calculate detailed statistics from shared results like share count, current and max streak, weighted score, offByOne count, average % per guess, and more!

Notifications You must be signed in to change notification settings

ramity/discord-wordle-processor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Wordle Processor

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.

Requirements

Docker, Discord, Git

Installation

(HTTPS)

git clone https://github.com/ramity/discord-wordle-processor.git

(SSH)

git clone [email protected]:ramity/discord-wordle-processor.git

Configuration

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.

Start

Ensure that the docker host is running, navigate to the root of the cloned repository, then run the following command:

docker compose up -d

Usage

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.

Example

https://ramity.github.io/discord-wordle-processor/

Comments or Questions?

Open a new git issue thread with the question label.

Requests or Suggestions?

Open a new git issue thread with the enhancement label.

About

Discover your discord server's Wordle leaderboard and finally settle who reigns supreme! Calculate detailed statistics from shared results like share count, current and max streak, weighted score, offByOne count, average % per guess, and more!

Topics

Resources

Stars

Watchers

Forks