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({
|
2021-04-08 11:37:49 +00:00
|
|
|
description:
|
|
|
|
"Send the specified emote list. Enter + to move an emote list to the next line, - to add a space, and _ to add a zero-width space.",
|
|
|
|
run: "Please provide a list of emotes.",
|
2020-12-15 01:44:28 +00:00
|
|
|
any: new Command({
|
2020-12-17 05:12:17 +00:00
|
|
|
description: "The emote(s) to send.",
|
|
|
|
usage: "<emotes...>",
|
2021-04-10 13:34:55 +00:00
|
|
|
async run({send, guild, channel, message, args}) {
|
2021-04-07 14:01:44 +00:00
|
|
|
const output = processEmoteQueryFormatted(args);
|
2021-04-10 13:34:55 +00:00
|
|
|
if (output.length > 0) send(output);
|
2020-12-15 01:44:28 +00:00
|
|
|
}
|
|
|
|
})
|
2020-10-20 12:04:13 +00:00
|
|
|
});
|