Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/whizzzkid/fuelprices
fuelPrices: Twitter Bot Running on Google Apps Script
https://github.com/whizzzkid/fuelprices
clasp google-apps-script google-sheets twitter-api twitter-bot
Last synced: 27 days ago
JSON representation
fuelPrices: Twitter Bot Running on Google Apps Script
- Host: GitHub
- URL: https://github.com/whizzzkid/fuelprices
- Owner: whizzzkid
- License: mit
- Created: 2020-07-01T02:11:02.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-02-21T04:12:41.000Z (11 months ago)
- Last Synced: 2024-12-24T00:56:52.377Z (29 days ago)
- Topics: clasp, google-apps-script, google-sheets, twitter-api, twitter-bot
- Language: TypeScript
- Homepage: https://docs.google.com/spreadsheets/d/1fMASOyPWnOQyaNBg4SUwmtIW2C6uWEWIYrrTJq0HaI8/edit#gid=0
- Size: 190 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
- Bot Account: https://twitter.com/FuelPriceHike
- Data Store: https://docs.google.com/spreadsheets/d/1fMASOyPWnOQyaNBg4SUwmtIW2C6uWEWIYrrTJq0HaI8/edit
- Post: https://nishantarora.in/Hosting-A-Twitter-Bot-With-Google-Apps-Script.naml## Building
- This project uses [clasp](https://github.com/google/clasp) and rollup.
- to run:```sh
$ 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:```sh
$ 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:```js
const twitter = new Twitter();
twitter.tweet(`msg`);
```This module can be separately used to post tweets using Google Apps Scripts.
## License
MIT