Ignoring exception in command reg:
Traceback (most recent call last):
File "C:\Users\megorka\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped
ret = await coro(*args, **kwargs)
File "g:\Dsbot\bot.py", line 46, in reg
await ctx.send(ctx.author.name, "Вы успешно зарегестрировались")
TypeError: send() takes from 1 to 2 positional arguments but 3 were given
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\megorka\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\bot.py", line 939, in invoke
await ctx.command.invoke(ctx)
File "C:\Users\megorka\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 863, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "C:\Users\megorka\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 94, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: send() takes from 1 to 2 positional arguments but 3 were given
@client.command()
async def reg(ctx):
name = ctx.author.name
name_tuple = (name)
print("Сработало")
print(ctx.author.name)
print(ctx.author.id)
cursor.executemany("INSERT INTO users VALUES (?)", name_tuple)
print("Сработало")
conn.commit()
await ctx.send(ctx.author.name + "Вы успешно зарегистрировались")
reg_role = discord.utils.get(ctx.message.guild.roles, id = 981482243899920404)
Ignoring exception in command reg:
Traceback (most recent call last):
File "C:\Users\megorka\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped
ret = await coro(*args, **kwargs)
File "g:\Dsbot\bot.py", line 41, in reg
cursor.execute("INSERT INTO users VALUES (?)", ctx.author.name)
sqlite3.ProgrammingError: Incorrect number of bindings supplied. The current statement uses 1, and there are 7 supplied.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\megorka\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\bot.py", line 939, in invoke
await ctx.command.invoke(ctx)
File "C:\Users\megorka\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 863, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "C:\Users\megorka\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 94, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: ProgrammingError: Incorrect number of bindings supplied. The current statement
uses 1, and there are 7 supplied.