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

20 lines
415 B
Python
Raw Normal View History

2016-08-12 13:55:59 +00:00
import asyncio
import discord
client = discord.Client()
2016-08-12 14:21:14 +00:00
# When the discord client is ready, print something
2016-08-12 13:55:59 +00:00
@client.event
async def on_ready():
print("Connessione riuscita!")
print(client.user.name)
print(client.user.id)
2016-08-12 14:01:05 +00:00
# Get the discord bot token from "discordtoken.txt"
f = open("discordtoken.txt", "r")
token = f.read()
f.close()
2016-08-12 14:21:14 +00:00
# Start discord bot client but ignore events
client.start(token)