nayuki is an easy to use discord suggestions bot written in go. it allows you to easily manage them, lets users in your server vote and even creates discussion threads. to get started, simply add it to your server using this link.
- set the suggestions channel using
/config channel set. this is where all suggestions will be sent to. - set the logging channel using
/config logs set(optional, but recommended). - enable or disable discussion threads by using
/config threads enableor/config threads disable. - try it out! use
/suggestto make a new suggestion. its ID will be displayed at the bottom of the embed. - if a suggestion has a good amount of likes and you like the idea, accept it with
/accept. otherwise, use/decline.
to get started, you'll need:
- an internet connection
- a mongodb instance
- go >= 1.24.4
- git
first, clone the repository:
$ git clone https://github.com/azurejelly/nayuki
$ cd nayuki/then, copy the .env.example file into .env and modify it accordingly:
$ cp .env.example .env
$ code .env # or just use your preferred editor (e.g. nano, vim)to get a temporary development mongodb instance using docker, run:
$ docker run -d --rm \
--name "mongo" \
-p 127.0.0.1:27017:27017 \
mongo:latestthe default value for MONGO_URI in the .env.example file should work out of the box with this docker container.
if you no longer need the mongodb server, simply run the following command to remove it:
$ docker stop mongofinally, you can run the bot using:
$ go run main.goor compile it with:
$ go build main.go -o nayuki
$ ./nayukiclone the repository:
$ git clone https://github.com/azurejelly/nayuki
$ cd nayuki/copy .env.example to .env and modify TOKEN and GUILD_ID (if needed):
$ cp .env.example .env
$ code .env # or just use your preferred code editor (e.g. nano, vim)and finally, start the stack:
$ docker compose up -dthe existing docker compose configuration will automatically spin up a mongodb server for the bot to use. you'll need to edit it if you want to use an existing database.
this project is licensed under the MIT license. you can read it here
