Revert to env variable for discord token
This commit is contained in:
parent
18243d4cb8
commit
fc90f37973
|
@ -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)",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "rustcord"
|
name = "rustcord"
|
||||||
version = "0.8.1"
|
version = "0.8.2"
|
||||||
authors = [" <@protonmail.com>"]
|
authors = [" <@protonmail.com>"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|
|
@ -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.
Loading…
Reference in New Issue