Skip to main content

Python SDK to make bots for Wokki Chat

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Wokki Chat SDK

Python SDK to make bots for Wokki Chat easily and asynchronously.
This library lets you create bots that can send and receive messages, respond to events, and interact with the Wokki Chat platform programmatically.

Features

  • Connect to Wokki Chat using WebSockets.
  • Send and receive messages in real-time.
  • Async-friendly, built on Python asyncio.
  • Easy integration into Python projects.
  • Designed to simplify bot creation for developers.

Installation

Install via pip:

pip install wokki-chat-sdk

Quick Start

import dotenv, os
from wokkichat import Bot, ctx

dotenv.load_dotenv()
bot = Bot(os.environ["TOKEN"])

@bot.command()
async def echo(c: ctx, text: str):
    await c.reply(f"Echoed: {text}")

bot.connect()

With just a few lines, your bot can respond to commands like echo on Wokki Chat.

Creating a Bot

Before using the SDK, you need to create a bot on Wokki Chat:

  1. Go to Wokki Chat Developer Bots.
  2. Log in if prompted.
  3. Click the Create New Bot button.
  4. Enter a name for your bot and optionally choose an icon.
  5. After creation, click the Copy Token button to get your bot token.
  6. Save this token - you’ll use it in your code as the bot’s authentication token.

License

This project is licensed under the Apache-2.0 License. See the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wokki_chat_sdk-1.0.0.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wokki_chat_sdk-1.0.0-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file wokki_chat_sdk-1.0.0.tar.gz.

File metadata

  • Download URL: wokki_chat_sdk-1.0.0.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for wokki_chat_sdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9b82a353ba8dcfc1dc055f0384d7a60585804893b8b751b8db367a5bb67ec513
MD5 5c787ee6ff3099b4a4fdd7560c4eafaa
BLAKE2b-256 a4bc8ff3b0d479e90d9bfa6c24359fe4c19b41dac7720244136d66c532a0a020

See more details on using hashes here.

File details

Details for the file wokki_chat_sdk-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: wokki_chat_sdk-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for wokki_chat_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e521c51b96c628b84c8b7448378b5a8e2e8e04e6c409e928ca496bd2194849e8
MD5 f8af396d4d75aa0e0eca84474cbbfb4c
BLAKE2b-256 d2e510533d248aed68ba1f4e540433d5e5a0856cc79a08d6965e92a266efcd71

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page