Skip to content

Instantly share code, notes, and snippets.

@jacobtomlinson
Created November 17, 2018 09:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jacobtomlinson/f55c536c42671799815793e89893ca1d to your computer and use it in GitHub Desktop.
Save jacobtomlinson/f55c536c42671799815793e89893ca1d to your computer and use it in GitHub Desktop.
wave react
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"from opsdroid.matchers import match_regex"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"@match_regex(r'hello', case_sensitive=False)\n",
"async def wave(opsdroid, config, message):\n",
" await message.react('👋')"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python [default]",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.3"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment