diff --git a/README.md b/README.md index 13eba91..54e8d6b 100644 --- a/README.md +++ b/README.md @@ -220,7 +220,7 @@ The Artificer is built on [Deno](https://deno.land/) `v1.22.0` using [Discordeno You will also need to install and setup a MySQL database with a user for the bot to use to add/modify the database. This user must have the "DB Manager" admin rights and "REFERENCES" Global Privileges. Once the DB is installed and a user is setup, run the provided `db\initialize.ts` to create the schema and tables. After this, run `db\populateDefaults.ts` to insert some needed values into the tables. -Once everything is set up, starting the bot can simply be done with `deno run --allow-net .\mod.ts`. +Once everything is set up, starting the bot can simply be done with the command in `start.command`. If you choose to run version `1.1.0` or newer, ensure you disable the API in `config.ts` or verify you have properly secured your instance of The Artificer. If you enable the API, you should manually generate a 25 char nanoid and place it in `config.api.adminKey` and copy your `userid` and place it in `config.api.admin` before running `db\populateDefaults.ts`. diff --git a/artificer.rc b/artificer.rc index d2db48f..a2e9538 100644 --- a/artificer.rc +++ b/artificer.rc @@ -10,7 +10,7 @@ pidfile="/var/dbots/TheArtificer/artificer.pid" artificer_root="/var/dbots/TheArtificer" artificer_write="./logs/,./src/endpoints/gets/heatmap.png" -artificer_read="./src/solver/,./src/endpoints/gets/heatmap-base.png,./src/endpoints/gets/heatmap.png" +artificer_read="./src/solver/,./src/endpoints/gets/heatmap-base.png,./src/endpoints/gets/heatmap.png,./config.ts,./deps.ts,./src/mod.d.ts" artificer_log="/var/log/artificer.log" artificer_chdir="${artificer_root}" diff --git a/artificer.service b/artificer.service index e008099..a64e7c0 100644 --- a/artificer.service +++ b/artificer.service @@ -6,7 +6,7 @@ After=network.target [Service] Type=simple PIDFile=/run/deno.pid -ExecStart=/root/.deno/bin/deno run --allow-write=./logs/,./src/endpoints/gets/heatmap.png --allow-read=./src/solver/,./src/endpoints/gets/heatmap-base.png --allow-net .\mod.ts +ExecStart=/root/.deno/bin/deno run --allow-write=./logs/,./src/endpoints/gets/heatmap.png --allow-read=./src/solver/,./src/endpoints/gets/heatmap-base.png,./config.ts,./deps.ts,./src/mod.d.ts --allow-net .\mod.ts RestartSec=60 Restart=on-failure diff --git a/start.command b/start.command index a567408..fb7026a 100644 --- a/start.command +++ b/start.command @@ -1 +1 @@ -deno run --allow-write=./logs/,./src/endpoints/gets/heatmap.png --allow-read=./src/solver/,./src/endpoints/gets/heatmap-base.png --allow-net .\mod.ts \ No newline at end of file +deno run --allow-write=./logs/,./src/endpoints/gets/heatmap.png --allow-read=./src/solver/,./src/endpoints/gets/heatmap-base.png,./config.ts,./deps.ts,./src/mod.d.ts --allow-net .\mod.ts \ No newline at end of file