From fbd629a459ab08d364afb570f2308fd33ac283d7 Mon Sep 17 00:00:00 2001 From: Alex Orid Date: Fri, 2 Oct 2020 03:03:45 -0400 Subject: [PATCH] Successful Connection Was finally able to connect thanks to a thread. (Certificate Issue) Good Certificate found on: https://crt.sh/?id=2835394 Thread: https://github.com/Rapptz/discord.py/issues/4159 (Also fixed the requirements file) --- discord_script.py | 3 +++ requirements.txt | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/discord_script.py b/discord_script.py index 2dc66b9..c170520 100644 --- a/discord_script.py +++ b/discord_script.py @@ -20,6 +20,9 @@ class Discord_Module(discord.Client): def main(self): self.run(self.discordCredential.token) + async def on_ready(self): + print('Logged on as', self.user) + if __name__ == "__main__": diff --git a/requirements.txt b/requirements.txt index 825bdb0..b90342e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,4 +6,4 @@ pandas numpy gTTS playsound -discord \ No newline at end of file +discord.py \ No newline at end of file