diff --git a/.sonarcloud.properties b/.sonarcloud.properties index d6aab17..cb6d31c 100644 --- a/.sonarcloud.properties +++ b/.sonarcloud.properties @@ -12,6 +12,6 @@ sonar.exclusions=emojis sonar.sourceEncoding=UTF-8 # Exclusions for copy-paste detection -# src/commandUtils.ts, src/commands/rollHelp.ts is excluded to get rid of the duplicate code compliant. Sonar does not like you initializing JSON in ts files. +# src/commands/rollHelp.ts is excluded to get rid of the duplicate code compliant. Sonar does not like you initializing JSON in ts files. # db/initialize.ts, db/populateDefaults.ts are excluded to get rid of some duplicate code compliants. Sonar does not like the repeated DB calls even when they are unique calls. -sonar.cpd.exclusions=src/commandUtils.ts,src/commands/rollHelp.ts,db/initialize.ts,db/populateDefaults.ts \ No newline at end of file +sonar.cpd.exclusions=src/commands/rollHelp.ts,db/initialize.ts,db/populateDefaults.ts \ No newline at end of file diff --git a/artificer.service b/artificer.service new file mode 100644 index 0000000..e008099 --- /dev/null +++ b/artificer.service @@ -0,0 +1,14 @@ +[Unit] +Description=The Artificer Discord Bot +Documentation=https://github.com/Burn-E99/TheArtificer +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 +RestartSec=60 +Restart=on-failure + +[Install] +WantedBy=multi-user.target