commit b77d29a24254148590b69b44e5a14cd9d3712d14
parent c2a10433c542867c32e35792d03a88cce613b11f
Author: knutsen <samuel@knutsen.co>
Date: Wed, 21 Apr 2021 10:54:09 +0100
Merge branch 'master' of github.com:/Demonstrandum/Simp-O-Matic
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/commands/metric.ts b/lib/commands/metric.ts
@@ -30,7 +30,8 @@ const QUANTITY_REGEX = /(\d*\.?\d+)\s*(mile|inch|feet|foot|ft|ounce|gallon|yard|
export default async (homescope: HomeScope) => {
const { message, args } = homescope;
-
+ if (message.author.bot)
+ return;
const sentence = args.join(" ");
const matches: [string, string][] = []; // Pairs of a quantity with its unit.