A games module that can be used to instantly add games to your discord bot
Project description
Disgames
A python module made to make creating games easier and adds a bunch of game commands to your discord python botNote: The logo has been designed by using resources from flaticon.com
Contents
Installation
To install it from pypi, run
pip install disgames
To install the development version, you need git installed. After installing it, run
pip install git+https://github.com/andrewthederp/Disgames
Usage
You can either load it as an extension by doing
from discord.ext import commands
bot = commands.Bot("YOUR_PREFIX_HERE")
bot.load_extension("disgames")
or call the register_commands function manually by doing
from disgames import register_commands
from discord.ext import commands
bot = commands.Bot("YOUR_PREFIX_HERE")
register_commands(bot)
More examples on customizing the commands added to your bot can be seen in examples/
And thats it! now your bot has the games implemented in disgames/mixins/
Extra
Note that this works with the now discontinued module discord.py and we will make it compatible with other modules as soon as possible
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 disgames-2.3.0.tar.gz.
File metadata
- Download URL: disgames-2.3.0.tar.gz
- Upload date:
- Size: 34.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b91e0f5efe04b9fda7e18a2d679f1847292899a7ed5d561124b158c1c609d40
|
|
| MD5 |
7c0f9cb809f5707b6b27dcf7915dde96
|
|
| BLAKE2b-256 |
cfe748898c919e9bf3e9cb1affce8e5bb439cb865c16baa9c7b7aa0d541b518e
|
File details
Details for the file disgames-2.3.0-py3-none-any.whl.
File metadata
- Download URL: disgames-2.3.0-py3-none-any.whl
- Upload date:
- Size: 47.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50718d0e03894e1f168823556055c48a96819b372c17769a3c31132d9c337081
|
|
| MD5 |
5722249bf5fce59170712327e374119b
|
|
| BLAKE2b-256 |
901b0c0ba24120bf4cbeebc9f12302f029b046f1314f26736bb42427cdcc8e6b
|