Skip to main content

A simple Discord bot library

Project description

ruythcore

discord pypi Python

Install

pip install ruythcore

Bot Example

import ruythcore

bot = ruythcore.Client("YOUR_TOKEN_HERE", prefix="!")

@bot.command("ping")
async def ping(ctx):
    await ctx.reply("🏓 Pong from RuythCore!")

@bot.slash_command("hello")
async def hello(ctx):
    await ctx.reply("Hello from RuythCore!")

@bot.events.on("ready")
async def on_ready(data):
    print("Ready ✅")

bot.start()
Note: Replace YOUR_BOT_TOKEN with your TOKEN . Do not share TOKEN.

Run

python <namefile>.py
When showing "RuythCore Ready ✅ is successful.

Link

Docs

Server

Discord API

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

ruythcore-1.0.5.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

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

ruythcore-1.0.5-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file ruythcore-1.0.5.tar.gz.

File metadata

  • Download URL: ruythcore-1.0.5.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for ruythcore-1.0.5.tar.gz
Algorithm Hash digest
SHA256 4fbb7083d8e8ff829834b22c77b2dc3c612c7714f54d1726c318c4037c64a1cb
MD5 9add1a6c935495cdd8141b1f30e3974b
BLAKE2b-256 a690a2b414b976b6ecb8c4540cda7503d4e746d5797e13483b86603e6114cb74

See more details on using hashes here.

File details

Details for the file ruythcore-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: ruythcore-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for ruythcore-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6682ccfc691c13f3804615c17fc094d5feb17e27454291568fae23c8b89bd0f2
MD5 5a88d6857583976bd2c79d43a68d0f6d
BLAKE2b-256 f257f834c962173a99c8fe73d77c498df94fbd5a9c12795e818a1bccc836e0fa

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