2021-04-05 04:35:12 +00:00
|
|
|
import {Command, NamedCommand} from "../../core";
|
2021-04-07 14:14:05 +00:00
|
|
|
import {processEmoteQueryFormatted} from "./modules/emote-utils";
|
2020-10-20 12:04:13 +00:00
|
|
|
|
2021-04-05 04:35:12 +00:00
|
|
|
export default new NamedCommand({
|
2020-12-15 01:44:28 +00:00
|
|
|
description: "Send the specified emote.",
|
|
|
|
run: "Please provide a command name.",
|
|
|
|
any: new Command({
|
2020-12-17 05:12:17 +00:00
|
|
|
description: "The emote(s) to send.",
|
|
|
|
usage: "<emotes...>",
|
|
|
|
async run({guild, channel, message, args}) {
|
2021-04-07 14:01:44 +00:00
|
|
|
const output = processEmoteQueryFormatted(args);
|
|
|
|
if (output.length > 0) channel.send(output);
|
2020-12-15 01:44:28 +00:00
|
|
|
}
|
|
|
|
})
|
2020-10-20 12:04:13 +00:00
|
|
|
});
|