Skip to main content

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yoshaas_gateway-2.0.1-py3-none-any.whl (27.6 kB view details)

Uploaded Python 3

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

Hashes for yoshaas-gateway-2.0.1.tar.gz
Algorithm Hash digest
SHA256 41efd242c9d7e449b09e63739d169bc967a624c617207891b942116fdb0ff0fe
MD5 b9e94753e0f0eb04d6ca4508c24e05a0
BLAKE2b-256 dd3592e144bd45fa10584c7d0e219e76cc6db3b4316391c77d8e3ca1a345bd33

See more details on using hashes here.

File details

Details for the file yoshaas_gateway-2.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for yoshaas_gateway-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 32b4ce31ee25ab4501c54f212bed6bd09885e72ddf0f3440952cf4d06978a653
MD5 96bcd6a3ceeefcdc6a8046ac8d726b96
BLAKE2b-256 2302c958796889f97388a45ae84c1850db4436c7e3cae3ac8372256e8116c39d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page