only use typing indicator where it makes sense

This commit is contained in:
derpystuff 2022-07-09 00:09:18 +02:00
parent b297bd9f0e
commit c54a29ad26
10 changed files with 3 additions and 14 deletions

View file

@ -71,7 +71,6 @@ module.exports = {
usage: 'help [<command>]' usage: 'help [<command>]'
}, },
run: async (context, args) => { run: async (context, args) => {
context.triggerTyping();
if(args.command){ if(args.command){
// Detailed command view // Detailed command view
let results = [] let results = []

View file

@ -12,7 +12,6 @@ module.exports = {
usage: 'privacy' usage: 'privacy'
}, },
run: async (context) => { run: async (context) => {
context.triggerTyping();
return await editOrReply(context, return await editOrReply(context,
createEmbed("default", context, { createEmbed("default", context, {
description: `${icon("rules")} **labsCore Privacy Policy**\n*Last Updated: ${timestamp(PRIVACY_POLICY_LAST_UPDATE, "f")}*\n\n${PRIVACY_POLICY_SECTIONS.join('\n\n')}\n\nIf you have any further questions, please contact us via our ${link(DISCORD_INVITES.privacy, "Support Server")}`, description: `${icon("rules")} **labsCore Privacy Policy**\n*Last Updated: ${timestamp(PRIVACY_POLICY_LAST_UPDATE, "f")}*\n\n${PRIVACY_POLICY_SECTIONS.join('\n\n')}\n\nIf you have any further questions, please contact us via our ${link(DISCORD_INVITES.privacy, "Support Server")}`,

View file

@ -12,7 +12,6 @@ module.exports = {
usage: 'shard' usage: 'shard'
}, },
run: async (context) => { run: async (context) => {
context.triggerTyping();
return await editOrReply(context, return await editOrReply(context,
createEmbed("default", context, { createEmbed("default", context, {
description: `${codeblock("ansi", [ description: `${codeblock("ansi", [

View file

@ -21,7 +21,6 @@ module.exports = {
`${context.user.mention}, you are lacking the permission \`BOT_OWNER\`.` `${context.user.mention}, you are lacking the permission \`BOT_OWNER\`.`
), ),
run: async (context, args) => { run: async (context, args) => {
await context.triggerTyping();
let response = await editOrReply(context, createEmbed("loading", context, "Updating bot...")) let response = await editOrReply(context, createEmbed("loading", context, "Updating bot..."))
try{ try{
const t = Date.now() const t = Date.now()

View file

@ -32,7 +32,6 @@ module.exports = {
{ name: 'rotate', default: 'rand', required: false } { name: 'rotate', default: 'rand', required: false }
], ],
run: async (context, args) => { run: async (context, args) => {
context.triggerTyping();
let response = await editOrReply(context, createEmbed("loading", context, `Generating image...`)) let response = await editOrReply(context, createEmbed("loading", context, `Generating image...`))
try{ try{
let seed = Math.floor(Math.random() * 999999) + 100000, let seed = Math.floor(Math.random() * 999999) + 100000,

View file

@ -19,7 +19,6 @@ module.exports = {
duration: 5000 duration: 5000
}, },
run: async (context, args) => { run: async (context, args) => {
context.triggerTyping();
let response = await editOrReply(context, { embeds: [createEmbed("loading", context, `Synthesizing images...`)] }) let response = await editOrReply(context, { embeds: [createEmbed("loading", context, `Synthesizing images...`)] })
try{ try{

View file

@ -15,7 +15,6 @@ module.exports = {
usage: 'server' usage: 'server'
}, },
run: async (context, args) => { run: async (context, args) => {
context.triggerTyping();
try{ try{
const emojis = context.message.guild.emojis const emojis = context.message.guild.emojis
const animojis = emojis.filter(emoji => emoji.animated).length const animojis = emojis.filter(emoji => emoji.animated).length

View file

@ -41,7 +41,6 @@ module.exports = {
{name: 'type', default: 'twitter'} {name: 'type', default: 'twitter'}
], ],
run: async (context, args) => { run: async (context, args) => {
await context.triggerTyping();
const { matches } = Utils.regex( const { matches } = Utils.regex(
Constants.DiscordRegexNames.EMOJI, Constants.DiscordRegexNames.EMOJI,
args.emoji args.emoji

View file

@ -20,8 +20,6 @@ module.exports = {
// If we have an argument, generate code // If we have an argument, generate code
if(args.text.length){ if(args.text.length){
await context.triggerTyping();
let response = await editOrReply(context, createEmbed("loading", context, `Generating qr code...`)) let response = await editOrReply(context, createEmbed("loading", context, `Generating qr code...`))
try{ try{
const t = Date.now(); const t = Date.now();

View file

@ -15,7 +15,6 @@ module.exports = {
usage: 'screenshot <url>' usage: 'screenshot <url>'
}, },
run: async (context, args) => { run: async (context, args) => {
context.triggerTyping();
if(!args.url) return editOrReply(context, { embeds: [createEmbed("warning", context, "No url supplied.")] }) if(!args.url) return editOrReply(context, { embeds: [createEmbed("warning", context, "No url supplied.")] })
let response = await editOrReply(context, createEmbed("loading", context, `Creating website screenshot...`)) let response = await editOrReply(context, createEmbed("loading", context, `Creating website screenshot...`))