Simp-O-Matic

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

commit b8e93de9899b85511694ce83d95b7a648cad8e6c
parent e00169e5a42802204c626c9f4be482df86eac126
Author: Bruno <b-coimbra@hotmail.com>
Date:   Sun, 22 Mar 2020 10:21:48 -0300

Update pat.ts
Diffstat:
Mlib/commands/pat.ts | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/commands/pat.ts b/lib/commands/pat.ts @@ -13,7 +13,7 @@ interface Scope { export default (home_scope: Scope) => { const { message, args } = home_scope; - if (args.length == 0) { + if (args.length == 0 || message.mentions.users.size == 0) { message.channel.send( "Pat someone!\n" + ".pat [@user-name]".format(FORMATS.block) );