mirror of
https://github.com/keanuplayz/TravBot-v3.git
synced 2024-08-15 02:33:12 +00:00
19 lines
645 B
TypeScript
19 lines
645 B
TypeScript
import Command from "../../core/command";
|
|
import {queryClosestEmoteByName} from "./subcommands/emote-utils";
|
|
import {botHasPermission} from "../../core/libd";
|
|
import {Permissions} from "discord.js";
|
|
|
|
export default new Command({
|
|
description: "Send the specified emote.",
|
|
run: "Please provide a command name.",
|
|
any: new Command({
|
|
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);
|
|
}
|
|
})
|
|
});
|