Python3 Discord Selfbot Nameerror: Name 'tokens' Is Not Defined
When I run my file for my discord selfbot, it gives me the error NameError: name 'tokens' is not defined. I am quite new to programming and I don't know why. If you know how I can
Solution 1:
your code is not well indented
it should have been as follow:
loop = asyncio.get_event_loop()
defSelfbottokens():
withopen("tokens.txt", "r") as f:
tokens = [token.strip("\n") for token in f.readlines()]
for i inrange(len(tokens)):
client.add_cog(client)
loop.create_task(client.start(tokens[i], bot=False))
Post a Comment for "Python3 Discord Selfbot Nameerror: Name 'tokens' Is Not Defined"