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 asyncio
import discord import discord
client = discord.Client() client = discord.Client()
# When the discord client is ready, print something
@client.event @client.event
async def on_ready(): async def on_ready():
print("Connessione riuscita!") print("Connessione riuscita!")
@ -15,4 +15,5 @@ f = open("discordtoken.txt", "r")
token = f.read() token = f.read()
f.close() f.close()
client.run(token) # Start discord bot client but ignore events
client.start(token)