$ pip install discord_simple --upgrade
import discord_simple
bot=None
def on_connect(user):
print("connected as "+user)
def on_message(message):
print("message from {}: {}".format(message.author,message.content))
bot = discord_simple.Bot("your token",on_connect=on_connect,on_message=on_message)
bot.forever_loop()
id
avatar
username
discriminator
author
: Usercontent
: Message texttimestamp
send_message('username#discriminator','message')