athphane / userbot

Missing argument in function call PYL-E1120
Bug risk
Critical
5 months ago4 years old
No value for argument 'self' in unbound method call
141    elif "g" in message.text:
142        asyncio.get_event_loop().create_task(UserBot.restart(git_update=True))
143    else:
144        asyncio.get_event_loop().create_task(UserBot.restart())145
146
147# Command help section
No value for argument 'self' in unbound method call
139    elif "p" in message.text:
140        asyncio.get_event_loop().create_task(UserBot.restart(pip=True))
141    elif "g" in message.text:
142        asyncio.get_event_loop().create_task(UserBot.restart(git_update=True))143    else:
144        asyncio.get_event_loop().create_task(UserBot.restart())
145
No value for argument 'self' in unbound method call
137    if "p" in message.text and "g" in message.text:
138        asyncio.get_event_loop().create_task(UserBot.restart(git_update=True, pip=True))
139    elif "p" in message.text:
140        asyncio.get_event_loop().create_task(UserBot.restart(pip=True))141    elif "g" in message.text:
142        asyncio.get_event_loop().create_task(UserBot.restart(git_update=True))
143    else:
No value for argument 'self' in unbound method call
135    )
136
137    if "p" in message.text and "g" in message.text:
138        asyncio.get_event_loop().create_task(UserBot.restart(git_update=True, pip=True))139    elif "p" in message.text:
140        asyncio.get_event_loop().create_task(UserBot.restart(pip=True))
141    elif "g" in message.text: