About command fixe
This commit is contained in:
parent
5e4017360d
commit
992aa6c046
2 changed files with 7 additions and 1 deletions
|
@ -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'
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue