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') # Runs your 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-1.0.2.tar.gz
(11.8 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-1.0.2.tar.gz.
File metadata
- Download URL: yoshaas-gateway-1.0.2.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c4726f70ecfc2e7e59644b2b92bcf33bd00f845ab49d3cd5eba414ebd6b7c10
|
|
| MD5 |
92c353e3ca2b7008c47b4b8fa1dfeab3
|
|
| BLAKE2b-256 |
4f241a7bc4546ebf7e3c3e3c6cf21c15d442d986325ae7d9c51cb352a73a36e4
|
File details
Details for the file yoshaas_gateway-1.0.2-py3-none-any.whl.
File metadata
- Download URL: yoshaas_gateway-1.0.2-py3-none-any.whl
- Upload date:
- Size: 15.8 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 |
970f4a5d00d105359cd4edaaf9ec1e2b781eb8938fbd1ca0ffb1e647215d42bc
|
|
| MD5 |
69924af9739a4b0f8edaddd0a2c3127a
|
|
| BLAKE2b-256 |
22baa0cdfa9afa3926c5436bd98aca4bb87df7cb80478474a8e256d9943b5fa9
|