Grab credentials from env vars
This commit is contained in:
parent
514b324156
commit
ca40d3eba2
7
bot.py
7
bot.py
|
@ -2,11 +2,12 @@ if __name__ == '__main__':
|
|||
print('Run main.py instead.')
|
||||
exit(1)
|
||||
|
||||
import os
|
||||
import time
|
||||
|
||||
USERNAME = ''
|
||||
PASSWORD = ''
|
||||
SERVER = ''
|
||||
USERNAME = os.environ['USERNAME']
|
||||
PASSWORD = os.environ['PASSWORD']
|
||||
SERVER = os.environ['SERVER']
|
||||
|
||||
from custom.managers import DataManager, ChunksManager, ChatManager
|
||||
|
||||
|
|
|
@ -28,8 +28,8 @@ class ChunkDataPacket(Packet):
|
|||
self.data = file_object.read(size)
|
||||
size_entities = VarInt.read(file_object)
|
||||
self.entities = []
|
||||
#for i in range(size_entities):
|
||||
# self.entities.append(Nbt.read(file_object))
|
||||
for i in range(size_entities):
|
||||
self.entities.append(Nbt.read(file_object))
|
||||
|
||||
self.decode_chunk_data()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user