mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 06:33:05 -04:00
update default prefix
This commit is contained in:
parent
8c8e3ab097
commit
1d3f789e8a
4 changed files with 15 additions and 11 deletions
|
@ -1,7 +1,7 @@
|
|||
const { codeblock, icon, link, pill, smallPill, iconPill } = require('../../../labscore/utils/markdown')
|
||||
const { createEmbed, formatPaginationEmbeds, page } = require('../../../labscore/utils/embed')
|
||||
|
||||
const { DISCORD_INVITES, DEFAULT_BOT_PREFIX } = require('../../../labscore/constants')
|
||||
const { DISCORD_INVITES, DEFAULT_PREFIXES } = require('../../../labscore/constants')
|
||||
|
||||
const { paginator } = require('../../../labscore/client');
|
||||
const { editOrReply } = require('../../../labscore/utils/message');
|
||||
|
@ -13,7 +13,7 @@ function createHelpPage(context, title, contents, descriptions) {
|
|||
return page(createEmbed("default", context, {
|
||||
description: `${title}\n\n` +
|
||||
renderCommandList(contents, descriptions) +
|
||||
`\n\n${icon("question")} Use ${smallPill(`${DEFAULT_BOT_PREFIX}help <command>`)} to view more information about a command.`
|
||||
`\n\n${icon("question")} Use ${smallPill(`${DEFAULT_PREFIXES[0]}help <command>`)} to view more information about a command.`
|
||||
}))
|
||||
}
|
||||
|
||||
|
@ -136,7 +136,7 @@ module.exports = {
|
|||
for (const k of Object.keys(resultScores)) results.push(resultMappings[k])
|
||||
|
||||
let pages = []
|
||||
let prefix = DEFAULT_BOT_PREFIX
|
||||
let prefix = DEFAULT_PREFIXES[0]
|
||||
try {
|
||||
|
||||
if (results.length == 0) return editOrReply(context, createEmbed("warning", context, "No commands found for the provided query."))
|
||||
|
|
|
@ -3,9 +3,9 @@ const { editOrReply } = require('../../../labscore/utils/message')
|
|||
|
||||
const superagent = require('superagent');
|
||||
const { codeblock } = require('../../../labscore/utils/markdown');
|
||||
const { DEFAULT_BOT_PREFIX } = require('../../../labscore/constants');
|
||||
|
||||
const { Permissions } = require("detritus-client/lib/constants");
|
||||
const { DEFAULT_PREFIXES } = require('../../../labscore/constants');
|
||||
|
||||
const SIZES = Object.freeze({
|
||||
"wallpaper": { x: 1920, y: 1200},
|
||||
|
@ -94,7 +94,7 @@ module.exports = {
|
|||
"embeds": [
|
||||
createEmbed("image", context, {
|
||||
url: res.hash,
|
||||
description: `${codeblock(`py`, [`${DEFAULT_BOT_PREFIX}art -type ${args.type.toLowerCase()} -seed ${seed} -variance ${variance} -rotate ${rotate}`])}`,
|
||||
description: `${codeblock(`py`, [`${DEFAULT_PREFIXES[0]}art -type ${args.type.toLowerCase()} -seed ${seed} -variance ${variance} -rotate ${rotate}`])}`,
|
||||
time: ((Date.now() - timings) / 1000).toFixed(2)
|
||||
})
|
||||
]
|
||||
|
@ -105,7 +105,7 @@ module.exports = {
|
|||
return await editOrReply(context, {
|
||||
embeds: [createEmbed("image", context, {
|
||||
url: res.hash,
|
||||
description: `${codeblock(`py`, [`${DEFAULT_BOT_PREFIX}art -type ${args.type.toLowerCase()} -seed ${seed} -variance ${variance} -rotate ${rotate}`])}`,
|
||||
description: `${codeblock(`py`, [`${DEFAULT_PREFIXES[0]}art -type ${args.type.toLowerCase()} -seed ${seed} -variance ${variance} -rotate ${rotate}`])}`,
|
||||
time: ((Date.now() - timings) / 1000).toFixed(2)
|
||||
})],
|
||||
files: [{ filename: res.hash, value: image.body }]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue