We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d284cb5 commit 513c4ffCopy full SHA for 513c4ff
app.py
@@ -17,10 +17,11 @@
17
@app.message(re.compile("(@\d*)"))
18
# @app.message(re.compile("(hi|hello|hey)"))
19
def message_hello(say, context):
20
- number = context['matches'][0].replace('@','')
21
- post_url = url + number
22
- # say() sends a message to the channel where the event was triggered
23
- say(f"The number is {number}. the url is: {post_url}")
+ for match in context['matches']:
+ number = match.replace('@','')
+ post_url = url + number
+ # say() sends a message to the channel where the event was triggered
24
+ say(f"The number is {number}. the url is: {post_url}")
25
26
27
# Run the app
0 commit comments