// the main juice const { buddies } = require('./config') if(!buddies) throw "Did you seutp your config?" const { toot } = require('./toot'); (async function() { for await(buddy of buddies) { const { chat } = require(`./buddies/${buddy}/buddy`) // contains 'toot', and maybe 'attach' / 'attachDescription' const message = await chat() console.log(`buddy ${buddy} has this to say: ${JSON.stringify(message)}`) await toot(message) } console.log('Done! for now... ') })()