A Python Discord Bot
Project description
ruythcore
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
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.0.tar.gz
(6.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ruythcore-1.0.0.tar.gz.
File metadata
- Download URL: ruythcore-1.0.0.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8c660b0cfccd939d960ca7379a092e2d155e4f6a4947c4c25f3d452cff2335e
|
|
| MD5 |
50ac7ed8f7508c1f5d481ef12811631c
|
|
| BLAKE2b-256 |
8daa1084387d36242220f841a5506a07dca7cbf6c96c28bed305a044a8727eae
|
File details
Details for the file ruythcore-1.0.0-py3-none-any.whl.
File metadata
- Download URL: ruythcore-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2727fd776b5aeef45b3347fe0a8c6eb7eedab0c9155c50cb4e53740d803202c3
|
|
| MD5 |
69bcfe75e79844b5527532c168789116
|
|
| BLAKE2b-256 |
b12d2ef6e7ee17d9a2ae11652e97f75fb24272fdd63bf7bbe1e1e25ed0b03155
|