Skip to content

Commit

Permalink
Merge pull request #46 from wynter1888/development
Browse files Browse the repository at this point in the history
Reaper Logging Fix
  • Loading branch information
GenericNerd committed May 23, 2024
2 parents 621d7de + ab77119 commit 6946245
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
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

0 comments on commit 6946245

Please sign in to comment.