This script fetches object values from TweetDeck to automate checks on what could have changed with updates. We can't just diff the bundled JavaScript as that is done with Webpack, which means all variables change and the order is different with every build. We picked the most significant values out of the main object we can imagine are the best to compare.
- NodeJS (stable)
npm install
to install dependencies
discord
contains a block with values related to reporting to a Discord webhookenabled
to enable to disable the reports to Discordwebhook_url
, the URL of the webhook deckcheck will post tousername
, username of the Bot user it will post asavatar_url
, avatar of the Bot user it will post as
twitter
contains a block with values related to posting a tweet over Twitterenabled
to enable or disable posts to Twitter- the rest of the values are keys you can get from a Twitter application!
assets
saves a file containing the last timestamp and an array of all (non-emoji) assetsenabled
to enable or disable saving of the assets filepath
path where theassets.json
file should be saved to
output_path
, directory for the generated reportsoutput_url
, URL the generated reports will be available (publicly)data_path
, directory path where the data gets written to/read from
npm start
The script visit TweetDeck and then returns an object consisting of different parts of the main object. This object will be saved if there was no data prior, or compared against an old set of data and then generate a HTML report showing the differences of both data sets.
- Fork and clone the repository
- Make a new branch
- Apply your changes
- Open a Pull Request
deckcheck is licensed under the GPLv3