kantoku

command module
v0.0.0-...-e9e86d6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2023 License: LGPL-2.1 Imports: 14 Imported by: 0

README ยถ

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

Documentation ยถ

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL