mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 22:23:03 -04:00
only use typing indicator where it makes sense
This commit is contained in:
parent
b297bd9f0e
commit
c54a29ad26
10 changed files with 3 additions and 14 deletions
|
@ -71,7 +71,6 @@ module.exports = {
|
|||
usage: 'help [<command>]'
|
||||
},
|
||||
run: async (context, args) => {
|
||||
context.triggerTyping();
|
||||
if(args.command){
|
||||
// Detailed command view
|
||||
let results = []
|
||||
|
|
|
@ -12,7 +12,6 @@ module.exports = {
|
|||
usage: 'privacy'
|
||||
},
|
||||
run: async (context) => {
|
||||
context.triggerTyping();
|
||||
return await editOrReply(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")}`,
|
||||
|
|
|
@ -12,7 +12,6 @@ module.exports = {
|
|||
usage: 'shard'
|
||||
},
|
||||
run: async (context) => {
|
||||
context.triggerTyping();
|
||||
return await editOrReply(context,
|
||||
createEmbed("default", context, {
|
||||
description: `${codeblock("ansi", [
|
||||
|
|
|
@ -21,7 +21,6 @@ module.exports = {
|
|||
`${context.user.mention}, you are lacking the permission \`BOT_OWNER\`.`
|
||||
),
|
||||
run: async (context, args) => {
|
||||
await context.triggerTyping();
|
||||
let response = await editOrReply(context, createEmbed("loading", context, "Updating bot..."))
|
||||
try{
|
||||
const t = Date.now()
|
||||
|
|
|
@ -32,7 +32,6 @@ module.exports = {
|
|||
{ name: 'rotate', default: 'rand', required: false }
|
||||
],
|
||||
run: async (context, args) => {
|
||||
context.triggerTyping();
|
||||
let response = await editOrReply(context, createEmbed("loading", context, `Generating image...`))
|
||||
try{
|
||||
let seed = Math.floor(Math.random() * 999999) + 100000,
|
||||
|
|
|
@ -19,7 +19,6 @@ module.exports = {
|
|||
duration: 5000
|
||||
},
|
||||
run: async (context, args) => {
|
||||
context.triggerTyping();
|
||||
let response = await editOrReply(context, { embeds: [createEmbed("loading", context, `Synthesizing images...`)] })
|
||||
|
||||
try{
|
||||
|
|
|
@ -15,7 +15,6 @@ module.exports = {
|
|||
usage: 'server'
|
||||
},
|
||||
run: async (context, args) => {
|
||||
context.triggerTyping();
|
||||
try{
|
||||
const emojis = context.message.guild.emojis
|
||||
const animojis = emojis.filter(emoji => emoji.animated).length
|
||||
|
|
|
@ -41,7 +41,6 @@ module.exports = {
|
|||
{name: 'type', default: 'twitter'}
|
||||
],
|
||||
run: async (context, args) => {
|
||||
await context.triggerTyping();
|
||||
const { matches } = Utils.regex(
|
||||
Constants.DiscordRegexNames.EMOJI,
|
||||
args.emoji
|
||||
|
|
|
@ -20,8 +20,6 @@ module.exports = {
|
|||
|
||||
// If we have an argument, generate code
|
||||
if(args.text.length){
|
||||
await context.triggerTyping();
|
||||
|
||||
let response = await editOrReply(context, createEmbed("loading", context, `Generating qr code...`))
|
||||
try{
|
||||
const t = Date.now();
|
||||
|
|
|
@ -15,7 +15,6 @@ module.exports = {
|
|||
usage: 'screenshot <url>'
|
||||
},
|
||||
run: async (context, args) => {
|
||||
context.triggerTyping();
|
||||
if(!args.url) return editOrReply(context, { embeds: [createEmbed("warning", context, "No url supplied.")] })
|
||||
|
||||
let response = await editOrReply(context, createEmbed("loading", context, `Creating website screenshot...`))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue