From a01a09d23ca461f72727a4952241e8e5dfdae794 Mon Sep 17 00:00:00 2001 From: Shadow15510 Date: Fri, 9 Jun 2023 20:04:19 +0200 Subject: [PATCH] Rollback to a python secret file --- bot.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/bot.py b/bot.py index 28173f7..8ff3035 100644 --- a/bot.py +++ b/bot.py @@ -7,20 +7,11 @@ Description Allow to make and run a Bot instance which will communicate to the V5 server and IRC one. """ -import json -#import socket -#from threading import Thread - +from secrets import USER, PASSWORD from irc import IRC from v5 import V5 -with open("secrets.json", "r", encoding="utf-8") as file: - secrets = json.load(file) - USER = secrets["user"] - PASSWORD = secrets["password"] - - class Bot: """Run the connexion between IRC's server and V5 one.