File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ The `event()` method requires an `eventType` of type `str`.
1717# When a user joins the team, send a message in a predefined channel asking them to introduce themselves
1818@app.event (" team_join" )
1919def ask_for_introduction (event , say ):
20- welcome_channel_id = " C12345" ;
21- user_id = event[" user" ][ " id " ]
20+ welcome_channel_id = " C12345"
21+ user_id = event[" user" ]
2222 text = f " Welcome to the team, <@ { user_id} >! 🎉 You can introduce yourself in this channel. "
2323 say(text = text, channel = welcome_channel_id)
2424```
@@ -46,5 +46,4 @@ def log_message_change(logger, event):
4646 user, text = event[" user" ], event[" text" ]
4747 logger.info(f " The user { user} changed the message to { text} " )
4848```
49-
5049</details >
You can’t perform that action at this time.
0 commit comments