Simp-O-Matic

Dumb Discord bot in TS.
git clone git://git.knutsen.co/Simp-O-Matic
Log | Files | Refs | README | LICENSE

commit f109f94378b22b14759226fd2314f8f0d88e8f08
parent 309961b4e9db540b114b3cb05e835d875de80746
Author: knutsen <samuel@knutsen.co>
Date:   Thu, 24 Jun 2021 14:12:44 +0100

Update README on secrets.

Diffstat:
MREADME.md | 66+++++++++++++++++++++++++++++++++++++-----------------------------
Mbuild.sh | 3+--
Mpackage.json | 3++-
Mtsconfig.json | 1+
4 files changed, 41 insertions(+), 32 deletions(-)

diff --git a/README.md b/README.md @@ -62,41 +62,49 @@ Make sure locally, you have the following secrets exported as environment variables: ```sh # Discord -export BOT_API_TOKEN="exampleExampleExample" -export CLIENT_KEY="exampleExampleExample" -export CLIENT_ID="exampleExampleExample" +export BOT_API_TOKEN="..." +export CLIENT_KEY="..." +export CLIENT_ID="..." # RapidAPI for Urban Dictionary and ContextualWeb -export RAPID_API_KEY="exampleExampleExample" +export RAPID_API_KEY="..." # Oxford English Dictionary -export OXFORD_ID="exampleExampleExample" -export OXFORD_KEY="exampleExampleExample" +export OXFORD_ID="..." +export OXFORD_KEY="..." # Google APIs -export GOOGLE_API_KEY="exampleExampleExample" -export GOOGLE_SEARCH_ID="exampleExampleExample" -export GOOGLE_OAUTH_ID="exampleExampleExample" -export GOOGLE_OAUTH_SECRET="exampleExampleExample" -export GOOGLE_PERSONAL_CODE="exampleExampleExample" -export GOOGLE_TYPE="exampleExampleExample" -export GOOGLE_PROJECT_ID="exampleExampleExample" -export GOOGLE_PRIVATE_KEY_ID="exampleExampleExample" -export GOOGLE_PRIVATE_KEY="exampleExampleExample" -export GOOGLE_CLIENT_EMAIL="exampleExampleExample" -export GOOGLE_CLIENT_ID="exampleExampleExample" -export GOOGLE_AUTH_URI="exampleExampleExample" -export GOOGLE_TOKEN_URI="exampleExampleExample" -export GOOGLE_AUTH_PROVIDER_X509_CERT_URL="exampleExampleExample" -export GOOGLE_CLIENT_X509_CERT_URL="exampleExampleExample" - -# OpenWeather -export OPENWEATHER_KEY="exampleExampleExample" - -# Pastebin -export PASTEBIN_KEY="exampleExampleExample" -export PASTEBIN_PASSWORD="exampleExampleExample" - +export GOOGLE_API_KEY="..." +export GOOGLE_SEARCH_ID="..." +export GOOGLE_OAUTH_ID="..." +export GOOGLE_OAUTH_SECRET="..." +export GOOGLE_PERSONAL_CODE="..." +export GOOGLE_TYPE="..." +export GOOGLE_PROJECT_ID="..." +export GOOGLE_PRIVATE_KEY_ID="..." +export GOOGLE_PRIVATE_KEY="..." +export GOOGLE_CLIENT_EMAIL="..." +export GOOGLE_CLIENT_ID="..." +export GOOGLE_AUTH_URI="..." +export GOOGLE_TOKEN_URI="..." +export GOOGLE_AUTH_PROVIDER_X509_CERT_URL="..." +export GOOGLE_CLIENT_X509_CERT_URL="..." + +# Yandex +export YANDEX_GEOCODER_KEY="..." +export YANDEX_TRANSLATE_KEY="..." + +# MapBox +export MAPBOX_KEY="..." + +# DarkSky Weather +export DARKSKY_KEY="..." + +# JsonBlob +export JSONBLOB_ID="..." + +# Web-hooks +export WEB_SECRET="..." ``` I can send you the secrets file, if I _really_ trust you. diff --git a/build.sh b/build.sh @@ -4,14 +4,13 @@ bold="$(tput bold)" reset="$(tput sgr0)" [ ! -d "./node_modules" ] && echo "${bold}Installing...${reset}" && yarn install -rm -rf ./build mkdir -p ./build ./public echo "${bold}Copying config files...${reset}" cp ./bot.json ./generate_secrets.sh ./HELP.md ./package.json ./build echo "${bold}Compiling TypeScript...${reset}" -./node_modules/.bin/tsc # -b ./tsconfig.json +./node_modules/.bin/tsc -b ./tsconfig.json [ -f "./.env" ] && . ./.env diff --git a/package.json b/package.json @@ -25,7 +25,8 @@ "quick": ". ./build.sh && yarn run start", "deploy-scale": "heroku scale web=0 worker=1 -a simp-o-matic", "deploy-restart": "heroku restart -a simp-o-matic", - "lint": "tslint --project ." + "lint": "tslint --project .", + "typecheck": "tsc --noEmit -b ./tsconfig.json" }, "homepage": "https://github.com/Demonstrandum/simpomatic", "repository": { diff --git a/tsconfig.json b/tsconfig.json @@ -16,6 +16,7 @@ // "sourceMap": true, /* Generates corresponding '.map' file. */ // "outFile": "./", /* Concatenate and emit output to single file. */ "outDir": "./build", /* Redirect output structure to the directory. */ + "incremental": true, // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ // "composite": true, /* Enable project compilation */ // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */