Skip to content

Commit

Permalink
Added blacklist
Browse files Browse the repository at this point in the history
  • Loading branch information
FlameInTheDark committed May 6, 2019
1 parent 29f8b3b commit 4a286a1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions cmd/botcommand.go
Expand Up @@ -365,12 +365,16 @@ func botBlacklist(ctx *bot.Context) {
switch ctx.Args[1] {
case "addguild":
ctx.BlacklistAddGuild(ctx.Args[2])
ctx.ReplyEmbed("Bot", fmt.Sprintf(ctx.Loc("blacklist_guild_add"), ctx.Args[2]))
case "adduser":
ctx.BlacklistAddUser(ctx.Args[2])
ctx.ReplyEmbed("Bot", fmt.Sprintf(ctx.Loc("blacklist_user_add"), ctx.Args[2]))
case "removeuser":
ctx.BlacklistRemoveUser(ctx.Args[2])
ctx.ReplyEmbed("Bot", fmt.Sprintf(ctx.Loc("blacklist_user_remove"), ctx.Args[2]))
case "removeguild":
ctx.BlacklistRemoveGuild(ctx.Args[2])
ctx.ReplyEmbed("Bot", fmt.Sprintf(ctx.Loc("blacklist_guild_remove"), ctx.Args[2]))
}
}

Expand Down
6 changes: 5 additions & 1 deletion locales.json
Expand Up @@ -115,7 +115,11 @@
"albion_add_error": "Error adding player",
"albion_added": "Player added",
"albion_removed": "Player removed",
"albion_not_watching": "You are not watching now"
"albion_not_watching": "You are not watching now",
"blacklist_guild_add": "Guild \"%v\" added in blacklist",
"blacklist_user_add": "User \"%v\" added in blacklist",
"blacklist_user_remove": "User \"%v\" removed from blacklist",
"blacklist_guild_remove": "Guild \"%v\" removed from blacklist"
},
"ru": {
"admin_require": "Для использования данной команды вам необходимо иметь роль \"bot.admin\". Для помощи используйте `!help bot.admin`",
Expand Down

0 comments on commit 4a286a1

Please sign in to comment.