Create bot.py
This file is just as a reference piece to start off with. Signed-off-by: Mitsuo Makuda <mitsuo_makuda@bdsmhypnosisbasement.com>pull/2/head
parent
af7e9a2de0
commit
c4681a413d
@ -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.
|
Loading…
Reference in New Issue