feature(tests): add unit tests

This commit is contained in:
2023-12-14 20:55:17 +00:00
parent d472dae69d
commit d213f1395d
12 changed files with 90 additions and 544 deletions

33
app/main.py Normal file
View File

@ -0,0 +1,33 @@
#!/usr/local/bin/python3
import os
from webex_bot.webex_bot import WebexBot
from app import close, meme
WBX_API_KEY: str = os.environ["WEBEX_API_KEY"]
def create_bot() -> WebexBot:
"""Create a Bot object."""
bot = WebexBot(
teams_bot_token=WBX_API_KEY,
approved_domains=["cisco.com"],
bot_name="MemeBot",
include_demo_commands=False,
)
return bot
def main() -> None:
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()