Discord-based Swarm Protocol Library
Project description
DiSwarm
Discord-based Swarm Protocol Library
Usage
Main class: Swarm
Initialize like so:
swarm = Swarm(discord channel id: str, discord bot token: str, swarm id: str)
Sending message to swarm:
swarm.send(string message)
Getting messages from swarm:
swarm.get_queue()
returns a list of (timestamp, decoded message) tuples from your swarm members
Important:
Before you end your program, call swarm.end() to cleanly end the discord bot process
Notes
- Swarm ID: the same for all bots in your swarm, but it should be unique from any other swarm, at least on your swarm channel. To be safe, use a randomly generated string or number. Make sure every bot in your swarm has the same id, because bots with different ids cannot see eachother's messages.
get_queue()will only return messages from your swarm, so you can have multiple swarms in the same channel.- DiSwarm uses Fernet encryption, provided by the
cryptographylibrary. Install this library throughpip install cryptography. - Also requires
pip install discord
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file DiSwarm-2.2.0.tar.gz.
File metadata
- Download URL: DiSwarm-2.2.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.5.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
923017530d8f1d0abfeb055a9e95461f47890ca6c9628945c15ee9eb2d45b200
|
|
| MD5 |
b7d4a919f7048f4c8a15d98c846a7b14
|
|
| BLAKE2b-256 |
68f056646080925f89cbe9c89df2df167226c3f266b907b5248a058ec6d757e9
|
File details
Details for the file DiSwarm-2.2.0-py3-none-any.whl.
File metadata
- Download URL: DiSwarm-2.2.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.5.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f4d7f230eae9eda7ef521f8fde44fc4b95eb21f56d816268e16c3c928613816
|
|
| MD5 |
cb35925d5ada967deaf33ae6c9b2f5c0
|
|
| BLAKE2b-256 |
9f4aeb6c4aa16ba3fd884933fc262265f1c9f5c4b5e10f5a654f8a8c5e4ce7c7
|