Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It isn't working anymore #13

Closed
keexers opened this issue Aug 31, 2022 · 3 comments
Closed

It isn't working anymore #13

keexers opened this issue Aug 31, 2022 · 3 comments

Comments

@keexers
Copy link

keexers commented Aug 31, 2022

Last 2 months, the online-forever worked like a charm. But after the recent discord update, It isn't working anymore. I don't know if it's the discord update or it's just my issue.

https://streamable.com/ulqvnb

@SealedSaucer
Copy link
Owner

Hey, it's the problem of your repl. Try cloning it again into a new repl.

@skyoutMP
Copy link

skyoutMP commented Sep 2, 2022

same issue

`python3 main.py
Traceback (most recent call last):
File "main.py", line 15, in

  • Serving Flask app ''
  • Debug mode: off
    client.run(os.getenv("MY TOKEN HERE"))
    File "/home/runner/Onliner/venv/lib/python3.8/site-packages/discord/client.py", line 727, in run
    asyncio.run(runner())
    File "/nix/store/2vm88xw7513h9pyjyafw32cps51b0ia1-python3-3.8.12/lib/python3.8/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
    File "/nix/store/2vm88xw7513h9pyjyafw32cps51b0ia1-python3-3.8.12/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
    File "/home/runner/Onliner/venv/lib/python3.8/site-packages/discord/client.py", line 724, in runner
    WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
  • Running on all addresses (0.0.0.0)
  • Running on http://127.0.0.1:8080
  • Running on http://172.18.0.22:8080
    await self.start(*args, **kwargs)
    File "/home/runner/Onliner/venv/lib/python3.8/site-packages/discord/client.py", line 697, in start
    Press CTRL+C to quit
    await self.login(token)
    File "/home/runner/Onliner/venv/lib/python3.8/site-packages/discord/client.py", line 568, in login
    data = await state.http.static_login(token.strip())
    AttributeError: 'NoneType' object has no attribute 'strip'
    172.18.0.1 - - [02/Sep/2022 19:59:13] "GET / HTTP/1.1" 200 -
    signal: terminated`

@SealedSaucer
Copy link
Owner

Stop putting your token inside the code. I have never said to add your token inside the code. The video clearly shows and explains you have to put your token inside Secrets. If you are not sure about the installation/setup process, check the video linked in the readme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants