webexmemebot/app/main.py
Luke Tainton 6abb3b871b
Some checks failed
Enforce Conventional Commit PR Title / Validate PR Title (pull_request_target) Successful in 7s
CI / ci (pull_request) Failing after 42s
fix(lint): Fix linting issues
2025-06-06 18:31:41 +01:00

34 lines
762 B
Python

#!/usr/local/bin/python3
"""Main entry point for the Webex Bot application."""
from webex_bot.webex_bot import WebexBot
from app import close, meme
from app.config import config
def create_bot() -> WebexBot:
"""Create a Bot object."""
bot = WebexBot(
teams_bot_token=config.webex_token,
approved_domains=["cisco.com"],
bot_name="MemeBot",
include_demo_commands=False,
)
return bot
def main() -> None:
"""Main function to run the Webex Bot."""
bot: WebexBot = create_bot()
bot.add_command(meme.MakeMemeCommand())
bot.add_command(close.ExitCommand())
bot.commands.remove(bot.help_command)
bot.help_command = meme.MakeMemeCommand()
bot.run()
if __name__ == "__main__":
main()