for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
from pincer import Client
from pincer.commands import command, CommandArg, Description
from pincer.objects import Embed, MessageContext
class Bot(Client):
@command(description="Say something as the bot!")
async def say(
self,
ctx: MessageContext,
content: CommandArg[str, Description["The content of the message"]],
) -> Embed:
# Using the ctx to get the command author
return Embed(description=f"{ctx.author.user.mention} said {content}")
@Client.event
async def on_ready(self):
# Our client has successfully started, lets let ourself know that!
print("Logged in as", self.bot)
async def on_payload(self, payload):
print(payload)
if __name__ == "__main__":
Bot("ODkxNzM4NTExMzExNTE1NzA4.YVCuNA.5OrfKz5KADVhIlxMgXjSs4aQcMk").run()