From e0e9743461afa0ce8b191428228f2385cb863643 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 12 Aug 2016 16:21:14 +0200 Subject: [PATCH] Update client starting --- main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index bcd0de1d..674985d1 100644 --- a/main.py +++ b/main.py @@ -1,9 +1,9 @@ import asyncio import discord - client = discord.Client() +# When the discord client is ready, print something @client.event async def on_ready(): print("Connessione riuscita!") @@ -15,4 +15,5 @@ f = open("discordtoken.txt", "r") token = f.read() f.close() -client.run(token) +# Start discord bot client but ignore events +client.start(token)