- Files required:
config.jsonconsists of:
"openWeatherAPI": "",
"alphaAPI": "",
"mongoDBPW": "",
"uri": "t",
"MONGODB_URI": "",
city.list.json(download from: http://bulk.openweathermap.org/sample/)city.list.min.json(download from: http://bulk.openweathermap.org/sample/).envcontains DISCORDJS_BOT_TOKEN
-
Set up Google Cloud API for text-to-speech:
- Follow steps in here to install SDK
- Run
gcloud auth application-default login - Go to
application_default_credentials.jsonpaste in your info - Run
gcloud config set project PROJECT_ID
-
To run the bot on pm2:
npm install pm2 -g- Inside the git folder run:
pm2 ecosystem - Copy everything inside
ecosystem.config.json - Make changes to the file if necessary.