Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reaper Logging Fix #46

Merged
merged 3 commits into from
May 23, 2024
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "reaper"
version = "1.1.0"
version = "1.1.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand All @@ -24,4 +24,4 @@ rand = "0.8"
redis = { version = "0.25", features = ["tokio-comp"] }
ordinal = "0.3"
pretty-duration = "0.1"
unic = "0.9.0"
unic = "0.9.0"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ A Discord bot designed to make your users reap what they sow.
</div>
<div align="center">

[![Version](https://img.shields.io/badge/version-1.1.0-purple)](https://img.shields.io/badge/version-1.1.0-purple)
[![Version](https://img.shields.io/badge/version-1.1.1-purple)](https://img.shields.io/badge/version-1.1.1-purple)
</div>

## What is Reaper?
Expand Down
8 changes: 4 additions & 4 deletions src/common/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub async fn get_log_channel(
.await
.unwrap();

if feature_flags
if !feature_flags
.iter()
.find(|flag| flag.feature == "logging")
.unwrap()
Expand All @@ -28,7 +28,7 @@ pub async fn get_log_channel(

match log_type {
LogType::Action => {
if feature_flags
if !feature_flags
.iter()
.find(|flag| flag.feature == "logging.action")
.unwrap()
Expand All @@ -39,7 +39,7 @@ pub async fn get_log_channel(
}
}
LogType::Message => {
if feature_flags
if !feature_flags
.iter()
.find(|flag| flag.feature == "logging.message")
.unwrap()
Expand All @@ -50,7 +50,7 @@ pub async fn get_log_channel(
}
}
LogType::Voice => {
if feature_flags
if !feature_flags
.iter()
.find(|flag| flag.feature == "logging.voice")
.unwrap()
Expand Down
Loading