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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ruythcore-1.0.2.tar.gz
  • Upload date:
  • Size: 7.9 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.2.tar.gz
Algorithm Hash digest
SHA256 ac18783d71dba2bb4fbaf7996c743715e768cb744b485a4c66baacf3b05d39f4
MD5 9c3fd680ab7112597fc3662e8043c6c4
BLAKE2b-256 1c69d7f58d52b76050c549c91f03bb937fdd80038c9c1470b674c0d80cd5e173

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ruythcore-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.0 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 86b01ad5e40ecb3d612b43dbcfa45ef5f9a73d2785e59e0a69459d8fe9e85b5b
MD5 50650f4ea996e60b8d41eb98d6e9cfaa
BLAKE2b-256 988f22eb06476963b3d463f2ed1fd3db11bb6bd3d97166b3872a805da0ab490a

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