-
Notifications
You must be signed in to change notification settings - Fork 3
goodbot: Real time events
The bot relies on the real-time events endpoint of the Zulip REST API, the most important of which is the call_on_each_message()
function.
This endpoint allows us to process each message in real-time the way we want to.
goodbot.py
instantiates a Zulip client
inside the goodbot
object with:
bot = goodbot(config_file="~/zuliprc")
We can then use the real-time events queue to process each message with our defined bot.process()
function:
bot.client.call_on_each_message(bot.process)
Copyright (C) 2020 QEDK Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".
- Home
- Building dependencies
- goodbot
- ircbot
- parsebot
- Web app
- Running
- Toolforge
- Style guidelines
- GNU Free Documentation License