From 25735dacd9dba9a6746819ea37aaa315a8e3361f Mon Sep 17 00:00:00 2001 From: Lio Young Date: Sat, 10 Apr 2021 03:53:44 +0200 Subject: [PATCH] commands --- src/modules/images/fox.ts | 18 ++++++++++++++++++ src/utils/yiff.ts | 7 ++++++- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 src/modules/images/fox.ts diff --git a/src/modules/images/fox.ts b/src/modules/images/fox.ts new file mode 100644 index 0000000..0d16d83 --- /dev/null +++ b/src/modules/images/fox.ts @@ -0,0 +1,18 @@ +import { Context } from '../../utils/types'; +import Command from '../../handler/structures/Command'; + +export = class Wolf extends Command { + constructor() { + super({ + name: "fox", + description: "Show a Fox", + aliases: ["yip"], + cooldown: 0, + }) + } + + async command(ctx: Context) { + // await find('foxes') + return console.log("Fox Command") + } +} \ No newline at end of file diff --git a/src/utils/yiff.ts b/src/utils/yiff.ts index 30c118e..9f32a9e 100644 --- a/src/utils/yiff.ts +++ b/src/utils/yiff.ts @@ -1,7 +1,12 @@ import Yiff from 'yiff' +import config from '../../config' import pkg from '../../package.json' let yiff = new Yiff({ - useragent: `Thaldrin/v${pkg.version} (t8.pm/bot)` + useragent: `Thaldrin/v${pkg.version} (t8.pm/bot)`, + apikey: { + sheri: config.apis.sheri, + yiffrest: config.apis.yiffrest + } }) export default yiff \ No newline at end of file