From 149d55d77f4a6026106d1a3847221b9fc860658d Mon Sep 17 00:00:00 2001 From: jude-lafitteIII Date: Wed, 20 May 2020 20:13:38 +0100 Subject: [PATCH] autoshard & customize info message --- src/main.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index fd4c799..08c79cf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -375,7 +375,7 @@ async fn main() -> Result<(), Box> { // select on the client and client auto disconnector (when the client terminates, terminate the disconnector tokio::select! { - _ = client.start() => {} + _ = client.start_autosharded() => {} _ = disconnect_from_inactive(cvm, voice_guilds, disconnect_cycle_delay) => {} }; @@ -505,18 +505,18 @@ async fn info(ctx: &Context, msg: &Message, _args: Args) -> CommandResult { .embed(|e| e .title("Info") .color(THEME_COLOR) - .description("Default prefix: `?` + .description(format!("Default prefix: `?` -Reset prefix: `@SoundFX prefix ?` +Reset prefix: `<@{0}> prefix ?` -Invite me: https://discordapp.com/oauth2/authorize?client_id=430384808200372245&scope=bot&permissions=36703232 +Invite me: https://discordapp.com/oauth2/authorize?client_id={0}&scope=bot&permissions=36703232 **Welcome to SoundFX!** Developer: <@203532103185465344> Find me on https://discord.jellywx.com/ and on https://github.com/JellyWX :) **An online dashboard is available!** Visit https://soundfx.jellywx.com/dashboard -There is a maximum sound limit per user. This can be removed by donating at https://patreon.com/jellywx"))).await?; +There is a maximum sound limit per user. This can be removed by donating at https://patreon.com/jellywx", env::var("CLIENT_ID").unwrap())))).await?; Ok(()) }