Simple discord gateway library
Project description
Simple way to interact with your discord bot.
Installation
pip install yoshaas-gateway
Example Usage
from discord_gateway import Intents
from discord_gateway.commands import CommandsBot
bot = CommandsBot(command_prefix='!', intents=Intents.All)
@bot.event
async def on_ready():
print(bot.user.tag, 'is up')
@bot.command()
async def ping(ctx):
await ctx.reply('pong!')
bot.run('TOKEN HERE', bot=True, log_level=40) # Run the bot
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
yoshaas-gateway-2.0.1.tar.gz
(20.6 kB
view details)
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 yoshaas-gateway-2.0.1.tar.gz.
File metadata
- Download URL: yoshaas-gateway-2.0.1.tar.gz
- Upload date:
- Size: 20.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41efd242c9d7e449b09e63739d169bc967a624c617207891b942116fdb0ff0fe
|
|
| MD5 |
b9e94753e0f0eb04d6ca4508c24e05a0
|
|
| BLAKE2b-256 |
dd3592e144bd45fa10584c7d0e219e76cc6db3b4316391c77d8e3ca1a345bd33
|
File details
Details for the file yoshaas_gateway-2.0.1-py3-none-any.whl.
File metadata
- Download URL: yoshaas_gateway-2.0.1-py3-none-any.whl
- Upload date:
- Size: 27.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32b4ce31ee25ab4501c54f212bed6bd09885e72ddf0f3440952cf4d06978a653
|
|
| MD5 |
96bcd6a3ceeefcdc6a8046ac8d726b96
|
|
| BLAKE2b-256 |
2302c958796889f97388a45ae84c1850db4436c7e3cae3ac8372256e8116c39d
|