Skip to content

Instantly share code, notes, and snippets.

@jacobtomlinson
Created July 18, 2018 19:27
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/c9852fa17d3463acc14dca1217d911f6 to your computer and use it in GitHub Desktop.
Save jacobtomlinson/c9852fa17d3463acc14dca1217d911f6 to your computer and use it in GitHub Desktop.
An ipynb opsdroid skill for testing with
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from opsdroid.matchers import match_regex"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"@match_regex(r'ping')\n",
"async def ping(opsdroid, config, message):\n",
" await message.respond('pong')"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"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.5"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment