From 8d25de691f0f079c751d61efde4b26b5761c3709 Mon Sep 17 00:00:00 2001 From: shibedrill <53824200+shibedrill@users.noreply.github.com> Date: Thu, 25 Apr 2024 14:46:06 -0400 Subject: [PATCH] Updated info command, add readme --- README.md | 3 +++ src/command/util.rs | 8 ++++++-- src/main.rs | 6 ++++++ 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..a0896ee --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# shibe-bot + +A discord bot using Rust and Poise. Does nothing useful right now. All code is licensed under the MIT license, see LICENSE.txt for details. diff --git a/src/command/util.rs b/src/command/util.rs index b527f7d..aced727 100644 --- a/src/command/util.rs +++ b/src/command/util.rs @@ -36,8 +36,12 @@ pub async fn age( #[poise::command(slash_command)] pub async fn info(ctx: Context<'_>) -> Result<(), Error> { ctx.say(format!( - "Shibe Bot v{} was created by Shibe Drill (@shibedrill) using Rust and Poise.\nVisit her website: https://riverdev.carrd.co\nCheck out her Github: https://github.com/shibedrill\nPoise: https://docs.rs/poise/latest/poise/\nRust: https://www.rust-lang.org/", - env!("CARGO_PKG_VERSION") + "Shibe Bot v{} was created by Shibe Drill (@shibedrill) using Rust and \ + Poise.\nVisit her website: https://riverdev.carrd.co\nCheck out her \ + Github: https://github.com/shibedrill/shibe-bot\n\ + Poise: https://docs.rs/poise/latest/poise/\n\ + Rust: https://www.rust-lang.org/", + env!("CARGO_PKG_VERSION") )) .await?; info!("Executed command `info` successfully"); diff --git a/src/main.rs b/src/main.rs index 1937032..59b7ef5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -141,6 +141,12 @@ async fn main() { // Finally start everything. Nothing after this should be reachable normally. info!("Starting client"); + println!( "Shibe Bot v{} was created by Shibe Drill (@shibedrill) using Rust and \ + Poise.\nVisit her website: https://riverdev.carrd.co\nCheck out her \ + Github: https://github.com/shibedrill/shibe-bot\n\ + Poise: https://docs.rs/poise/latest/poise/\n\ + Rust: https://www.rust-lang.org/", + env!("CARGO_PKG_VERSION")); client.start().await.unwrap(); info!("All tasks finished, shutting down"); }