getenv ( "TEAMS_BOT_URL" ) bot_app_name = os. getenv ( "TEAMS_BOT_TOKEN" ) bot_url = os. getenv ( "TEAMS_BOT_EMAIL" ) teams_token = os. import os from webexteamsbot import TeamsBot # Retrieve required details from environment variables bot_email = os. export TEAMS_BOT_URL=Ī basic bot requires very little code to get going. Note: See ngrok for details on setting up an easy HTTP tunnel for development. The easiest way to use this module is to set a few environment variables Python 2.7 should also work.Ĭreate a virtualenv and install the module python3.6 -m venv venv On the Congratulations screen, make sure to copy the Bot's Access Token, you will need this in a second. You'll need to set a name, username, icon (either upload one or choose a sample), and provide a description. You'll need to start by adding your bot to the Webex Teams website.įill out all the details about your bot. If you don't already have a Webex Teams account, go ahead and register for one. If you've used ciscosparkbot you will find this package very similar and familiar. This version will both move to new Webex Teams branding as well as add new functionality. This package is based on the previous ciscosparkbot project. This package makes creating Webex Teams bots in Python super simple.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |