commit 3926e4a2bffc4e87bfd915aa9db649eae6b255f6 parent 501454eccdcb04f1af64dcdd10d3a72fcf32cd9d Author: Daniel <23189912+danyisill@users.noreply.github.com> Date: Thu, 19 Mar 2020 01:00:18 +0300 Create choose.ts Diffstat:
A | lib/commands/choose.ts | | | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/lib/commands/choose.ts b/lib/commands/choose.ts @@ -0,0 +1,5 @@ +export default home_scope => { + const { message, args } = home_scope, + a = args.join(' ').split(','); + message.answer(a[Math.floor(Math.random() * a.length)]); +}