Answer the question
In order to leave comments, you need to log in
How to make a cooldown per team in discord.py?
I have my code:
@commands.command(
aliases=['награда']
)
async def timely(self,ctx):
abalance = self.collection.find_one({"_id": ctx.author.id})["balance"]
self.collection.update_one({"_id": ctx.author.id},
{"$set": {"balance": abalance + 30}})
emb = discord.Embed(
title='Временная награда',
description=f'__{ctx.author.mention}__, вы получили свои 30 осколков!\n Приходите через 12 часов.'
)
emb.set_thumbnail(url=ctx.author.avatar_url)
await ctx.send(embed=emb)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question