Skip to content

Running botserver for local development #12669

@arthurpankiewicz

Description

@arthurpankiewicz

I'm trying to setup an environment where I'm able to run a bot locally for either

  • zulip development(vagrant)
  • zulip produciton

My current workaround was pulling the zulip python-zulip-api, placing my bot in there, and using either the zulip-run-bot <bot> command or interacting via the zulip-terminal

I'd like to manage my bot separately in my git, without the need for all the extra bots/files found in python-zulip-api

Following the instrucitons here I've installed the zulip-botserver package, and my current project directory looks like:

zulip-mybot
  - readme.md
  - zulip_bots
    - bots
       - mybot

I have a production version of zulip running with an organization where I created a bot and downloaded it's zuliprc

When I run (from within zulip-mybot directory):

zulip-botserver --config-file /path/to/zuliprc

I receive the error: "Error: Bot "mybot" doesn't exist. Please make sure you have set up the botserverrc file correctly."

My zuliprc file looks like:

[mybot]
[email protected]
key=KEY
site=https://ORGNAME.zulipchat.com
token=TOKEN

I'm not even sure if this is the correct way to run for local dev/testing, but the goal is to not have to develop within the python-zulip-api and copy and paste working code to my git directory.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions