aboutsummaryrefslogtreecommitdiff
path: root/examples/01_basic_ping_bot/src
diff options
context:
space:
mode:
Diffstat (limited to 'examples/01_basic_ping_bot/src')
-rw-r--r--examples/01_basic_ping_bot/src/main.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/examples/01_basic_ping_bot/src/main.rs b/examples/01_basic_ping_bot/src/main.rs
index 06f66fe..477aea1 100644
--- a/examples/01_basic_ping_bot/src/main.rs
+++ b/examples/01_basic_ping_bot/src/main.rs
@@ -1,13 +1,9 @@
extern crate serenity;
-#[macro_use] extern crate log;
-extern crate env_logger;
use serenity::Client;
use std::env;
fn main() {
- env_logger::init().unwrap();
-
// Configure the client with your Discord bot token in the environment.
let token = env::var("DISCORD_TOKEN")
.expect("Expected a token in the environment");
@@ -31,8 +27,6 @@ fn main() {
if let Err(why) = msg.channel_id.say("Pong!") {
println!("Error sending message: {:?}", why);
}
-
- println!("{:?}", serenity::client::CACHE.read().unwrap().get_guild_channel(244567637332328450));
}
});