Skip to content

Commit

Permalink
0.0.9 -> 0.1.0 (#39)
Browse files Browse the repository at this point in the history
* fix auto sort and main r

* bump
  • Loading branch information
tikitko authored Jan 8, 2023
1 parent 0d8e31b commit 984e90f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "red-alert"
version = "0.0.9"
version = "0.1.0"
edition = "2021"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion ru_RU.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ red-alert-command-mass-error-status = ОШИБКА (ПРОЧНЫЙ СУ*А)
red-alert-command-mass-record = {$record-number}. {$user-name} СТАТУС: {$deport-status}.
red-alert-command-mass-records-header = ОУ, МАССОВЫЙ КОД КРАСНЫЙ? СТАТУС ВЫКОСА КРИНЖОВИКОВ:
start-listen-red-alert-command-prefix-anchor = слушать код красный
start-listen-red-alert-command-header-suffix = {"{"}ID или упоминание канала{"}"}*
start-listen-red-alert-command-header-suffix = {"{"}ID или упоминание канала{"}"}
start-listen-red-alert-command-help-description = Начать слушать выбранный голосовой канал на запрещенные и направленные фразы.
start-listen-red-alert-command-success = ОТСЛЕЖИВАЮ КОД КРАСНЫЙ В КАНАЛЕ {$channel-name}...
start-listen-red-alert-command-connect-error = ОШИБКА СЛЕЖКИ ЗА КАНАЛОМ {$channel-name}. НЕ ПОЛУЧАЕТСЯ ВОЙТИ В КАНАЛ...
Expand Down
2 changes: 1 addition & 1 deletion src/red_alert/commands_handler/on_ready.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ impl RedAlertOnReady {
let mut channels_users_counts = channels_users_counts
.into_iter()
.collect::<Vec<(ChannelId, u8)>>();
channels_users_counts.sort_by(|a, b| a.1.partial_cmp(&b.1).unwrap());
channels_users_counts.sort_by(|a, b| b.1.partial_cmp(&a.1).unwrap());
channels_users_counts.first().map(|c| c.0)
} {
let is_prev_channel = guilds_active_channels
Expand Down

0 comments on commit 984e90f

Please sign in to comment.