Initial commit

Bois Clément 2019-04-12 16:39:59 +02:00
commit 3f97d537bb
6 changed files with 1787 additions and 0 deletions

.env.sample Normal file
View File

@ -0,0 +1,2 @@

.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@

database.json Normal file
View File

@ -0,0 +1,102 @@
"Youre that “Nothing” when people ask me what Im thinking about.",
"You look great today.",
"Youre a smart cookie.",
"I bet you make babies smile.",
"You have impeccable manners.",
"I like your style.",
"You have the best laugh.",
"I appreciate you.",
"You are the most perfect you there is.",
"Our system of inside jokes is so advanced that only you and I get it. And I like that.",
"Youre strong.",
"Your perspective is refreshing.",
"Youre an awesome friend.",
"You light up the room.",
"You deserve a hug right now.",
"You should be proud of yourself.",
"Youre more helpful than you realize.",
"You have a great sense of humor.",
"Youve got all the right moves!",
"Is that your picture next to “charming” in the dictionary?",
"Your kindness is a balm to all who encounter it.",
"Youre all that and a super-size bag of chips.",
"On a scale from 1 to 10, youre an 11.",
"You are brave.",
"Youre even more beautiful on the inside than you are on the outside.",
"You have the courage of your convictions.",
"Aside from food. Youre my favorite.",
"If cartoon bluebirds were real, a bunch of them would be sitting on your shoulders singing right now.",
"You are making a difference.",
"Youre like sunshine on a rainy day.",
"You bring out the best in other people.",
"Your ability to recall random factoids at just the right time is impressive.",
"Youre a great listener.",
"How is it that you always look great, even in sweatpants?",
"Everything would be better if more people were like you!",
"I bet you sweat glitter.",
"You were cool way before hipsters were cool.",
"That color is perfect on you.",
"Hanging out with you is always a blast.",
"You always know — and say — exactly what I need to hear when I need to hear it.",
"You smell really good.",
"You may dance like no ones watching, but everyones watching because youre an amazing dancer!",
"Being around you makes everything better!",
"When you say, “I meant to do that,” I totally believe you.",
"When youre not afraid to be yourself is when youre most incredible.",
"Colors seem brighter when youre around.",
"Youre more fun than a ball pit filled with candy. (And seriously, what could be more fun than that?)",
"That thing you dont like about yourself is what makes you so interesting.",
"Youre wonderful.",
"Everyday is just BLAH when I dont see you For reals! (awesome you are halfway through the list. Youre awesome!)",
"Jokes are funnier when you tell them.",
"Youre better than a triple-scoop ice cream cone. With sprinkles.",
"Your bellybutton is kind of adorable.",
"Your hair looks stunning.",
"Youre one of a kind!",
"Youre inspiring.",
"If you were a box of crayons, youd be the giant name-brand one with the built-in sharpener.",
"You should be thanked more often. So thank you!!",
"Our community is better because youre in it.",
"Someone is getting through something hard right now because youve got their back.",
"You have the best ideas.",
"You always know how to find that silver lining.",
"Everyone gets knocked down sometimes, but you always get back up and keep going.",
"Youre a candle in the darkness.",
"Youre a great example to others.",
"Being around you is like being on a happy little vacation.",
"You always know just what to say.",
"Youre always learning new things and trying to better yourself, which is awesome.",
"If someone based an Internet meme on you, it would have impeccable grammar.",
"You could survive a Zombie apocalypse.",
"Youre more fun than bubble wrap.",
"When you make a mistake, you fix it.",
"Who raised you? They deserve a medal for a job well done.",
"Youre great at figuring stuff out.",
"Your voice is magnificent.",
"The people you love are lucky to have you in their lives.",
"Youre like a breath of fresh air.",
"Youre gorgeous — and thats the least interesting thing about you, too.",
"Youre so thoughtful.",
"Your creative potential seems limitless.",
"Youre the coolest person I know. And I consider myself bet friends with like all celebrities, so. . . .",
"Youre irresistible when you blush.",
"Actions speak louder than words, and yours tell an incredible story.",
"Somehow you make time stop and fly at the same time.",
"When you make up your mind about something, nothing stands in your way.",
"You seem to really know who you are.",
"Any team would be lucky to have you on it.",
"In high school I bet you were voted “most likely to keep being awesome.”",
"I bet you do the crossword puzzle in ink.",
"Babies and small animals probably love you.",
"If you were a scented candle theyd call it Perfectly Imperfect (and it would smell like summer).",
"Theres ordinary, and then theres you.",
"Youre someones reason to smile.",
"Youre even better than a unicorn, because youre real.",
"How do you keep being so funny and making everyone laugh?",
"You have a good head on your shoulders.",
"Has anyone ever told you that you have great posture?",
"The way you treasure your loved ones is incredible.",
"Youre really something special.",
"Youre a gift to those around you."

index.js Normal file
View File

@ -0,0 +1,17 @@
const database = require('./database.json')
const Mastodon = require('mastodon-api')
const M = new Mastodon({
access_token: process.env.ACCESS_TOKEN,
timeout_ms: 60 * 1000,
api_url: `${process.env.API_URL}/api/v1/`,
me => M.get(`accounts/${}/followers`).then(fol => {
for (const follow of {'statuses', { status: `@${follow.acct} ${database[Math.floor(Math.random() * database.length)]}\nRandom happiness from compliment:`, visibility: 'public' })

package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

package.json Normal file
View File

@ -0,0 +1,20 @@
"name": "compliment",
"version": "0.0.1",
"description": "Send random happiness",
"homepage": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"keywords": [
"author": "",
"license": "MIT",
"dependencies": {
"dotenv": "^7.0.0",
"mastodon-api": "^1.3.0"