Skip to content

Commit

Permalink
version update
Browse files Browse the repository at this point in the history
cleanup
  • Loading branch information
cycle-five committed Sep 20, 2024
1 parent b3e764b commit a5e62b2
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 30 deletions.
16 changes: 8 additions & 8 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions crack-bf/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "crack-bf"
version = "0.1.0"
version = "0.3.13"
edition = "2021"
authors = ["Cycle Five <[email protected]>"]
publish = true
license = "MIT"
description = "Brainfuck interpreter for cracktunes."
description = "Brainfuck interpreter for cracktunes. v0.1.0"
keywords = [
"music",
"discord",
Expand Down
2 changes: 1 addition & 1 deletion crack-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
authors = ["Cycle Five <[email protected]>"]
name = "cracktunes"
version = "0.3.12"
version = "0.3.13"
description = "Cracktunes is a hassle-free, highly performant, host-it-yourself, cracking smoking, discord-music-bot."
publish = true
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion crack-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "crack-core"
version = "0.3.12"
version = "0.3.13"
authors = ["Cycle Five <[email protected]>"]
edition = "2021"
description = "Core module for the cracking smoking, discord-music-bot Cracktunes."
Expand Down
13 changes: 5 additions & 8 deletions crack-core/src/commands/permissions.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
use crate::{guild::operations::GuildSettingsOperations, Context, CrackedError, Error};
use crate::{
guild::operations::GuildSettingsOperations, utils::OptionTryUnwrap, Context, CrackedError,
Error,
};
use poise::serenity_prelude as serenity;
use serenity::all::{ChannelId, Member, Permissions, RoleId};
use std::borrow::Cow;
Expand All @@ -21,13 +24,7 @@ pub async fn cmd_check_music_internal(
channel_id: ChannelId,
ctx: Context<'_>,
) -> Result<bool, Error> {
let guild_id = match ctx.guild_id() {
Some(id) => id,
None => {
tracing::warn!("No guild id found");
return Ok(false);
},
};
let guild_id = ctx.guild_id().try_unwrap()?;

Check warning on line 27 in crack-core/src/commands/permissions.rs

View check run for this annotation

Codecov / codecov/patch

crack-core/src/commands/permissions.rs#L27

Added line #L27 was not covered by tests

let guild_settings = match ctx.data().get_guild_settings(guild_id).await {
Some(guild_settings) => {
Expand Down
4 changes: 2 additions & 2 deletions crack-gpt/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "crack-gpt"
version = "0.2.0"
version = "0.3.13"
edition = "2021"
authors = ["Cycle Five <[email protected]>"]
publish = true
license = "MIT"
description = "GPT module for Cracktunes."
description = "GPT module for Cracktunes. v0.2.0."
keywords = ["music", "discord", "bot", "crack", "tunes"]
categories = ["multimedia::audio"]
homepage = "https://cracktun.es/"
Expand Down
4 changes: 2 additions & 2 deletions crack-osint/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "crack-osint"
version = "0.1.4"
version = "0.3.13"
edition = "2021"
authors = ["Cycle Five <[email protected]>"]
publish = true
license = "MIT"
description = "OSINT module for Cracktunes."
description = "OSINT module for Cracktunes. v0.1.4."
keywords = ["music", "discord", "bot", "crack", "tunes"]
categories = ["multimedia::audio"]
homepage = "https://cracktun.es/"
Expand Down
2 changes: 1 addition & 1 deletion crack-testing/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "crack-testing"
version = "0.1.0"
version = "0.3.13"
edition = "2021"
authors = ["Cycle Five <[email protected]>"]
publish = true
Expand Down
2 changes: 1 addition & 1 deletion crack-types/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "crack-types"
version = "0.1.0"
version = "0.3.13"
edition = "2021"
authors = ["Cycle Five <[email protected]>"]
publish = true
Expand Down
6 changes: 3 additions & 3 deletions crack-voting/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "crack-voting"
version = "0.1.0"
version = "0.3.13"
edition = "2021"
authors = ["Cycle Five <[email protected]>"]
publish = true
Expand All @@ -20,8 +20,8 @@ path-guid = "08ECB7E7-1E6E-4C7A-9C08-2EF1DD1CE768"
license = false
eula = false

[package.metadata.dist]
dist = false
# [package.metadata.dist]
# dist = false

[dependencies]
lazy_static = "1.5"
Expand Down
3 changes: 2 additions & 1 deletion scripts/lint_test_build.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/bin/sh
export PROFILE=release
export PROFILE=debug
cargo +nightly fmt --all -- --check --profile=$PROFILE
cargo +nightly clippy --profile=$PROFILE --workspace -- -D clippy::all -D warnings
cargo +nightly test --profile=$PROFILE --workspace
exit 0
cargo +nightly tarpaulin --profile=$PROFILE --verbose --workspace --timeout 120 --out xml
cargo +nightly build --profile=$PROFILE --workspace

0 comments on commit a5e62b2

Please sign in to comment.