Skip to content

Instantly share code, notes, and snippets.

@yassinelachgar
Last active July 16, 2025 14:35
Show Gist options
  • Save yassinelachgar/3429ec811ea58d132fe309e65e41261b to your computer and use it in GitHub Desktop.
Save yassinelachgar/3429ec811ea58d132fe309e65e41261b to your computer and use it in GitHub Desktop.
ami_webhook_listener.py
import asyncio
from panoramisk import Manager
manager = Manager(loop=asyncio.get_event_loop(),
host='127.0.0.1',
username='webhookuser',
secret='wow')
@manager.register_event('Bridge')
def callback(manager, message):
print(message)
def main():
manager.connect()
try:
manager.loop.run_forever()
except KeyboardInterrupt:
manager.loop.close()
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment