You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importtrixcbot=trixc.Bot(
homeserver="https://matrix.org",
command_prefix="!",
description="My first trixc bot",
)
@bot.eventasyncdefon_ready():
print(f"✅ Logged in as {bot.user.id}")
@bot.command(aliases=["p"])@trixc.cooldown(1, 3.0)asyncdefping(ctx):
"""Check if the bot is alive."""awaitctx.reply("🏓 Pong!")
bot.run("@bot:homeserver.org", "password")
if you want to build a bot using this library - go read the source code. there is no official documentation, and there might never be. the codebase is designed to be intuitive for anyone familiar with discord.py/disnake, so the best way to learn is to explore the code yourself.
if you find any bugs or errors, please open an issue (or fix manually and make PR)