Getting Started
Ruythcore is a library for Discord Bot written in Python
How it works
Ruythcore can be via gateway or https post
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()
* Replace YOUR_BOT_TOKEN your token.
Note: Do not share the token with anyone because it is the key of the Bot.
Link:
Nhận xét
Đăng nhận xét