Skip to content

Commit 316d461

Browse files
committed
fix(discord): fix grammar/wording
1 parent 5052350 commit 316d461

File tree

4 files changed

+16
-5
lines changed

4 files changed

+16
-5
lines changed

Diff for: Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ COPY . .
55
RUN cargo install --path src/sexurity-discord
66
RUN cargo install --path src/sexurity-poller
77

8-
FROM debian:bullseye-slim
9-
RUN apt-get update && apt-get install -y wget jq && rm -rf /var/lib/apt/lists/*
8+
FROM ubuntu
9+
RUN apt-get update && apt-get install -y wget jq curl && rm -rf /var/lib/apt/lists/*
1010
RUN wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 && chmod +x /usr/local/bin/yq
1111

1212
COPY --from=builder /usr/local/cargo/bin/sexurity-discord /usr/local/bin/sexurity-discord
1313
COPY --from=builder /usr/local/cargo/bin/sexurity-poller /usr/local/bin/sexurity-poller
1414
COPY ./yaml_to_cli.sh /usr/local/bin/yaml_to_cli.sh
15-
ENV RUST_LOG info
15+
ENV RUST_LOG info

Diff for: src/sexurity-discord/src/breakdown.rs

+11
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,17 @@ pub fn calculate_rep_breakdown(mut rep_points: i32) -> ReputationBreakdown {
8282
index += 1;
8383
}
8484

85+
if rep_points != 0 {
86+
return ReputationBreakdown {
87+
high_bounty: 0,
88+
medium_bounty: 0,
89+
low_bounty: 0,
90+
triaged: 0,
91+
not_applicable: 0,
92+
spam: 0,
93+
};
94+
}
95+
8596
breakdown
8697
}
8798

Diff for: src/sexurity-discord/src/subscriptions/reports.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use sexurity_api::redis::redis::Connection;
33
use std::thread::{self, JoinHandle};
44
use twilight_model::channel::message::embed::Embed;
55
use twilight_util::builder::embed::EmbedFieldBuilder;
6-
use twilight_util::builder::embed::{EmbedBuilder, EmbedFooterBuilder};
6+
use twilight_util::builder::embed::EmbedBuilder;
77

88
pub fn start_reports_subscription<E: Fn(Vec<Embed>) + Sync + std::marker::Send + 'static>(
99
mut conn: Connection,

Diff for: src/sexurity-discord/src/subscriptions/reputation.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ fn build_embed_data(diff: Vec<models::RepData>, handle: &str) -> Option<Embed> {
116116
);
117117

118118
if new.rank == -1 {
119-
text = format!("[**``{}``**]({}) was added to [**``{}``**]({}) with **{} reputation** (rank: <100)", new.user_name, format!("https://hackerone.com/{}", new.user_name), handle, format!("https://hackerone.com/{}", handle), new.reputation);
119+
text = format!("[**``{}``**]({}) was added to [**``{}``**]({}) with **{} reputation** (rank: >100)", new.user_name, format!("https://hackerone.com/{}", new.user_name), handle, format!("https://hackerone.com/{}", handle), new.reputation);
120120
}
121121

122122
let embed = EmbedBuilder::new()

0 commit comments

Comments
 (0)