Skip to content

Commit f96a141

Browse files
Copilotseqre
andcommitted
Move ranking_watcher from chombot-kcc to chombot crate
Co-authored-by: seqre <44679055+seqre@users.noreply.github.com>
1 parent 6ed20fb commit f96a141

File tree

11 files changed

+12
-3
lines changed

11 files changed

+12
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

chombot-kcc/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ num-bigint.workspace = true
2525
itertools.workspace = true
2626
poise.workspace = true
2727
chombot-common = { path = "../chombot-common" }
28+
chombot = { path = "../chombot" }

chombot-kcc/src/main.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,14 @@ use poise::{BoxFuture, Command, Context, Framework, FrameworkContext, FrameworkO
2323
use crate::args::Arguments;
2424
use crate::chombot::Chombot;
2525
use crate::kcc3::Kcc3ClientResult;
26-
use crate::ranking_watcher::notifier::ChannelMessageNotifier;
27-
use crate::ranking_watcher::usma::get_ranking;
26+
use chombot::ranking_watcher::notifier::ChannelMessageNotifier;
27+
use chombot::ranking_watcher::usma::get_ranking;
2828
use crate::slash_commands::chombo::chombo;
2929
use crate::slash_commands::pasta::pasta;
3030

3131
mod args;
3232
mod chombot;
3333
mod kcc3;
34-
mod ranking_watcher;
3534
mod slash_commands;
3635

3736
const AT_EVERYONE_REACTIONS: [&str; 2] = ["Ichiangry", "Mikiknife"];

chombot/src/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#![warn(clippy::pedantic)]
2+
#![warn(clippy::nursery)]
3+
#![allow(clippy::module_name_repetitions)]
4+
#![allow(clippy::unreadable_literal)]
5+
#![allow(clippy::missing_errors_doc)]
6+
#![allow(clippy::missing_panics_doc)]
7+
8+
pub mod ranking_watcher;
File renamed without changes.
File renamed without changes.

test_import

4.04 MB
Binary file not shown.

test_import2

4.04 MB
Binary file not shown.

0 commit comments

Comments
 (0)