-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Labels
unconfirmed bugSomething isn't workingSomething isn't working
Description
Something along the lines of this, perhaps?
import revolt
from revolt.ext import commands
class TestCog(commands.Cog):
@commands.command()
async def ping(self, ctx: commands.Context):
await ctx.send("pong")
class Client(commands.CommandsClient):
async def get_prefix(self, message: revolt.Message):
return "!"
async def main():
async with revolt.utils.client_session() as session:
client = Client(session, "BOT TOKEN HERE")
client.add_cog(TestCog()) # initialize your custom cog
await client.start()
asyncio.run(main())Metadata
Metadata
Assignees
Labels
unconfirmed bugSomething isn't workingSomething isn't working