MafiaggBot
Usage
git clone https://github.com/blacksmithop/MafiaggBot
cd MafiaggBot
Installation
Install dependencies
python3 -m pip install -r requirements.txt
Create a .env file with credentials
MAFIA_USERNAME=username
MAFIA_PASSWORD=password
Running the bot
python3 runbot.py
Note: When you run the bot for the first time,
it will download the deck and setup data
and store it in bot/data/ folder.
Features
- Rooms
- List rooms
- Make private/public
- Become player/spectator
- Do afk check
- Do afk check
- Do ready check
- Rename room
- Create new room
- Only create room when game end
- Decks
- Get deck by name
- Set deck by name
- Use random deck
- Setups
- Get setup by name
- Set setup by code
- Set setup by name
- Get current setup code
- Roles
- Get role by name
- Cleanup role descriptions with validator
- Commands
- Custom command names
- Command docs
- Bot Client
- Authentication
- Help command
- Formatted / multi-message help command
- Host only commands
Tasklist
- Don't create new room unless game end
- Understand role object -> setup code creation
- Return character info (for decks in next message)
- Better commands (sub-commands!)
- Better doc strings using decorators
- When exiting bot site calls DELETE on
user-session(cookie invalidation?) - Join other rooms on request
- Allow for
super().__init__calls
Metadata
Release files for mafiagg 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mafiagg-1.0.0.tar.gz | 79.3 kB | Without provenance | Details for mafiagg-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mafiagg-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for mafiagg-1.0.0-py3-none-any.whl |
Total release size: 163.0 kB
Release files / mafiagg-1.0.0.tar.gz
| Download URL | mafiagg-1.0.0.tar.gz |
|---|---|
| Size | 79.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b4a9896e044e6cf07d88750d2bdf44fefcf5cff9d3a4fc248e4ac7f27c511520
|
|
BLAKE2b-256 checksum How to use checksums |
f9d5a41a476aad12d7629fcff97cb7a2da092dbb0106f9abfffb048f09c68b50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Release files / mafiagg-1.0.0-py3-none-any.whl
| Download URL | mafiagg-1.0.0-py3-none-any.whl |
|---|---|
| Size | 83.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ed6a552c3eb443e7a9b06f1c54ff27d1dcff7789855493f676c9c69c194a4ed4
|
|
BLAKE2b-256 checksum How to use checksums |
6ccb3fbca904b719a8a065ae2f1dde93e90010ed8b5357ffd5dede27a299feef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Security for mafiagg 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.