-
Notifications
You must be signed in to change notification settings - Fork 0
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
Problems with discord authentication #3
Comments
Please make sure you are setting your Bot's Token correctly. You need the Bot Token, not the Client Secret! It's easy to confuse the two. Go to the Discord Developer Portal, create an application there or select the one you already created. Then, on the right, you will have a tab that says "Bot". Make sure you have a Bot, and if not, click Add Bot. That will create a Discord Bot account. There, you will find a field that says TOKEN. You copy that, and you paste it into your config. Please confirm you're not mistaking it for the client secret, which is found here: |
I added better clarity for the issue in the logs, in commit dde2fae. Please update (redownload or pull the repo), and try again. Please also paste the correct log (file "bot.log", not "logger.py"), so I can better understand the problem :) |
and here is the log: |
This seems to be an issue outside of my control, either with the SSL certificates that are included with your version of Windows or Python. See Rapptz/discord.py#4159 (comment) and try following those instructions, or the other ones in that issue. |
Bot has a problem when connecting to discord here is a screenshot.
it says it has problems with the token for some reason.
here the log file:
import logging
loglevel = 20
def setlevel(level):
global loglevel
loglevel = int(level)
def log(msg, level="info"):
if level == "debug" and loglevel <= 10:
print("[DEBUG] " + msg,flush=True)
logging.debug(msg)
elif level == "info" and loglevel <= 20:
print("[INFO] " + msg,flush=True)
logging.info(msg)
elif level == "warning" and loglevel <= 30:
print("[WARNING] " + msg,flush=True)
logging.warning(msg)
elif level == "error" and loglevel <= 40:
print("[ERROR] " + msg,flush=True)
logging.error(msg)
elif level == "critical" and loglevel <= 50:
print("[CRITICAL] " + msg,flush=True)
logging.critical(msg)
The text was updated successfully, but these errors were encountered: