Last active
July 16, 2025 14:35
-
-
Save yassinelachgar/3429ec811ea58d132fe309e65e41261b to your computer and use it in GitHub Desktop.
ami_webhook_listener.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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