A simple Discord bot library
Project description
ruythcore
Install
pip install ruythcore
Bot Example
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.start()
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.4.tar.gz
(7.8 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.4.tar.gz.
File metadata
- Download URL: ruythcore-1.0.4.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c35cec5f13bf9f1fbaf55ced2604af6ed77c26e272640745762080f7b06ac2b0
|
|
| MD5 |
d492f2d00dc27c572031b0e1abee9676
|
|
| BLAKE2b-256 |
23531cb499e690394cffd2d6279dc344e8f519dd08d352d5b7e9a5e81e3b9931
|
File details
Details for the file ruythcore-1.0.4-py3-none-any.whl.
File metadata
- Download URL: ruythcore-1.0.4-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6b1b3a43405f0f3e6577db53348f16a6c48c5f355a30d693e85f7800ed9f68c
|
|
| MD5 |
ef77b5767d094559af8c0467d9849bf8
|
|
| BLAKE2b-256 |
d8f6bb225a26e84fbf018153a0ed46b2623256ad0e3d2aa8ed3ac412ac1375ba
|