From 0b674627be2697ec1cc631468d4d595c110a3b5e Mon Sep 17 00:00:00 2001 From: Astoria Floyd Date: Sat, 30 Oct 2021 20:13:14 -0500 Subject: [PATCH] Fix token being in open sight. --- .gitignore | 1 + Emery.rb | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..77b3ac2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +token.txt \ No newline at end of file diff --git a/Emery.rb b/Emery.rb index 0495dcc..7b75b2b 100755 --- a/Emery.rb +++ b/Emery.rb @@ -2,11 +2,9 @@ require 'discordrb' require 'tmpdir' -#require 'toml' -#$config = TOML.load_file("./config.toml") - -bot = Discordrb::Bot.new token: 'ODc0MDMzNjc4Mjc4MzQ0NzY0.YRBFSw.N_rTx8xQL7cn5E9tSj2IlieTNlk' +token = File.read("token.txt") +bot = Discordrb::Bot.new token: "#{token}" bang = '!' def loadCommands(bot, bang)