git clone https://github.com/mooooooooooooooon/twitter-markov-bot.git
npm i -g firebase-tools
- Create a Developers Console project
- Enable the Pub/Sub API
- Enable Project Billing
- Create a Firebase project associated with your Developers Console project
-
At project root,
nano functions/.env
-
Paste this:
TWITTER_CONSUMER_KEY=<your consumer key> TWITTER_CONSUMER_SECRET=<your consumer secret> TWITTER_ACCESS_TOKEN_KEY=<your access token key> TWITTER_ACCESS_TOKEN_SECRET=<your access token secret> TWITTER_USER=<@username of account to seed generator with (no @ symbol)>
- At project root,
gcloud config set project <your-project-id>
cd appengine
npm i
gcloud app create
npm run deploy
At project root, firebase deploy