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.')
|
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
|
||||||
|
|
||||||
|
|
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user