You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
buttons_raw/buttons/bot.py

15 lines
371 B
Python

import hikari
bot = hikari.GatewayBot(token="...")
@bot.listen()
async def ping(event: hikari.GuildMessageCreateEvent) -> None:
if event.is_bot or not event.content:
return
if event.content.startswith("hk.ping"):
await event.message.respond("Pong!")
bot.run()
# This is just a basic script to have minimal functionality at the very least.