const readline = require('readline') const Mastodon = require('./node_modules/mastodon-api/lib/mastodon.js') const rl = readline.createInterface({ input: process.stdin, output: process.stdout }) let clientId let clientSecret const baseUrl = 'https://mstdn.io' Mastodon.createOAuthApp(baseUrl + '/api/v1/apps', 'testapp', 'read write follow') .catch(err => console.error(err)) .then((res) => { console