https://github.com/dimensional-fun/kantoku
📡 discord http interactions server written in golang
https://github.com/dimensional-fun/kantoku
discord golang http-interactions interactions
Last synced: 5 months ago
JSON representation
📡 discord http interactions server written in golang
- Host: GitHub
- URL: https://github.com/dimensional-fun/kantoku
- Owner: dimensional-fun
- License: lgpl-2.1
- Created: 2022-01-20T21:37:03.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-08-02T10:34:15.000Z (almost 3 years ago)
- Last Synced: 2026-01-15T05:59:57.945Z (5 months ago)
- Topics: discord, golang, http-interactions, interactions
- Language: Go
- Homepage:
- Size: 68.4 KB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: security.go
Awesome Lists containing this project
README

## 📦 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**](https://discord.com/developers/applications) and set
your interactions endpoint url to `https:///v1/interactions`
### implementing kantoku into your code base
Whenever Discord `POST`s an interaction to `/v1/interactions` Kantoku will request an interaction response on the
configured NATS subject.
_wip_
###### [Discord Server](https://discord.gg/8R4d8RydT4)
## 📁 api
### `GET /v1`
#### Http Response
```json
{
"data": "Hello, World!",
"success": true
}
```
### `POST /v1/interactions`
#### Http Request
- `X-Signature-Ed25519` ed25519 signature
- `X-Signature-Timestamp` timestamp of the signature
#### Http Response
## 📜 contributors
- [@melike2d](https://github.com/melike2d)
- [@Topi314](https://github.com/Topi314)
---
[Dimensional Fun](https://dimensional.fun) • Licensed under [**LGPL-2.1**](/LICENSE)