pininkara / BingChatBot

Bing chat Telegram bot using Python and unofficial EdgeGPT API
Apache License 2.0
54 stars 20 forks source link

BOT_TOKEN ERROR #12

Closed OlegatorKras closed 1 year ago

OlegatorKras commented 1 year ago

How to fix it Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2023.1\plugins\python-ce\helpers\pydev\pydevd.py", line 1496, in _exec pydev_imports.execfile(file, globals, locals) # execute the script ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\JetBrains\PyCharm Community Edition 2023.1\plugins\python-ce\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "C:\Users\krasi\pythonProject121\bing.py", line 17, in print("BOT_TOKEN: " + BOT_TOKEN)


TypeError: can only concatenate str (not "NoneType") to str
pininkara commented 1 year ago

you did not set the environment variable correctly,please search how to set environment variables in PyCharm

pininkara commented 1 year ago

Please fill you digital id like ‘123456,67890’,you can get your digital id by @get_id_bot

pininkara commented 1 year ago

And your bot token is leaked, please delete the issue after your problem is solved

OlegatorKras commented 1 year ago

image )Respect you!

OlegatorKras commented 1 year ago

Respect