tepha

Part of Webex Teams SDK and implementation of WebSocket protocol for the Webex bot

Tepha

Two environment variables are needed:

  • INSTANCE_URL (which can be anything unique for each bot instance)
  • WEBEX_TEAMS_ACCESS_TOKEN (which is an access token for the bot)

Usage

require "tepha"

session = Tepha::Session.new

client =
  Tepha::Client.new(
    name: "Untitled", # Name of your bot.
    session: session,
    commands: [
      Tepha::Commands::Echo.new,
    ] of Tepha::Command
  )

client.run

Go to your Webex chat and text the bot echo Hello, World!, it will reply Hello, World!.

Repository

tepha

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 2
  • over 2 years ago
  • January 17, 2022
License

MIT License

Links
Synced at

Sat, 18 May 2024 05:02:36 GMT

Languages