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.0.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.0-py3-none-any.whl (27.6 kB view details)

Uploaded Python 3

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

Hashes for yoshaas-gateway-2.0.0.tar.gz
Algorithm Hash digest
SHA256 69f8c283f8a7adb3b90069bcffed508776182d1106c11e1028cc7d282cabf91c
MD5 6748f36fe36ea6b2098d623c09390f5f
BLAKE2b-256 6dc00b9162f5a4422958be0499914cbc19ddd9f2f7d561734da2b3eb8f6220f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yoshaas_gateway-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 093718f0c830927c2f5afaea0420db9b5c89f966e71b0c678264e7f823aa735b
MD5 0d9620828a4635f800876dbebda3b626
BLAKE2b-256 11d10a52b5c8a1a36b2255dc143b9e3dd85be0005ed08eed5857feaf3e054bcc

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