A tool to get an iMessage group chat summary for popular internet games.
Project description
chat-summary
Use this library to get a summary of results of internet games (like Wordle) in a group chat.
Requirements
- Only works on MacOS with iMessages
- Must have messages stored in iCloud (or simply on Mac)
- Only works for group chats
- Having contacts synced to your Mac as well is not essential but allows for better viewage of results
Installation
pip install chat-summary
Usage
chat-summary user chat_name [options]
Options
- user (required): The name of the user with the messages
- chat_name (required): The name given to the messages group chat
- --silence-contacts: Silecne the "unable to find contacts" error
- '-C', '--Connections': Include the 'Connections' game in the results
- '-N', '--Nerdle': Include the 'Nerdle' game in the results
- '-W', '--Wordle': Include the 'Wordle' game in the results
Output
For each game you opt-in to you will be shown an output like this:
🟨🟨🟨 {game} 🟨🟨🟨
COMPLETIONS ({n} days)
1. *********..{c}/{a}
2. *******....{c}/{a}
3. ******.....{c}/{a}
...
AVERAGE GUESSES
1. *********..{av}
2. *******....{av}
3. ******.....{av}
...
Where:
- {game} is the name of the game
- {n} is the total amount of {game}s between the first message with {game} and the last
- '******' are replaced by either the contact name or phone numbers of each group chat member (depending on whether contacts are available)
- {c} is the amount of {game}s this person has completed (won)
- {a} is the amount of {game}s this person has attempted
- {av} is the average amount of guesses this person used in a 'win' of {game}
- Completions are sorted from most completed ({c}) to least completed
- Average guesses are sorted from lowest to highest
If there are no messages for a particular game that you have opted-in to you will see something like this instead:
🟥 no '{game}' messages found 🟥
Where {game} is replaced by the game that there were no messages for.
Errors
"user not found, user should be one of: ..."
- user parameter was invalid, check that you've spelt it correctly and that you are a valid user in the
\Users
directory
- user parameter was invalid, check that you've spelt it correctly and that you are a valid user in the
"could not connect to messages database, ensure you have the right permissions to access file"
- Ensure you have the right permissions to view the
chat.db
by going System Preferences > Securiy & Privacy > Full Disk Access and ensure that Terminal (or whatever you are using to run the script) is ticked
- Ensure you have the right permissions to view the
"could not find stored messages, ensure you have signed in and uploaded iMessages to iCloud"
- Ensure there is a
chat.db
file in\Users\{your user}\Library\Messages
, if not your messages are not stored locally on your Mac, try logging in to iMessage on your Mac and uploading the messages to iCloud
- Ensure there is a
"chat name not found, should be one of: ..."
- you have entered an invalid chat_name argument that doesn't match up with any group chats you are currently in on iMessage
"unable to find contacts"
- not a destructive error, means that the program could not find contacts that were stored on your computer, so instead of displaying people's names it will instead display their phone numbers in the summary, silence this warning with the
--silence-contacts
option - the program will look for a
'AddressBook-v22.abcddb'
file somewhere in'/Users/{your user}/Library/Application Support/AddressBook/Sources'
- not a destructive error, means that the program could not find contacts that were stored on your computer, so instead of displaying people's names it will instead display their phone numbers in the summary, silence this warning with the
Add your own!
If you have your own internet games that are not currently supported raise an issue with the following information and it will be implemented as soon as possible.
Title: New Game - {title of game}
Description:
- Name of the game
- Example output to look for in messages
- How to determine if the player has won or not
- How to determine how many guesses the player has guesses (if not obvious)
- How to determine the game number
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
chat-summary-1.0.2.tar.gz
(10.1 kB
view hashes)
Built Distribution
Close
Hashes for chat_summary-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e5cad4e1dd72ea2d5c6baef0bd94c8e12ba26399777bd782ce24ed84a9c5747 |
|
MD5 | a4cac3fbac5c7eb0b62e62a254211550 |
|
BLAKE2b-256 | 57ac3f6be15d12272dab53a96d1c10321df002b4cb04e8b03c2a2783594fe718 |