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:
parent
2b5e35c5c7
commit
e0e9743461
1 changed files with 3 additions and 2 deletions
5
main.py
5
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)
|
||||
|
|
Loading…
Reference in a new issue