TravBot-v3/src/commands/utility/emote.ts

19 lines
641 B
TypeScript
Raw Normal View History

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";
import {botHasPermission} from "../../core/libd";
import {Permissions} from "discord.js";
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({
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
}
})
});