mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 06:03:04 -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
|
@ -3,6 +3,7 @@ const { TRANSLATE_LANGUAGES, TRANSLATE_DISPLAY_MAPPINGS, PERMISSION_GROUPS } = r
|
|||
|
||||
const { getRecentImage } = require("#utils/attachment");
|
||||
const { createEmbed } = require("#utils/embed");
|
||||
const { acknowledge } = require("#utils/interactions");
|
||||
const { codeblock, icon, pill, limitedString, smallIconPill } = require("#utils/markdown");
|
||||
const { editOrReply } = require("#utils/message");
|
||||
const { STATICS } = require("#utils/statics");
|
||||
|
@ -25,8 +26,8 @@ module.exports = {
|
|||
],
|
||||
permissionsClient: [...PERMISSION_GROUPS.baseline],
|
||||
run: async (context, args) => {
|
||||
context.triggerTyping();
|
||||
|
||||
await acknowledge(context);
|
||||
|
||||
if(!args.to) args.to = "en"
|
||||
if(args.to.startsWith("-to")) args.to = args.to.replace("-to ", "")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue