mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-24 03:54: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 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)
|
||||||
|
|
Loading…
Reference in a new issue