DaMoo
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
docs/bot_tutorial/building_block_listeners.md
|
|
@ -46,6 +46,6 @@ class MyPlugin(Plugin): |
|
|
|
@Plugin.listen('GuildMemberAdd') |
|
|
|
def on_member_add(self, event): |
|
|
|
self.bot.client.state.channels.get(WELCOME_CHANNEL).send_message( |
|
|
|
'Welcome to the server {}'.format(event.member.user.mention()) |
|
|
|
'Welcome to the server {}'.format(event.member.user.mention) |
|
|
|
) |
|
|
|
``` |
|
|
|