Disable local server hiding message (it still hides the server, it just doesn't notify the user now)
This commit is contained in:
parent
a894dfd133
commit
75e48f2103
2 changed files with 1 additions and 14 deletions
|
@ -222,19 +222,7 @@ const aboutServer = function (c) {
|
||||||
|
|
||||||
const displayServerList = function (c) {
|
const displayServerList = function (c) {
|
||||||
index.bots.forEach((item, i) => {
|
index.bots.forEach((item, i) => {
|
||||||
if (c.bot.id === i && c.bot.host.options.hideLocally) {
|
if (c.bot.id === i && c.bot.host.options.hideLocally) return
|
||||||
c.reply({
|
|
||||||
translate: getMessage(c.lang, 'command.about.serverList.hideLocally'),
|
|
||||||
color: c.colors.secondary,
|
|
||||||
with: [
|
|
||||||
{
|
|
||||||
text: i.toString(),
|
|
||||||
color: c.colors.primary
|
|
||||||
}
|
|
||||||
]
|
|
||||||
})
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (item.host.options && item.host.options.hidden && c.verify !== 2 && c.bot.id !== i) return
|
if (item.host.options && item.host.options.hidden && c.verify !== 2 && c.bot.id !== i) return
|
||||||
let message = 'command.about.serverListItem'
|
let message = 'command.about.serverListItem'
|
||||||
if (c.bot.id === i) message = 'command.about.serverListItem.thisServer'
|
if (c.bot.id === i) message = 'command.about.serverListItem.thisServer'
|
||||||
|
|
|
@ -121,7 +121,6 @@
|
||||||
"command.about.serverInfo.os.android.model": "Device model",
|
"command.about.serverInfo.os.android.model": "Device model",
|
||||||
"command.about.serverInfo.botName": "Bot name",
|
"command.about.serverInfo.botName": "Bot name",
|
||||||
"command.about.serverInfo.botVer": "Bot version",
|
"command.about.serverInfo.botVer": "Bot version",
|
||||||
"command.about.serverList.hideLocally": "Server %s has been hidden from the server list.",
|
|
||||||
"command.about.serverListItem": "Server %s - %s",
|
"command.about.serverListItem": "Server %s - %s",
|
||||||
"command.about.serverListItem.thisServer": "Server %s - %s (this server)",
|
"command.about.serverListItem.thisServer": "Server %s - %s (this server)",
|
||||||
"command.tpr.success": "Teleporting %s to %s, %s, %s",
|
"command.tpr.success": "Teleporting %s to %s, %s, %s",
|
||||||
|
|
Loading…
Reference in a new issue