About command fixe

This commit is contained in:
7cc5c4f330d47060 2024-10-27 01:33:58 -04:00
parent 5e4017360d
commit 992aa6c046
Signed by: 7cc5c4f330d47060
SSH key fingerprint: SHA256:e+4tcZut1nBpe10PqjaO+Rvie0Q7W4qIvFzcUw+7riA
2 changed files with 7 additions and 1 deletions

View file

@ -57,6 +57,11 @@ const aboutBot = function (c) {
}
]
})
c.reply({ text: '' })
c.reply({
text: getMessage(c.lang, 'command.about.subcommands'),
color: c.colors.secondary
})
}
const os2 = function (o2, l) {
@ -222,7 +227,7 @@ const aboutServer = function (c) {
}
const displayServerList = function (c) {
index.bots.forEach((item, i) => {
bots.forEach((item, i) => {
if (c.bot.id === i && c.bot.host.options.hideLocally) return
if (item.host.options && item.host.options.hidden && c.verify !== 2 && c.bot.id !== i) return
let message = 'command.about.serverListItem'

View file

@ -47,6 +47,7 @@
"command.about.preRelease": "This is a development version - there may be errors, and features may be changed or removed at any time. Please report any errors to the bot's developer.",
"command.about.sourceCode": "Source code: %s",
"command.about.license": "This bot is free and open-source software and is available under the terms of the MIT license.",
"command.about.subcommands": "This command has subcommands to find out more about this bot - try running the commands \"servers\" or \"serverinfo\".",
"command.about.sourceCode.openInBrowser": "Click to open the source code link in your default browser",
"command.cloop.error.tooShort": "Command loops must have a rate above 20ms.",
"command.cloop.error.subcommand": "Unknown subcommand, please do %s",