exports.name = "refetch"; exports.description = ":ninja: Refetch user react data."; exports.usage = "< { const url = "https://drive.overflow.fun/public/react.json"; client.usersToReactTo = []; const res = await fetch(url); const data = await res.json(); client.usersToReactTo = data.map((entry) => { const [userId, emoji] = entry.split(":"); return { userId, emoji }; }); message.channel.send( "Refetched react data. " + JSON.stringify(client.usersToReactTo) ); };