omnibot package

Subpackages

Submodules

omnibot.app module

omnibot.processor module

Core processing logic.

omnibot.processor._handle_action(action, container, kwargs)
omnibot.processor._handle_callback(container, callback)
omnibot.processor._handle_help(message)
omnibot.processor._handle_interactive_component_callback(component, callback, response_type)
omnibot.processor._handle_message_callback(message: BaseMessage, callback: Mapping[str, Any])
omnibot.processor._handle_post_message(message: BaseMessage, kwargs)
omnibot.processor._handle_slash_command_callback(command, callback, response_type)
omnibot.processor._is_message_from_bot(bot: Bot, channel: str, ts: str)

Some events, like reactions, do not have all the ids we need to determine who wrote the message.

omnibot.processor._process_interactive_component(component)
omnibot.processor._process_message_event(bot, event_info, event_trace, event_type)

Process message or app_mention events.

omnibot.processor._process_message_message_handlers(message: Message)
omnibot.processor._process_reaction_event(bot, event_info, event_trace, event_type)

Process reaction_added or reaction_removed events.

omnibot.processor._process_reaction_message_handlers(reaction: Reaction)
omnibot.processor._process_slash_command_handlers(command)
omnibot.processor._should_handle_command(handler, message)
omnibot.processor.parse_kwargs(kwargs, bot, event_trace=None)
omnibot.processor.process_event(event)

Dispatcher for slack api events.

omnibot.processor.process_interactive_component(component)

Dispatcher for slack interactive components

omnibot.processor.process_slash_command(command)

Dispatcher for slack slash commands.

omnibot.settings module

omnibot.settings.get(name, default=None)

Get the value of a variable in the settings module scope.

omnibot.settings.parse_allowed_bot_messages(config)

omnibot.setup_logging module

omnibot.watcher module

omnibot.watcher._is_allowed_to_run(redis_client, key)
omnibot.watcher.bootstrap()
omnibot.watcher.main()
omnibot.watcher.watch_conversations()
omnibot.watcher.watch_emoji()
omnibot.watcher.watch_users()

omnibot.webhook_worker module

omnibot.webhook_worker._instrument_message_latency(event)
omnibot.webhook_worker.delete_message(client, queue_url, message)
omnibot.webhook_worker.handle_message(client, queue_url, message)
omnibot.webhook_worker.handle_messages(client, queue_url, queue_pool)
omnibot.webhook_worker.main()
omnibot.webhook_worker.wait_available(pool, pool_name)

omnibot.wsgi module

Module contents