-
Notifications
You must be signed in to change notification settings - Fork 3
goodbot: Configuration
The Python Zulip API expects the configuration file to be in the format:
[api]
email=emailaddress@zulipchat.com
key=topsecretapikey
site=https://wikimedia.zulipchat.com
This file is automatically generated in the "Your bots" section on Zulipchat but your system might complain if you try to modify it since the file name starts with a period (.
), as they signify system-generated files. You can use any file name of your choice and pass it to the config_file
argument and create a Zulip Client
like:
self.client = zulip.Client(config_file=config_file)
All the REST API actions are done using this client.
You can also use environment variables to the same effect but goodbot
does not use them, instead preferring to do environment-based configuration behind the scenes.
Copyright (C) 2020 QEDK Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".
- Home
- Building dependencies
- goodbot
- ircbot
- parsebot
- Web app
- Running
- Toolforge
- Style guidelines
- GNU Free Documentation License