mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-07 21:53:07 -04:00
unify typing logic for a more consistent experience
This commit is contained in:
parent
d2aeecf70d
commit
1ca74d3c2c
67 changed files with 240 additions and 109 deletions
|
@ -6,6 +6,7 @@ const { editOrReply } = require('#utils/message')
|
|||
const { iconPill, stringwrap, smallIconPill } = require('#utils/markdown')
|
||||
const { STATICS, STATIC_ASSETS } = require('#utils/statics');
|
||||
const { hasFeature } = require('#utils/testing');
|
||||
const { acknowledge } = require('#utils/interactions');
|
||||
|
||||
|
||||
module.exports = {
|
||||
|
@ -26,8 +27,8 @@ module.exports = {
|
|||
permissionsClient: [...PERMISSION_GROUPS.baseline, ...PERMISSION_GROUPS.attachments],
|
||||
run: async (context, args) => {
|
||||
if(!await hasFeature(context, "ai/gpt")) return;
|
||||
|
||||
context.triggerTyping();
|
||||
await acknowledge(context);
|
||||
|
||||
if(!args.text) return editOrReply(context, createEmbed("warning", context, `Missing Parameter (text).`))
|
||||
|
||||
let input = args.text;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue