Simp-O-Matic

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

commit 0606252e24f254c6f2d48eff9dc33ae7c02c2fee
parent 79c50d17e7527cf7a89c7fe279c9802e2d276bc2
Author: Demonstrandum <moi@knutsen.co>
Date:   Thu, 19 Mar 2020 01:45:23 +0000

Bloat choose.

Diffstat:
Mlib/commands/choose.ts | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/commands/choose.ts b/lib/commands/choose.ts @@ -1,5 +1,5 @@ export default home_scope => { - const { message, args } = home_scope, - a = args.join(' ').split(','); + const { message, args } = home_scope; + const a = args.join(' ').split(/\s*(?:,|or)\s*/); message.answer(a[Math.floor(Math.random() * a.length)]); }