diff --git a/discord/src/commands/account.rs b/discord/src/commands/account.rs index 5f2896e..d47b906 100644 --- a/discord/src/commands/account.rs +++ b/discord/src/commands/account.rs @@ -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( diff --git a/discord/src/commands/init.rs b/discord/src/commands/init.rs index e85d79a..fb6e6c3 100644 --- a/discord/src/commands/init.rs +++ b/discord/src/commands/init.rs @@ -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() { diff --git a/discord/src/commands/map.rs b/discord/src/commands/map.rs index 4313132..96bb30d 100644 --- a/discord/src/commands/map.rs +++ b/discord/src/commands/map.rs @@ -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; diff --git a/discord/src/commands/quest.rs b/discord/src/commands/quest.rs index bf90fdd..ee6089d 100644 --- a/discord/src/commands/quest.rs +++ b/discord/src/commands/quest.rs @@ -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<'_>,