mirror of
https://github.com/thaldrin/thaldrin.git
synced 2024-08-14 23:57:21 +00:00
commands
This commit is contained in:
parent
908d330378
commit
25735dacd9
2 changed files with 24 additions and 1 deletions
18
src/modules/images/fox.ts
Normal file
18
src/modules/images/fox.ts
Normal file
|
@ -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 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
|
Loading…
Reference in a new issue