Updated info command, add readme

This commit is contained in:
shibedrill 2024-04-25 14:46:06 -04:00
parent f13400703e
commit 8d25de691f
3 changed files with 15 additions and 2 deletions

3
README.md Normal file
View File

@ -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.

View File

@ -36,7 +36,11 @@ 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/",
"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?;

View File

@ -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");
}