From e916778c499aa440febf6c82d562adb78f05a4cd Mon Sep 17 00:00:00 2001 From: vulet Date: Tue, 23 Feb 2021 11:07:00 +0800 Subject: [PATCH] refactor(10grans): adjust forecast --- commands/fediverse/makeitrain.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/commands/fediverse/makeitrain.js b/commands/fediverse/makeitrain.js index a5961a7..de78019 100644 --- a/commands/fediverse/makeitrain.js +++ b/commands/fediverse/makeitrain.js @@ -5,11 +5,11 @@ exports.runQuery = async function (roomId, event, notice) { const users = await fediverse.utils.getStatusMentions(notice, event, original); if (!users) return matrix.utils.editNoticeHTML(roomId, original, `No eligible users found.`); const rain = (users) => { - amount = users.length * 0.00000001337 - if (users.length === 1) return amount * 10000 - if (users.length <= 5) return amount * 1000 - if (users.length <= 10) return amount * 100 - if (users.length <= 100) return amount * 10 + amount = users.length * 0.00000001337 // by per user: + if (users.length === 1) return amount * 100000 // 0.001337 + if (users.length <= 5) return amount * 10000 // 0.0001337 + if (users.length <= 10) return amount * 1000 // 0.00001337 + if (users.length <= 100) return amount * 100 // 0.000001337 return amount } axios({