Skip to main content

A simple Discord bot library

Project description

ruythcore

discord Python

Install

pip install ruythcore

Bot Example

import asyncio
import ruythcore

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

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

@bot.slash_command("hello", description="Say hello")
async def hello(ctx):
    await ctx.reply(f"Hello from RuythCore!")

@bot.event
async def on_ready(data):
    print("RuythCore Ready ✅")

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

Run

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

Link

Docs

Sever

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.3.tar.gz (7.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.3-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ruythcore-1.0.3.tar.gz
  • Upload date:
  • Size: 7.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.3.tar.gz
Algorithm Hash digest
SHA256 372aa877017f6b9066685731fc7e8247130a1982ac607c934902ee669747115f
MD5 dc53f158f7455a86390bc49257797eda
BLAKE2b-256 1d8b6751def6435e1a8c9ab9e9437de865e89c40f703b3351fd078af447a5d90

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ruythcore-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 8.8 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b9bd6e0110f8512b8709c4b1d95f20c71930e7a90622e62748fbc871e49f8a74
MD5 f94844ba43bdff29af363a83c25b5c31
BLAKE2b-256 2a224f15d9d1e7acc1fe5f26dccda01f2e35edf5bcdf4e15ea2da33ed9a7657d

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