whizzzkid / fuelPrices

fuelPrices: Twitter Bot Running on Google Apps Script

Home Page:https://docs.google.com/spreadsheets/d/1fMASOyPWnOQyaNBg4SUwmtIW2C6uWEWIYrrTJq0HaI8/edit#gid=0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fuelPrices: Twitter Bot running on Google Apps Script.

Hosting a twitter posting bot on Google's Apps Script environment while using Google Sheets as your data store.

Links

Building

  • This project uses clasp and rollup.
  • to run:
$ npm i
$ npm build;
  • This should build fuelPrice.js in the dist folder. Now just create a new GAppsScript project using clasp or pull something already existing.
  • Add you secrets to the dist folder (don't commit them)
  • To push:
$ npm push

Posting tweets

The twitter module exposes a simple class, you need to have secrets.ts populated before you can build that module. An example file has been provided, just fill those values and do not commit them. The usage is simple:

const twitter = new Twitter();
twitter.tweet(`msg`);

This module can be separately used to post tweets using Google Apps Scripts.

License

MIT

About

fuelPrices: Twitter Bot Running on Google Apps Script

https://docs.google.com/spreadsheets/d/1fMASOyPWnOQyaNBg4SUwmtIW2C6uWEWIYrrTJq0HaI8/edit#gid=0

License:MIT License


Languages

Language:TypeScript 97.1%Language:JavaScript 2.9%