mirror of
https://github.com/thaldrin/thaldrin.git
synced 2024-08-14 23:57:21 +00:00
first working command (wolf)
This commit is contained in:
parent
3c8bf5aad8
commit
9b3653eb16
1 changed files with 8 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
||||||
import yiff from '../../utils/yiff';
|
import yiff from '../../utils/yiff';
|
||||||
import Command from '../../handler/structures/Command';
|
import Command from '../../handler/structures/Command';
|
||||||
import { Context } from '../../utils/types';
|
import { Context } from '../../utils/types';
|
||||||
|
import { MessageEmbed } from 'discord.js';
|
||||||
|
|
||||||
export = class Wolf extends Command {
|
export = class Wolf extends Command {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
@ -13,7 +14,12 @@ export = class Wolf extends Command {
|
||||||
}
|
}
|
||||||
|
|
||||||
async command(ctx: Context) {
|
async command(ctx: Context) {
|
||||||
let image = await yiff.yiffy('animals', "wolf")
|
let image = await yiff.thaldrin("wolves")
|
||||||
console.log(image)
|
let provider = "thaldr.in"
|
||||||
|
|
||||||
|
ctx.settings.embeds ?
|
||||||
|
ctx.channel.send(new MessageEmbed().setImage(image.url).setFooter(`Thaldrin - Image provided by ${provider}`, ctx.config.variables.avatar).setColor(ctx.config.variables.color))
|
||||||
|
:
|
||||||
|
ctx.channel.send(image.url)
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue