style: Fixed several minor things in text
- Changed error in /move to CannotReach instead of RoomNotFound
This commit is contained in:
parent
cc916c06ce
commit
46af205aef
4 changed files with 7 additions and 4 deletions
|
|
@ -63,7 +63,7 @@ pub async fn reset(
|
|||
prefix_command,
|
||||
slash_command,
|
||||
guild_only,
|
||||
name_localized("ru", "счёт"),
|
||||
name_localized("ru", "счет"),
|
||||
description_localized("ru", "Отобразить таблицу лидеров"),
|
||||
)]
|
||||
pub async fn scoreboard(
|
||||
|
|
|
|||
|
|
@ -76,10 +76,13 @@ fn seconds(time: Time) -> u64 {
|
|||
required_permissions = "ADMINISTRATOR",
|
||||
guild_only,
|
||||
name_localized("ru", "таймер"),
|
||||
description_localized("ru", "Включить таймер публикации по заданной временной метке UTC (МСК-3)"),
|
||||
description_localized("ru", "Включить таймер публикации по заданной временной метке UTC (МСК -3)"),
|
||||
)]
|
||||
pub async fn timer(
|
||||
ctx: Context<'_>,
|
||||
#[description = "UTC time (in format HH:MM:SS, e.g. 9:00:00)"]
|
||||
#[name_localized("ru", "время")]
|
||||
#[description_localized("ru", "Время по UTC (МСК -3) в формате ЧЧ:ММ:СС, напр. 9:00:00")]
|
||||
time: TimeWrapper,
|
||||
) -> Result<(), Error> {
|
||||
if ctx.data().has_timer() {
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ pub async fn r#move(
|
|||
let mut account = fetch_or_init_account(conf, acc_id);
|
||||
|
||||
if let None = account.rooms_unlocked.iter().find(|rid| **rid == id) {
|
||||
return Err(Error::RoomNotFound(id));
|
||||
return Err(Error::CannotReach(id));
|
||||
}
|
||||
|
||||
account.location = id;
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ fn make_quest_message_content(ctx: Context<'_>, quest: &Quest) -> String {
|
|||
guild_only,
|
||||
subcommands("list", "create", "update", "publish", "delete"),
|
||||
required_permissions = "ADMINISTRATOR",
|
||||
name_localized("ru", "квесты"),
|
||||
name_localized("ru", "квест"),
|
||||
)]
|
||||
pub async fn quest(
|
||||
_ctx: Context<'_>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue