Skip to content

Commit 9747340

Browse files
committed
Nuke discord osm changes channel
1 parent 4c175cf commit 9747340

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

src/db/conf/schema.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ impl Columns {
3131
}
3232
}
3333

34+
#[allow(dead_code)]
3435
#[derive(Clone)]
3536
pub struct Conf {
3637
pub paywall_add_element_comment_price_sat: i64,

src/service/discord.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ const BOT_USERNAME: &str = "btcmap.org";
88
#[derive(Debug, Display)]
99
pub enum Channel {
1010
Api,
11-
OsmChanges,
1211
}
1312

1413
pub fn send(message: impl Into<String>, channel: Channel, conf: &Conf) {
@@ -20,7 +19,6 @@ pub fn send(message: impl Into<String>, channel: Channel, conf: &Conf) {
2019

2120
let webhook_url = match channel {
2221
Channel::Api => conf.discord_webhook_api.clone(),
23-
Channel::OsmChanges => conf.discord_webhook_osm_changes.clone(),
2422
};
2523

2624
if webhook_url.is_empty() {

src/service/event.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use crate::db;
22
use crate::db::element_event::schema::ElementEvent;
33
use crate::service;
4-
use crate::service::discord;
54
use crate::service::matrix;
65
use crate::service::matrix::ROOM_OSM_CHANGES;
76
use crate::Result;
@@ -60,9 +59,6 @@ pub async fn on_new_event(
6059
_ => "".into(),
6160
};
6261
info!(message);
63-
let conf = db::conf::queries::select(pool).await?;
64-
// TODO remove
65-
discord::send(&message, discord::Channel::OsmChanges, &conf);
6662
matrix::send_message(matrix_client, ROOM_OSM_CHANGES, &message);
6763

6864
if user.tags.get("osm:missing") == Some(&Value::Bool(true)) {

0 commit comments

Comments
 (0)