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())
Something along the lines of this, perhaps?