From c4681a413d57308a60fa5197616544cc14550a1b Mon Sep 17 00:00:00 2001 From: Mitsuo Makuda Date: Mon, 7 Nov 2022 17:08:29 +0000 Subject: [PATCH] Create bot.py This file is just as a reference piece to start off with. Signed-off-by: Mitsuo Makuda --- buttons/bot.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 buttons/bot.py diff --git a/buttons/bot.py b/buttons/bot.py new file mode 100644 index 0000000..3e430af --- /dev/null +++ b/buttons/bot.py @@ -0,0 +1,15 @@ +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. \ No newline at end of file