update examles

This commit is contained in:
derpystuff 2023-06-30 23:22:37 +02:00
parent 75b8520481
commit b3989587bb
38 changed files with 21 additions and 42 deletions

View file

@ -11,7 +11,6 @@ module.exports = {
metadata: {
description: 'Displays information about the bots connection to discord.',
description_short: 'Bot connection details',
examples: ['ping'],
category: 'core',
usage: 'ping'
},

View file

@ -10,7 +10,6 @@ module.exports = {
metadata: {
description: 'Shows the bots privacy policy.',
description_short: 'Privacy policy',
examples: ['privacy'],
category: 'core',
usage: 'privacy'
},

View file

@ -10,7 +10,6 @@ module.exports = {
metadata: {
description: 'Details about the bots connection to this server.',
description_short: 'Shard information',
examples: ['shard'],
category: 'core',
usage: 'shard'
},

View file

@ -23,7 +23,6 @@ module.exports = {
metadata: {
description: 'Shows statistics about the bot.',
description_short: 'Bot statistics',
examples: ['stats'],
category: 'core',
usage: 'stats'
},

View file

@ -6,7 +6,6 @@ module.exports = {
metadata: {
description: 'Reloads commands on all shards.',
description_short: 'Bot reload',
examples: ['reload'],
category: 'dev',
usage: 'reload'
},

View file

@ -2,17 +2,17 @@ const { createEmbed } = require('../../../labscore/utils/embed')
const { editOrReply } = require('../../../labscore/utils/message')
const { execSync } = require("child_process");
const { icon, highlight } = require('../../../labscore/utils/markdown');
const { icon, highlight, smallPill } = require('../../../labscore/utils/markdown');
module.exports = {
name: "update",
label: "flags",
metadata: {
description: 'Fetches latest bot version.',
description: `Fetches latest bot version.\nUse ${smallPill('-f')} to force an update.`,
description_short: 'Bot update',
examples: ['update'],
examples: ['update -f'],
category: 'dev',
usage: 'update [-force true]'
usage: 'update [-f]'
},
onBefore: context => context.user.isClientOwner,
onCancel: ()=>{},

View file

@ -59,7 +59,6 @@ module.exports = {
metadata: {
description: 'Returns a random colorful wallpaper from JetBrains Eidos.',
description_short: 'AI wallpapers',
examples: ['art2'],
category: 'fun',
usage: `art2`
},

View file

@ -18,7 +18,6 @@ module.exports = {
metadata: {
description: 'Returns a random garfield comic strip.',
description_short: 'Random garfield comic',
examples: ['garf'],
category: 'fun',
usage: `garfield`
},

View file

@ -11,7 +11,6 @@ module.exports = {
metadata: {
description: 'Generates a random inspirational quote.',
description_short: 'Inspirational Quotes',
examples: ['inspire'],
category: 'fun',
usage: `inspire`
},

View file

@ -10,7 +10,6 @@ module.exports = {
metadata: {
description: 'Displays a random image containing otters.',
description_short: 'Otter images',
examples: ['otter'],
category: 'fun',
usage: `otter`
},

View file

@ -12,7 +12,6 @@ module.exports = {
metadata: {
description: 'Applies labels to an image based on its visual contents.',
description_short: 'Image content label detection',
examples: ['labels'],
category: 'utils',
usage: 'labels <attachment>'
},

View file

@ -2,7 +2,7 @@ const { googleVisionSafetyLabels } = require("../../../labscore/api");
const { GOOGLE_CLOUD_SAFETY_LABELS, GOOGLE_CLOUD_SAFETY_LABELS_NAMES } = require("../../../labscore/constants");
const { getRecentImage } = require("../../../labscore/utils/attachment");
const { createEmbed } = require("../../../labscore/utils/embed");
const { icon, pill, iconPill } = require("../../../labscore/utils/markdown");
const { pill, iconPill } = require("../../../labscore/utils/markdown");
const { editOrReply } = require("../../../labscore/utils/message");
const { STATICS } = require("../../../labscore/utils/statics");
@ -13,7 +13,6 @@ module.exports = {
metadata: {
description: 'Applies detection labels for potentially sensitive content of an image.',
description_short: 'Sentivite content detection labels',
examples: ['safetylabels'],
category: 'utils',
usage: 'safetylabels <attachment>'
},

View file

@ -14,7 +14,6 @@ module.exports = {
metadata: {
description: '__Replying__ to a voice message when using this command will transcribe the contents of the voice message.',
description_short: 'Discord voice message transcription',
examples: ['tcr'],
category: 'utils',
usage: 'transcribe'
},

View file

@ -12,7 +12,7 @@ module.exports = {
metadata: {
description: 'Uses Craiyon to generate four images from a text prompt.',
description_short: 'Craiyon AI image generation',
examples: ['dalle'],
examples: ['dalle Otter'],
category: 'image',
usage: 'dalle <text>'
},
@ -23,6 +23,8 @@ module.exports = {
},
permissionsClient: [Permissions.EMBED_LINKS, Permissions.SEND_MESSAGES, Permissions.USE_EXTERNAL_EMOJIS, Permissions.ATTACH_FILES],
run: async (context, args) => {
if(!context.channel.nsfw) return editOrReply(context, {embeds:[createEmbed("nsfw", context)]})
let response = await editOrReply(context, { embeds: [createEmbed("loading", context, `Synthesizing images...`)] })
let noticeTimer = setTimeout(()=>{

View file

@ -12,7 +12,6 @@ module.exports = {
metadata: {
description: 'Processes an image with DeepAI DeepDream.',
description_short: 'DeepDream image processing',
examples: ['deepdream'],
category: 'broken',
usage: 'deepdream <image>'
},

View file

@ -12,7 +12,6 @@ module.exports = {
metadata: {
description: 'Upscales an image with SuperResolution.',
description_short: 'SuperResolution upscaling',
examples: ['superresolution'],
category: 'broken',
usage: 'superresolution <image>'
},

View file

@ -12,7 +12,6 @@ module.exports = {
metadata: {
description: 'Generates an image with DeepAI Text2Image using a text prompt.',
description_short: 'Image from text prompt',
examples: ['text2image Mushroom'],
category: 'broken',
usage: 'text2image <image>'
},

View file

@ -12,7 +12,6 @@ module.exports = {
metadata: {
description: 'Processes an image with Waifu2x.',
description_short: 'Waifu2x upscaling',
examples: ['waifu2x'],
category: 'broken',
usage: 'waifu2x <image>'
},

View file

@ -14,7 +14,6 @@ module.exports = {
metadata: {
description: 'Generates an animated gif with the MakeSweet billboard template.',
description_short: 'Animated billboard generation',
examples: ['billboard'],
category: 'image',
usage: 'billboard'
},

View file

@ -14,7 +14,6 @@ module.exports = {
metadata: {
description: 'Generates an animated gif with the MakeSweet circuit board template.',
description_short: 'Animated circuit board generation',
examples: ['circuitboard'],
category: 'image',
usage: 'circuitboard'
},

View file

@ -14,7 +14,6 @@ module.exports = {
metadata: {
description: 'Generates an animated gif with the MakeSweet flag template.',
description_short: 'Animated flag generation',
examples: ['flag'],
category: 'image',
usage: 'flag'
},

View file

@ -14,7 +14,6 @@ module.exports = {
metadata: {
description: 'Displays information about the server.',
description_short: 'Information about the server',
examples: ['guild'],
category: 'info',
usage: 'server'
},

View file

@ -9,7 +9,6 @@ module.exports = {
metadata: {
description: 'Displays the server icon.',
description_short: 'Server icon',
examples: ['gi'],
category: 'info',
usage: 'guildicon'
},

View file

@ -15,7 +15,6 @@ module.exports = {
metadata: {
description: '__Replying__ to a message while using this command will return a list of music streamin platforms the provided song (link) is available on.',
description_short: 'Cross-platform music search',
examples: ['aud'],
category: 'search',
usage: 'audio'
},

View file

@ -37,7 +37,7 @@ module.exports = {
metadata: {
description: 'Returns image search results from Microsoft Bing.',
description_short: 'Search on Bing Images',
examples: ['bing Large Magenta Sphere'],
examples: ['bing Eurasian Small Clawed Otter'],
category: 'search',
usage: 'bing <query>'
},

View file

@ -101,7 +101,7 @@ module.exports = {
metadata: {
description: 'Returns search results from Microsoft Bing.',
description_short: 'Search on Bing',
examples: ['bing Flask'],
examples: ['bing Eurasian Small Clawed Otter'],
category: 'search',
usage: 'bing <query>'
},

View file

@ -37,7 +37,7 @@ module.exports = {
metadata: {
description: 'Returns image search results from Google.',
description_short: 'Search on Google Images',
examples: ['image Large Magenta Sphere'],
examples: ['image Eurasian Small Clawed Otter'],
category: 'search',
usage: 'image <query>'
},

View file

@ -60,7 +60,7 @@ module.exports = {
metadata: {
description: 'Returns search results from Google.',
description_short: 'Search on Google',
examples: ['google Flask'],
examples: ['google Eurasian Small Clawed Otter'],
category: 'search',
usage: 'google <query>'
},

View file

@ -40,7 +40,6 @@ module.exports = {
metadata: {
description: 'Performs a reverse-image-search.',
description_short: 'Reverse image search',
examples: ['reverseimage'],
category: 'search',
usage: 'reverse <image>'
},

View file

@ -51,7 +51,7 @@ module.exports = {
description: 'Returns image search results from various rule34-focused sites.',
description_short: 'Search on rule34 sites',
explicit: true,
examples: ['r34 sex -site rule34'],
examples: ['r34 vaporeon -site e621'],
category: 'search',
usage: 'rule34 <query> [-site <service>]'
},

View file

@ -43,7 +43,7 @@ module.exports = {
metadata: {
description: 'Returns search results from UrbanDictionary. Might include profanity.\nProviding no search query will return random results.',
description_short: 'Search on UrbanDictionary',
examples: ['ud Flask'],
examples: ['ud urbandictionary'],
category: 'search',
usage: 'urbandictionary <query>'
},

View file

@ -9,11 +9,12 @@ const { Permissions } = require("detritus-client/lib/constants");
module.exports = {
name: 'weather',
aliases: ['forecast'],
label: 'query',
metadata: {
description: 'Displays information about the weather.',
description_short: 'Local weather information',
examples: ['weather Berlin'],
examples: ['weather Otter, Germany'],
category: 'search',
usage: 'weather <location>'
},

View file

@ -50,7 +50,7 @@ module.exports = {
metadata: {
description: 'Computes a query using Wolfram|Alpha.',
description_short: 'Compute via Wolfram|Alpha',
examples: ['wa 1+1'],
examples: ['wa x^2+5x+6=0', 'wa 5€ to $', 'wa 5\'11 to cm'],
category: 'search',
usage: 'wolframalpha <query>'
},

View file

@ -98,7 +98,7 @@ module.exports = {
metadata: {
description: 'Returns search results from YouTube.',
description_short: 'Search YouTube videos, channels and playlists',
examples: ['youtube Google'],
examples: ['youtube otter live cam'],
category: 'search',
usage: 'youtube <query>'
},

View file

@ -41,7 +41,7 @@ module.exports = {
metadata: {
description: 'Returns dictionary definitions for words.',
description_short: 'Dictionary word definitions.',
examples: ['dictionary Flask'],
examples: ['dictionary Walking'],
category: 'search',
usage: 'define <query>'
},

View file

@ -39,7 +39,7 @@ module.exports = {
metadata: {
description: 'Displays information about emoji. Supports regular emoji, discord emoji and stickers.\nAlso supports replies.\n\nUsing two emoji will mix them together.',
description_short: 'Get emoji/sticker source images, mix two emoji together.',
examples: ['enlarge 😀', 'emojimix 🐱 🍞'],
examples: ['e 😀', 'emojimix 🐱 🍞'],
category: 'utils',
usage: 'emoji <emoji> [<emoji to mix>]'
},

View file

@ -12,7 +12,6 @@ module.exports = {
metadata: {
description: 'Uses Optical Character Recognition to detect text in images.',
description_short: 'Image text recognition.',
examples: ['ocr'],
category: 'utils',
usage: 'ocr <attachment>'
},

View file

@ -15,7 +15,7 @@ module.exports = {
metadata: {
description: 'Uses Optical Character Recognition to translate text in an image.',
description_short: 'Image text recognition + translation.',
examples: ['ocrtr en'],
examples: ['ocrtr en -from pl'],
category: 'utils',
usage: 'ocrtr <language> [-from <origin language>]'
},