mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Make reply example a bit more meaningful.
This commit is contained in:
parent
bcee23b707
commit
7b3f31f25c
@ -6,7 +6,7 @@ client.login('email', 'password')
|
||||
@client.event
|
||||
def on_message(message):
|
||||
if message.content.startswith('!hello'):
|
||||
client.send_message(message.channel, 'Hello was received!')
|
||||
client.send_message(message.channel, 'Hello {}!'.format(message.author.mention()))
|
||||
|
||||
@client.event
|
||||
def on_ready():
|
||||
|
Loading…
x
Reference in New Issue
Block a user