cleanup readme
This commit is contained in:
parent
5d8f9e7f0d
commit
7af0c460fc
1 changed files with 10 additions and 8 deletions
18
README.md
18
README.md
|
@ -7,14 +7,7 @@ A bot that automates silliness.
|
||||||
1. Create a new bot at https://discord.com/developers/applications/
|
1. Create a new bot at https://discord.com/developers/applications/
|
||||||
2. Set your Interactions Endpoint URL here: https://discord.com/developers/applications/<id\>/information
|
2. Set your Interactions Endpoint URL here: https://discord.com/developers/applications/<id\>/information
|
||||||
3. Clone the latest version of `sily-bot` with `git clone https://git.jjanzen.ca/index.cgi/sily-bot.git`
|
3. Clone the latest version of `sily-bot` with `git clone https://git.jjanzen.ca/index.cgi/sily-bot.git`
|
||||||
4. Populate your .env file:
|
4. Populate your `.env` file
|
||||||
```ini
|
|
||||||
APP_ID=<APPLICATION ID>
|
|
||||||
DISCORD_TOKEN=<TOKEN>
|
|
||||||
PUBLIC_KEY=<PUBLIC KEY>
|
|
||||||
TIMEZONE=<TIMEZONE>
|
|
||||||
PORT=<PORT> # optional
|
|
||||||
```
|
|
||||||
* APP_ID and PUBLIC_KEY are found at https://discord.com/developers/applications/<id\>/information
|
* APP_ID and PUBLIC_KEY are found at https://discord.com/developers/applications/<id\>/information
|
||||||
* DISCORD_TOKEN is found by reseting the token at https://discord.com/developers/applications/<id\>/bot
|
* DISCORD_TOKEN is found by reseting the token at https://discord.com/developers/applications/<id\>/bot
|
||||||
* TIMEZONE is base on the [IANA time zone database](https://www.iana.org/time-zones) e.g. `America/Winnipeg`
|
* TIMEZONE is base on the [IANA time zone database](https://www.iana.org/time-zones) e.g. `America/Winnipeg`
|
||||||
|
@ -23,6 +16,15 @@ PORT=<PORT> # optional
|
||||||
6. Register the bot commands with `npm run register`
|
6. Register the bot commands with `npm run register`
|
||||||
7. Run the bot with `npm run start`
|
7. Run the bot with `npm run start`
|
||||||
|
|
||||||
|
The `.env` file is formatted as:
|
||||||
|
```ini
|
||||||
|
APP_ID=<APPLICATION ID>
|
||||||
|
DISCORD_TOKEN=<TOKEN>
|
||||||
|
PUBLIC_KEY=<PUBLIC KEY>
|
||||||
|
TIMEZONE=<TIMEZONE>
|
||||||
|
PORT=<PORT> # optional
|
||||||
|
```
|
||||||
|
|
||||||
### Note on accessing the bot
|
### Note on accessing the bot
|
||||||
|
|
||||||
This bot requires that there be a publicly accessible interactions endpoint URL. You're on your own for this as the setup entirely depends on your system. I run an Apache webserver that proxies requests for `/sily-bot` to `http://127.0.0.1:3000/` with the following:
|
This bot requires that there be a publicly accessible interactions endpoint URL. You're on your own for this as the setup entirely depends on your system. I run an Apache webserver that proxies requests for `/sily-bot` to `http://127.0.0.1:3000/` with the following:
|
||||||
|
|
Loading…
Add table
Reference in a new issue