diff --git a/src/main.rs b/src/main.rs index e8debb8c8ca9776693e800e80e64bb2fbba37495..a4eea6986e4754b4886c4ad97cac2c8aabfff77a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,6 +8,8 @@ use rand::Rng; struct Handler; +static DISCORD_TOKEN: &str = include_str!("discord_token"); + static SERVER_ID: u64 = 606351521117896704; // #general static MAIN_CHANNEL: serenity::model::id::ChannelId = @@ -290,7 +292,7 @@ impl EventHandler for Handler { fn main() { // Configure the client with your Discord bot token in the environment. - let token = include_str!("discord_token"); + let token = DISCORD_TOKEN; // Create a new instance of the Client, logging in as a bot. This will // automatically prepend your bot token with "Bot ", which is a requirement