1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2025-02-17 10:53:57 +00:00
royalnet/main.py

19 lines
317 B
Python
Raw Normal View History

2016-08-12 15:55:59 +02:00
import asyncio
import discord
client = discord.Client()
@client.event
async def on_ready():
print("Connessione riuscita!")
print(client.user.name)
print(client.user.id)
2016-08-12 16:01:05 +02:00
# Get the discord bot token from "discordtoken.txt"
f = open("discordtoken.txt", "r")
token = f.read()
f.close()
client.run(token)