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.0.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.0.tar.gz.
File metadata
- Download URL: yoshaas-gateway-2.0.0.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 |
69f8c283f8a7adb3b90069bcffed508776182d1106c11e1028cc7d282cabf91c
|
|
| MD5 |
6748f36fe36ea6b2098d623c09390f5f
|
|
| BLAKE2b-256 |
6dc00b9162f5a4422958be0499914cbc19ddd9f2f7d561734da2b3eb8f6220f6
|
File details
Details for the file yoshaas_gateway-2.0.0-py3-none-any.whl.
File metadata
- Download URL: yoshaas_gateway-2.0.0-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 |
093718f0c830927c2f5afaea0420db9b5c89f966e71b0c678264e7f823aa735b
|
|
| MD5 |
0d9620828a4635f800876dbebda3b626
|
|
| BLAKE2b-256 |
11d10a52b5c8a1a36b2255dc143b9e3dd85be0005ed08eed5857feaf3e054bcc
|