forked from sh-edraft.de/sh_discord_bot
Improved error translation #26
This commit is contained in:
parent
c632ad51d4
commit
a5ef2551e8
@ -212,7 +212,8 @@
|
|||||||
"set": {
|
"set": {
|
||||||
"already_level": "{} hat bereits das Level {} :/",
|
"already_level": "{} hat bereits das Level {} :/",
|
||||||
"success": "{} ist nun Level {} :)",
|
"success": "{} ist nun Level {} :)",
|
||||||
"failed": "Das Level von {} konnte nicht auf {} gesetzt werden :("
|
"failed": "Das Level von {} konnte nicht auf {} gesetzt werden :(",
|
||||||
|
"not_found": "Das Level {} konnte nicht gefunden werden :("
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"database": {},
|
"database": {},
|
||||||
|
@ -343,7 +343,7 @@ class LevelGroup(DiscordCommandABC):
|
|||||||
new_level = self._levels.get_levels_by_server_id(server.server_id).where(lambda l: l.name == level).single_or_default()
|
new_level = self._levels.get_levels_by_server_id(server.server_id).where(lambda l: l.name == level).single_or_default()
|
||||||
|
|
||||||
if new_level is None:
|
if new_level is None:
|
||||||
await self._message_service.send_ctx_msg(ctx, self._t.transform('modules.level.set.failed').format(member.name, level))
|
await self._message_service.send_ctx_msg(ctx, self._t.transform('modules.level.set.not_found').format(level))
|
||||||
self._logger.trace(__name__, f'Finished command level set')
|
self._logger.trace(__name__, f'Finished command level set')
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user