Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -140,7 +140,8 @@ fn setup_tracing(env: &str, enable_libraries: bool) -> anyhow::Result<ReloadHand
#[tokio::main]
async fn main() -> Result<(), Error> {
dotenv::dotenv().ok();
let is_production = std::env::var("AMD_RUST_ENV").context("RUST_ENV was not found in the ENV")?;
let is_production =
std::env::var("AMD_RUST_ENV").context("RUST_ENV was not found in the ENV")?;
let enable_debug_libraries_string = std::env::var("ENABLE_DEBUG_LIBRARIES")
.context("ENABLE_DEBUG_LIBRARIES was not found in the ENV")?;
let enable_debug_libraries: bool = enable_debug_libraries_string
2 changes: 1 addition & 1 deletion src/tasks/status_update.rs
Original file line number Diff line number Diff line change
@@ -165,7 +165,7 @@ async fn collect_updates(channel_ids: &[ChannelId], ctx: &Context) -> anyhow::Re
valid_updates.extend(messages.into_iter().filter(|msg| {
let content = msg.content.to_lowercase();
(content.contains("namah shivaya")
&& content.contains("regards")
&& content.contains("regards")
&& msg.timestamp >= yesterday_five_pm.into())
|| (content.contains("regards")
&& (msg.author.name == "amanoslean" || msg.author.name == "mouli7666")