This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
title: Sally | |
tags: | |
colorID: 0 | |
position: 524,111 | |
--- | |
Sally: Test #line:017eb50 | |
-> No, thanks. #line:078a32c | |
Sally: Aw, ok! #line:0af877c | |
-> I'm good. #line:07aa873 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Twitter = require('twitter'); | |
const config = require('./config.js'); | |
const database = require('./firebase.js'); | |
const censor = new (require('censor-sensor').CensorSensor)(); | |
const axios = require('axios'); | |
// Allow common profanity. | |
censor.disableTier(2); | |
// Initialise Twitter client. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const TWITTER_CHARACTER_LIMIT = 280; // The bottleneck | |
const MIN_REVIEW_SIZE = 10; // Minimum amount of characters acceptable to be interesting | |
const TEXT_PADDING = 25; // How much spacing is in the post template to be safe | |
const AVERAGE_PLAYTIME_THRESHOLD = 10; // Multiplier for necessary time played to consider | |
const MIN_AVERAGE_FOREVER = 120; // Only choose games that have some activity in the past couple of weeks | |
const MIN_NEGATIVE_REVIEWS = 100; // Only choose games that have had some reviews | |
const alreadyScrapedGames = await database.ref('games/').once('value').then(function(snapshot) { | |
return Object.keys(snapshot.val()); |