citra-emu
/
citra-web
Archived
1
0
Fork 0
This repository has been archived on 2024-03-23. You can view files and clone it, but cannot push or open issues or pull requests.
citra-web/scripts/twitter/app.js

38 lines
1.3 KiB
JavaScript
Raw Normal View History

2017-02-26 21:24:53 +00:00
var fs = require('fs');
var logger = require('winston');
var jsonfile = require('jsonfile');
var outputFile = '../../site/data/twitter.json';
var tweets = [
{
"id": "817201197065109505",
"order": 1,
"date": "01/05/2017",
"author": "citraemu",
"image": "https://pbs.twimg.com/profile_images/699782793736359936/eMLbnRNR_normal.png",
"message": "Citra nightlies are back up and better than ever! Sorry for the delay and Happy New Year!"
},
{
"id": "776626520110399488",
"order": 2,
"date": "09/15/2016",
"author": "citraemu",
"image": "https://pbs.twimg.com/profile_images/699782793736359936/eMLbnRNR_normal.png",
"message": "After much anticipation, Citra now has a JIT! Props again to @MerryMage for another massive contribution to the project!!"
},
{
"id": "733831257398747137",
"order": 3,
"date": "05/20/2016",
"author": "citraemu",
"image": "https://pbs.twimg.com/profile_images/699782793736359936/eMLbnRNR_normal.png",
"message": "Props to @MerryMage for a fantastic job on Citra's audio support https://t.co/Z23AWxcDkf"
}
];
jsonfile.writeFile(outputFile, tweets, function (err) {
if (err) { logger.error(err); return; }
logger.info(`Wrote ${tweets.length} tweets to ${outputFile}`)
})