Skip to content

feature request: New example for Cogs #53

Description

@MysticMia

Something along the lines of this, perhaps?

importrevoltfromrevolt.extimportcommandsclassTestCog(commands.Cog):
@commands.command()asyncdefping(self, ctx: commands.Context):
awaitctx.send("pong")
classClient(commands.CommandsClient):
asyncdefget_prefix(self, message: revolt.Message):
return"!"asyncdefmain():
asyncwithrevolt.utils.client_session() assession:
client=Client(session, "BOT TOKEN HERE")
client.add_cog(TestCog()) # initialize your custom cogawaitclient.start()
asyncio.run(main())

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions