Grab credentials from env vars

This commit is contained in:
Tanner Collin 2020-09-07 16:32:19 -06:00
parent 514b324156
commit ca40d3eba2
2 changed files with 6 additions and 5 deletions

7
bot.py
View File

@ -2,11 +2,12 @@ if __name__ == '__main__':
print('Run main.py instead.') print('Run main.py instead.')
exit(1) exit(1)
import os
import time import time
USERNAME = '' USERNAME = os.environ['USERNAME']
PASSWORD = '' PASSWORD = os.environ['PASSWORD']
SERVER = '' SERVER = os.environ['SERVER']
from custom.managers import DataManager, ChunksManager, ChatManager from custom.managers import DataManager, ChunksManager, ChatManager

View File

@ -28,8 +28,8 @@ class ChunkDataPacket(Packet):
self.data = file_object.read(size) self.data = file_object.read(size)
size_entities = VarInt.read(file_object) size_entities = VarInt.read(file_object)
self.entities = [] self.entities = []
#for i in range(size_entities): for i in range(size_entities):
# self.entities.append(Nbt.read(file_object)) self.entities.append(Nbt.read(file_object))
self.decode_chunk_data() self.decode_chunk_data()