Skip to content

📡 discord http interactions server written in golang

License

Notifications You must be signed in to change notification settings

dimensional-fun/kantoku

Repository files navigation

Kantoku

📦 Features

  • super-duper fast
  • publishes interactions to a NATS subject
  • interaction testing route

⛓️ usage

to start kantoku

  1. fill in the kantoku.toml configuration file.
  2. run the server thingy
  3. go to your application in the discord developer portal and set your interactions endpoint url to https://<domain>/v1/interactions

implementing kantoku into your code base

Whenever Discord POSTs an interaction to /v1/interactions Kantoku will request an interaction response on the configured NATS subject.

wip

📁 api

GET /v1

Http Response

{
    "data": "Hello, World!",
    "success": true
}

POST /v1/interactions

Http Request

  • X-Signature-Ed25519 ed25519 signature
  • X-Signature-Timestamp timestamp of the signature

https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object

Http Response

https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object

📜 contributors


Dimensional Fun • Licensed under LGPL-2.1

Sponsor this project

Packages