mirror of
https://github.com/stoatchat/python-client-sdk.git
synced 2026-07-22 18:45:22 -04:00
23 lines
487 B
Python
Executable File
23 lines
487 B
Python
Executable File
import asyncio
|
|
|
|
import aiohttp
|
|
|
|
import revolt
|
|
from revolt.ext import commands
|
|
|
|
|
|
class Client(commands.CommandsMixin, revolt.Client):
|
|
async def get_prefix(self, message: revolt.Message):
|
|
return ">>>"
|
|
|
|
@commands.command()
|
|
async def ping(self, ctx: commands.Context):
|
|
await ctx.send("pong")
|
|
|
|
async def main():
|
|
async with aiohttp.ClientSession() as session:
|
|
client = Client(session, "BOT TOKEN HERE")
|
|
await client.start()
|
|
|
|
asyncio.run(main())
|