add new command changelanguage

This commit is contained in:
Dawid Wysokiński 2020-07-19 17:32:33 +02:00
parent 1b44c26cf6
commit 43b51d4f65
2 changed files with 33 additions and 20 deletions

View File

@ -80,11 +80,11 @@ const adminCommands = [
example: "tw!observations 1", example: "tw!observations 1",
}, },
{ {
command: "tw!unobserve", command: "tw!deleteobservation",
commandSyntax: commandSyntax:
"tw!unobserve [group ID from tw!groups] [id from tw!observations]", "tw!deleteobservation [group ID from tw!groups] [id from tw!observations]",
description: "This command removes a tribe to the observation group.", description: "This command removes a tribe from the observation group.",
example: "tw!unobserve 1 pl143 975 170", example: "tw!deleteobservation 1 pl143 975 170",
}, },
{ {
command: "tw!conqueredvillages", command: "tw!conqueredvillages",
@ -101,24 +101,30 @@ const adminCommands = [
example: "tw!lostvillages 2", example: "tw!lostvillages 2",
}, },
{ {
command: "tw!unobserveconqueredvillages", command: "tw!disableconqueredvillages",
commandSyntax: "tw!unobserveconqueredvillages [group ID from tw!groups]", commandSyntax: "tw!disableconqueredvillages [group ID from tw!groups]",
description: "This command disable notifications about conquered villages.", description: "This command disable notifications about conquered villages.",
example: "tw!unobserveconqueredvillages 1", example: "tw!disableconqueredvillages 1",
}, },
{ {
command: "tw!unobservelostvillages", command: "tw!disablelostvillages",
commandSyntax: "tw!unobservelostvillages [group ID from tw!groups]", commandSyntax: "tw!disablelostvillages [group ID from tw!groups]",
description: "This command disable notifications about lost villages.", description: "This command disable notifications about lost villages.",
example: "tw!unobservelostvillages 1", example: "tw!disablelostvillages 1",
}, },
{ {
command: " tw!showennobledbarbs", command: " tw!showennobledbarbs",
commandSyntax: " tw!showennobledbarbs [group ID from tw!groups]", commandSyntax: " tw!showennobledbarbs [group ID from tw!groups]",
description: description:
"This command enables/disables notifications about barbarian villages ennoblements.", "This command enables/disables notifications about ennobling barbarian villages.",
example: "tw!showennobledbarbs 1", example: "tw!showennobledbarbs 1",
}, },
{
command: " tw!changelanguage",
commandSyntax: " tw!changelanguage [en | pl]",
description: "This command changes bot language.",
example: "tw!changelanguage en",
},
]; ];
export default { export default {

View File

@ -80,10 +80,11 @@ const adminCommands = [
example: "tw!observations 1", example: "tw!observations 1",
}, },
{ {
command: "tw!unobserve", command: "tw!deleteobservation",
commandSyntax: "tw!unobserve [ID grupy z tw!groups] [id z tw!observations]", commandSyntax:
"tw!deleteobservation [ID grupy z tw!groups] [id z tw!observations]",
description: "Usuwa plemię z grupy.", description: "Usuwa plemię z grupy.",
example: "tw!unobserve 1 pl143 975 170", example: "tw!deleteobservation 1 pl143 975 170",
}, },
{ {
command: "tw!conqueredvillages", command: "tw!conqueredvillages",
@ -100,16 +101,16 @@ const adminCommands = [
example: "tw!lostvillages 2", example: "tw!lostvillages 2",
}, },
{ {
command: "tw!unobserveconqueredvillages", command: "tw!disableconqueredvillages",
commandSyntax: "tw!unobserveconqueredvillages [ID grupy z tw!groups]", commandSyntax: "tw!disableconqueredvillages [ID grupy z tw!groups]",
description: "Wyłącza powiadomienia o podbitych wioskach w danej grupie.", description: "Wyłącza powiadomienia o podbitych wioskach w danej grupie.",
example: "tw!unobserveconqueredvillages 1", example: "tw!disableconqueredvillages 1",
}, },
{ {
command: "tw!unobservelostvillages", command: "tw!disablelostvillages",
commandSyntax: "tw!unobservelostvillages [ID grupy z tw!groups]", commandSyntax: "tw!disablelostvillages [ID grupy z tw!groups]",
description: "Wyłącza powiadomienia o straconych wioskach w danej grupie.", description: "Wyłącza powiadomienia o straconych wioskach w danej grupie.",
example: "tw!unobservelostvillages 1", example: "tw!disablelostvillages 1",
}, },
{ {
command: " tw!showennobledbarbs", command: " tw!showennobledbarbs",
@ -118,6 +119,12 @@ const adminCommands = [
"Włącza/wyłącza informacje o podbitych wioskach barbarzyńskich.", "Włącza/wyłącza informacje o podbitych wioskach barbarzyńskich.",
example: "tw!showennobledbarbs 1", example: "tw!showennobledbarbs 1",
}, },
{
command: " tw!changelanguage",
commandSyntax: " tw!changelanguage [en | pl]",
description: "Zmienia język w którym są wyświetlane odpowiedzi od bota.",
example: "tw!changelanguage pl",
},
]; ];
export default { export default {