Skip to content

Latest commit

 

History

History
59 lines (37 loc) · 1.42 KB

README.md

File metadata and controls

59 lines (37 loc) · 1.42 KB

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