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

17 lines
625 B
TypeScript
Raw Normal View History

import {NamedCommand, RestCommand} from "onion-lasers";
2021-05-06 13:30:51 +00:00
import {processEmoteQuery} from "./modules/emote-utils";
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.",
2021-04-10 19:08:36 +00:00
any: new RestCommand({
description: "The emote(s) to send.",
usage: "<emotes...>",
async run({send, args}) {
2021-05-06 13:30:51 +00:00
const output = processEmoteQuery(args, true).join("");
2021-04-10 13:34:55 +00:00
if (output.length > 0) send(output);
2020-12-15 01:44:28 +00:00
}
})
});