1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Update client starting

This commit is contained in:
Steffo 2016-08-12 16:21:14 +02:00
parent 2b5e35c5c7
commit e0e9743461

View file

@ -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)