misc.generate: add typing indicator

This commit is contained in:
Cynthia Foxwell 2022-07-04 19:49:16 -06:00
parent 8ccd08d56c
commit c9a54a999a

View file

@ -409,6 +409,7 @@ generate.category = CATEGORY;
generate.helpText = "Generate images from prompt via craiyon";
generate.callback = async function (msg, line) {
if (!line || line.length === 0) return "Arguments required.";
msg.channel.sendTyping();
const start = Date.now();
let retries = 0;