2020-12-15 01:44:28 +00:00
|
|
|
import Command from "../../core/command";
|
2021-03-31 03:22:25 +00:00
|
|
|
import {queryClosestEmoteByName} from "./modules/emote-utils";
|
2021-03-30 10:25:07 +00:00
|
|
|
import {botHasPermission} from "../../core/libd";
|
2020-12-17 05:12:17 +00:00
|
|
|
import {Permissions} from "discord.js";
|
2020-10-20 12:04:13 +00:00
|
|
|
|
|
|
|
export default new Command({
|
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}) {
|
|
|
|
let output = "";
|
|
|
|
for (const query of args) output += queryClosestEmoteByName(query).toString();
|
|
|
|
channel.send(output);
|
2020-12-15 01:44:28 +00:00
|
|
|
}
|
|
|
|
})
|
2020-10-20 12:04:13 +00:00
|
|
|
});
|