Skip to content

Commit 76e66dc

Browse files
Copilotseqre
andcommitted
Move ranking_watcher from chombot to chombot-common
Co-authored-by: seqre <44679055+seqre@users.noreply.github.com>
1 parent 5118626 commit 76e66dc

File tree

9 files changed

+8
-17
lines changed

9 files changed

+8
-17
lines changed

Cargo.lock

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

chombot-common/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ pub mod chombot;
1919
pub mod data;
2020
pub mod data_watcher;
2121
pub mod discord_utils;
22+
pub mod ranking_watcher;
2223
pub mod scraping_utils;
2324
pub mod slash_commands;
2425
pub mod tournaments_watcher;

chombot/src/ranking_watcher/notifier.rs renamed to chombot-common/src/ranking_watcher/notifier.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use async_trait::async_trait;
2-
use chombot_common::data_watcher::DataUpdateNotifier;
3-
use chombot_common::discord_utils::send_with_overflow;
2+
use crate::data_watcher::DataUpdateNotifier;
3+
use crate::discord_utils::send_with_overflow;
44
use log::error;
55
use poise::serenity_prelude::{ChannelId, Context};
66

chombot/src/ranking_watcher/test_data/ranking.html renamed to chombot-common/src/ranking_watcher/test_data/ranking.html

File renamed without changes.

chombot/src/ranking_watcher/usma.rs renamed to chombot-common/src/ranking_watcher/usma.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
use std::convert::TryFrom;
22

33
use anyhow::{anyhow, Context, Result};
4-
use chombot_common::data_watcher::WatchableData;
5-
use chombot_common::scraping_utils::{create_chombot_http_client, first_nonempty_text};
6-
use chombot_common::{select_all, select_one, unpack_children};
4+
use crate::data_watcher::WatchableData;
5+
use crate::scraping_utils::{create_chombot_http_client, first_nonempty_text};
6+
use crate::{select_all, select_one, unpack_children};
77
use log::info;
88
use scraper::node::{Element, Node};
99
use scraper::{CaseSensitivity, ElementRef, Html, Selector};

chombot-kcc/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,3 @@ num-bigint.workspace = true
2525
itertools.workspace = true
2626
poise.workspace = true
2727
chombot-common.workspace = true
28-
chombot.workspace = true

chombot-kcc/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ 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 chombot::ranking_watcher::notifier::ChannelMessageNotifier;
27-
use chombot::ranking_watcher::usma::get_ranking;
26+
use chombot_common::ranking_watcher::notifier::ChannelMessageNotifier;
27+
use chombot_common::ranking_watcher::usma::get_ranking;
2828
use crate::slash_commands::chombo::chombo;
2929
use crate::slash_commands::pasta::pasta;
3030

chombot/src/lib.rs

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)