Skip to content
This repository has been archived by the owner on Nov 28, 2024. It is now read-only.

Commit

Permalink
Fixed compiling errors
Browse files Browse the repository at this point in the history
Signed-off-by: MaFeLP <[email protected]>
  • Loading branch information
MaFeLP committed Dec 22, 2021
1 parent 7415993 commit 18fea14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use serenity::prelude::*;
use tokio::time::Instant;

/// Function to start a new instance of the autokommentator bot
async fn start_xd() -> void {
async fn start_xd() {
panic::set_hook(Box::new(|_| {
eprintln!("Fatal: Not discord token XD found!\nFatal: Please set the DISCORD_TOKEN_XD environment variable to your discord token!\nFatal: More information can be found here: https://mafelp.github.io/MCDC/installation#get-a-discord-bot-token");
exit(2);
Expand All @@ -37,7 +37,7 @@ async fn start_xd() -> void {
}

/// Function to start a new instance of the kaenguru bot
async fn start_kg() -> void{
async fn start_kg() {
panic::set_hook(Box::new(|_| {
eprintln!("Fatal: Not discord token Känguru found!\nFatal: Please set the DISCORD_TOKEN_KAENGURU environment variable to your discord token!\nFatal: More information can be found here: https://mafelp.github.io/MCDC/installation#get-a-discord-bot-token");
exit(2);
Expand Down

0 comments on commit 18fea14

Please sign in to comment.