Revert to env variable for discord token

This commit is contained in:
Agatha Rose 2018-08-01 22:13:07 +03:00
parent 174b37017f
commit 160b8fb248
4 changed files with 3 additions and 7 deletions

2
Cargo.lock generated
View File

@ -455,7 +455,7 @@ dependencies = [
[[package]] [[package]]
name = "rustcord" name = "rustcord"
version = "0.8.1" version = "0.8.2"
dependencies = [ dependencies = [
"rand 0.3.22 (registry+https://github.com/rust-lang/crates.io-index)", "rand 0.3.22 (registry+https://github.com/rust-lang/crates.io-index)",
"serenity 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)", "serenity 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)",

View File

@ -1,6 +1,6 @@
[package] [package]
name = "rustcord" name = "rustcord"
version = "0.8.1" version = "0.8.2"
authors = ["EvilDeaaaadd <EvilDeaaaadd@protonmail.com>"] authors = ["EvilDeaaaadd <EvilDeaaaadd@protonmail.com>"]
[dependencies] [dependencies]

View File

@ -32,11 +32,7 @@ impl EventHandler for Handler {
fn main() { fn main() {
// Login with a bot token from the environment // Login with a bot token from the environment
// let mut client = Client::new(&env::var("DISCORD_TOKEN").expect("token"), Handler) let mut client = Client::new(&env::var("DISCORD_TOKEN").expect("token"), Handler).expect("Error creating client");
let mut client = Client::new(
"NDcwMzUwMjMzNDE5OTA3MTI5.Djnj8Q.zWccOBceV0Xf3MB2OjL0MpqZsgg",
Handler,
).expect("Error creating client");
client.with_framework( client.with_framework(
StandardFramework::new() StandardFramework::new()
.configure(|c| c.prefix("OwO ").case_insensitivity(true)) .configure(|c| c.prefix("OwO ").case_insensitivity(true))

Binary file not shown.