import json
message = input("sus")
with open(f"guild\{message.guild.id}.json", 'r') as f:
prefix = json.load(f)
if message in prefix:
print("bila takoe")
return
else:
print("Sus")
{
"allwords": 3,
"1": "hpp",
"2": "hlp",
"3": "help pls"
}
import json
inp = input("input")
with open(f"info.json", 'r') as f:
prefix = json.load(f)
result = None
for key in prefix:
if prefix[key] == inp:
result = key
if result is not None:
print(f'Yes, {result}')
else:
print(f'{inp} not found')
inp
. Если их там несколько, остальные не покажет. Если не найдет, сообщит.