@Bot.command()
async def timely(ctx):
with open('economy.json','r') as f:
money = json.load(f)
if not str(ctx.author.id) in money:
money[str(ctx.author.id)] = {}
money[str(ctx.author.id)]['Money'] = 0
if not str(ctx.author.id) in queue:
emb = discord.Embed(description=f'**{ctx.author}** Вы получили свои 1250 монет')
await ctx.send(embed= emb)
money[str(ctx.author.id)]['Money'] += 1250 #кол-во монет
queue.append(str(ctx.author.id))
with open('economy.json','w') as f:
json.dump(money,f)
await asyncio.sleep(24*60)
queue.remove(str(ctx.author.id))
if str(ctx.author.id) in queue:
emb = discord.Embed(description=f'**{ctx.author}** Вы уже получили свою награду')
await ctx.send(embed= emb)