mirror of https://github.com/thaldrin/thaldrin.git
commands
This commit is contained in:
parent
908d330378
commit
25735dacd9
|
@ -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")
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,7 +1,12 @@
|
||||||
import Yiff from 'yiff'
|
import Yiff from 'yiff'
|
||||||
|
import config from '../../config'
|
||||||
import pkg from '../../package.json'
|
import pkg from '../../package.json'
|
||||||
let yiff = new Yiff({
|
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
|
export default yiff
|
Loading…
Reference in New Issue