Simp-O-Matic

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

commit 120dbd5dcceab1f6e756b962d0afc83f73fa8023
parent cff31e1a6ad0ee20af3944ad59360772ca1a418a
Author: danyisill <danyisill@users.noreply.github.com>
Date:   Thu, 19 Mar 2020 15:34:45 +0300

Create roll.ts

Diffstat:
Alib/commands/roll.ts | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/lib/commands/roll.ts b/lib/commands/roll.ts @@ -0,0 +1,4 @@ +export default home_scope => { + const { message, args } = home_scope; + message.answer(Math.floor(Math.random() * ((+args[0] || 6) + 1))); +}+ \ No newline at end of file