Мой source код чат калькулятора Nexus Grief
Python:
#ChatCalulator V.1///
from time import sleep
import keyboard
#---------------------------------------------------------------------------------------------------------------------------------------------------------------
numbs = []
while True:
with open('E:\\Game\\Новая папка\\logs\\latest.log', "rt",encoding='UTF-8') as logfile:
for line in logfile:
if "[Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] Решите пример:" in line:
print(f'Line1: {line[:-1]}')
a = line[96:-1]
print(f'Line2: {a}')
if (not a in numbs):
try:
s = eval(a)
print(f'{line[96:-1]} = {s}\n')
keyboard.press_and_release('t')
sleep(00.1)
keyboard.write(str(s))
keyboard.press_and_release('enter')
numbs.append(a)
except:
print('ERROR!\n')
print('\n')
sleep(00.1)
Последнее редактирование: