for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
from pincer import command, Client
from pincer.objects import Message, InteractionFlags
@Client.event
async def on_ready(self):
print(f"Started client on {self.bot}\n"
"Registered commands: " + ", ".join(self.chat_commands))
@command(description="Say something as the bot!")
async def say(message: str):
return message
@command(description="Add two numbers!")
async def add(first: int, second: int):
return f"The addition of `{first}` and `{second}` is `{first + second}`"
@command(guild=1324567890)
async def private_say(message: str):
return Message(message, flags=InteractionFlags.EPHEMERAL)
if __name__ == "__main__":
Client("XXXYOURBOTTOKENHEREXXX").run()