You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
391 B
16 lines
391 B
import discord
|
|
|
|
client = discord.Client()
|
|
client.login('email', 'password')
|
|
|
|
@client.event
|
|
def on_ready():
|
|
print('Connected!')
|
|
print('Username: ' + client.user.name)
|
|
print('ID: ' + client.user.id)
|
|
|
|
@client.event
|
|
def on_message_delete(message):
|
|
client.send_message(message.channel, '{} has deleted the message:\n{}'.format(message.author.name, message.content))
|
|
|
|
client.run()
|
|
|