-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '0.0.1-staging-changes' into main
- Loading branch information
Showing
37 changed files
with
699 additions
and
250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[package] | ||
name = "bismarck_commands" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
|
||
chrono = { workspace = true } | ||
duration-str = { workspace = true } | ||
poise = { workspace = true } | ||
serenity = { workspace = true } | ||
serde_json = { workspace = true } | ||
sqlx = { workspace = true } | ||
git2 = { workspace = true } | ||
reqwest = { workspace = true } | ||
sysinfo = { workspace = true } | ||
tracing = { workspace = true } | ||
|
||
rand = { workspace = true } | ||
|
||
bismarck_utilities = { path = "../bismarck_utilities" } | ||
bismarck_core = { path = "../bismarck_core" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
use bismarck_core::{context::Context, error::Error}; | ||
use poise; | ||
|
||
/// Shuts down the bot gracefully | ||
#[poise::command(prefix_command, owners_only, hide_in_help)] | ||
pub async fn shutdown(ctx: Context<'_>) -> Result<(), Error> { | ||
ctx.framework().shard_manager().shutdown_all().await; | ||
Ok(()) | ||
} | ||
|
||
/// Utility for global application commands for owner of bot | ||
#[poise::command(prefix_command, owners_only, hide_in_help)] | ||
pub async fn register(ctx: Context<'_>) -> Result<(), Error> { | ||
poise::builtins::register_application_commands_buttons(ctx) | ||
.await | ||
.unwrap(); | ||
Ok(()) | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.