Skip to main content

Threaded Selenium bot for Zeppy chat automation

Project description

zeppybot

zeppybot is a threaded Selenium helper that automates chatting on Zeppy.

Features

  • wraps Selenium Chrome webdriver with sensible defaults
  • polls public chat, exposes new messages, and lets you override Bot.update()
  • supports optional whisper functionality when running on Windows profiles

Installation

pip install zeppybot

Quick start

from zeppybot import Bot

class HelloBot(Bot):
    def __init__(self,number):
        super().__init__(f"HelloBot {number}","https://zep.us/play/Example",login=True)
    def update(self):
        for chat in self.new_chat:
            if chat.text == "Hello":
                self.public_chat(f"Hello, {chat.name}")
                self.whisper(chat.name,"I'm zeppy bot")
                self.press_key("z")

bot = HelloBot()
bot.start()

Development

  1. Create a virtual environment and install the project in editable mode:
    python -m venv .venv
    source .venv/bin/activate  # Windows: .venv\Scripts\activate
    pip install --upgrade pip
    pip install -e .
    
  2. Install build tooling:
    pip install build twine
    
  3. Build artifacts for distribution:
    python -m build
    
  4. Upload to PyPI (replace with TestPyPI first if needed):
    python -m twine upload dist/*
    

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

zeppybot-0.1.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

zeppybot-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file zeppybot-0.1.0.tar.gz.

File metadata

  • Download URL: zeppybot-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for zeppybot-0.1.0.tar.gz
Algorithm Hash digest
SHA256 beccfdec65f7f5b7b9ce9c1b3b6489d71823d12ae54fcf8ccd913082bb479060
MD5 de4a567431b464baea99098abbe361cc
BLAKE2b-256 f9a519b5f973378986d5963962dd0dc8b441672b10e4f497e3cc5836f81014eb

See more details on using hashes here.

File details

Details for the file zeppybot-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: zeppybot-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for zeppybot-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0b9e067b811017d211691343f36e0b11913b09a5ecfb2ddbfeb271fefdfb94de
MD5 470c2f8a3c763df933950524c22277b0
BLAKE2b-256 fb83b57f6c481943b264ffcad6ee46d29bec25f2415be9fa38f34cd56585952e

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