Closed chetan17289 closed 3 years ago
everything is correct I have rechecked the bot token 20 @times
File "/app/.heroku/python/lib/python3.9/site-packages/discord/http.py", line 303, in static_login 2021-06-06T14:43:10.968122+00:00 app[worker.1]: raise LoginFailure('Improper token has been passed.') from exc 2021-06-06T14:43:10.968122+00:00 app[worker.1]: discord.errors.LoginFailure: Improper token has been passed.
Token must be exclusively from a user account, BOT tokens are not supported.
See more in #23
If I want to use both bot and selfbot how can I use any solution?
If I want to use both bot and selfbot how can I use any solution?
Since the module name is the same, you could run 2 different python files in 2 different virtual enviroments
If I want to use both bot and selfbot how can I use any solution?
Since the module name is the same, you could run 2 different python files in 2 different virtual enviroments
Bro I want to make crowd ans bot can I?
If I want to use both bot and selfbot how can I use any solution?
Since the module name is the same, you could run 2 different python files in 2 different virtual enviroments
Bro I want to make crowd ans bot can I?
https://github.com/Rapptz/discord.py/issues/516
If you really want to do this, I would recommend you use discum, which has built-in support for this.
If you would like to create multiple bots you can do something like this
import asyncio
import discord
from collections import namedtuple
loop = asyncio.get_event_loop()
entry = namedtuple("entry", "client, token")
accounts = [entry(discord.Client(), token) for token in tokens] # List of tokens)
async def login(account):
try:
await account.client.start(account.token)
finally:
await account.client.close()
running_bots= []
for a in accounts:
running_bots.append(loop.create_task(login(a)))
loop.run_forever()
I haven't changed the project name as I wanted to retain backwards-compatibility as much as possible, especially with closed-source bots where you can't change import discord
to import x as discord
. You can use Python virtualenvs so this fork doesn't interfere with the original.
Same issure here. I used a usertoken and the issure is still happening
Try to check if your token is really valid using requests or something like that, me and another friend are using the library normally.
Same issure here. I used a usertoken and the issure is still happening
What version of the library are you using? Latest PyPi release? Have you cloned a branch?
Same issure here. I used a usertoken and the issure is still happening
What version of the library are you using? Latest PyPi release? Have you cloned a branch?
Im using the newest version. i installed it directly from pypi so it is the latest release. maybe other libs like discord.py slashcommands causing this issure because maybe pycharm select them instead of discord.py-self. if so it woul d be great, if anyone can reply me how i can set what module a single project should use.
Try development branch https://github.com/dolfies/discord.py-self/tree/development
everything is correct I have rechecked the bot token 20 @times
File "/app/.heroku/python/lib/python3.9/site-packages/discord/http.py", line 303, in static_login 2021-06-06T14:43:10.968122+00:00 app[worker.1]: raise LoginFailure('Improper token has been passed.') from exc 2021-06-06T14:43:10.968122+00:00 app[worker.1]: discord.errors.LoginFailure: Improper token has been passed.