Skip to main content

A Python Discord Bot

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ruythcore-1.0.1.tar.gz
  • Upload date:
  • Size: 7.1 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.1.tar.gz
Algorithm Hash digest
SHA256 8b0e1e8666d745cf5ca077ddba73d45eb3bbd777bd64d1aa6b02aa6872445588
MD5 491cf34a19ddd1850689f017ab1b08de
BLAKE2b-256 a3c6beacebd4dc1a3d175b2e7a4139e4593baac5d7d0411f25b41279eaa8af4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ruythcore-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9160956a2be001300a182bc8143685b527ec29c2b39ddd065d0f15acbda8aa17
MD5 d3e8cba78fc1d40860b70198e44f3aa0
BLAKE2b-256 680d5089361e3e3a548ed585c23604cd811f730898c409c7dd67ef2ba93a6eb2

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