If you have a coding question, you can use stackoverflow with the tag 'errbot' and 'python'
sijis on master
Update README.md with new URL (… (compare)
errbot | 2022-06-29 14:57:08,698 ERROR slack_sdk.socket_mode.builtin.client Failed to run a request listener: 'event'
errbot | Traceback (most recent call last):
errbot | File "/usr/local/lib/python3.8/site-packages/slack_sdk/socket_mode/client.py", line 143, in run_message_listeners
errbot | listener(self, request) # type: ignore
errbot | File "/home/errbot/backends/slackv3/slackv3.py", line 377, in _sm_generic_event_handler
errbot | self._generic_wrapper(req.payload)
errbot | File "/home/errbot/backends/slackv3/slackv3.py", line 357, in _generic_wrapper
errbot | event = event_data["event"]
errbot | KeyError: 'event'
.command opt1
super()
but that's all I've got for now.
super().activate
in your pagerduty_activate()
method because activate()
would have already been called when the plugin loaded. The only time you would want to do the super().activate()
is if you were overriding activate
with your own implementation, for example, if you wanted to call your_method
every 60 seconds and wanted to start this as soon as the plugin was started.def activate(self):
super().activate()
self.start_poller(60, self.your_method, 1)
I haven't looked at your example, but I can say the core plugin that checks for latest version uses a poller.
https://github.com/errbotio/errbot/blob/master/errbot/core_plugins/vcheck.py
pkg_resources
over importlib.resources
? I'm looking at the docs and came across a passage the talks about importlib.resources
being added in py3.7 and how to migrate to it from pkg_resources
.
I got some importlib code to work but it breaks on py 3.7 :(.
There's less than 1 yr support on 3.7. I m considering dropping support and not worry on a py version try/except code