Ошибка:
Traceback (most recent call last):
File "bot.py", line 465, in
@client.event()
TypeError: event() missing 1 required positional argument: 'coro'
@client.event()
async def on_group_remove(ctx, channel, member):
cursor.execute("UPDATE users SET onchannel = 0 WHERE name = {}").format(member.name)
@client.event()
async def on_group_join(ctx, channel, member):
cursor.execute("UPDATE users SET onchannel = 1 WHERE name = {}").format(member.name)
async def vccash(ctx):
while True:
for x in cursor.execute("SELECT onchannel, name FROM users").fetchall():
if x[0] == 1:
cursor.execute("UPDATE users SET cash = cash + 1 WHERE name = {}").format(x[1])
await asyncio.sleep(20)
p.s. функция vccash прописана в on_ready()