Simp-O-Matic

Dumb Discord bot in TS.
git clone git://git.knutsen.co/Simp-O-Matic
Log | Files | Refs | README | LICENSE

commit 96428e6467e17e7fb6498118411bc87af62d75c9
parent af8f828db3eb1c7c3001374ef8b836ad04c1c9de
Author: Daniel <23189912+danyisill@users.noreply.github.com>
Date:   Thu, 19 Mar 2020 19:52:49 +0300

Update pp.ts
Diffstat:
Mlib/commands/pp.ts | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/lib/commands/pp.ts b/lib/commands/pp.ts @@ -5,11 +5,7 @@ export default home_scope => { try { user = message.mentions.users.first().id; } finally { - const shaft = '='.repeat( - CONFIG.pp_sizes[user] - ? CONFIG.pp_sizes[user] - : CONFIG.pp_sizes[user] = Math.ceil(Math.random() * 16)); - + const shaft = '='.repeat(CONFIG.pp_sizes[user] || CONFIG.pp_sizes[user] = Math.ceil(Math.random() * 16)); message.answer(`8${shaft}>`); } };