-
Notifications
You must be signed in to change notification settings - Fork 3
ircbot: Configuration
The ircbot.py
script expects the configuration file to be in the format:
[api]
email=emailaddress@zulipchat.com
key=topsecretapikey
site=https://wikimedia.zulipchat.com
[irc]
server=irc.freenode.net
nickname=ircnick
channel=#ircchannel
nickserv_password=yourtopsecretpassword
stream=zulipstreamtobridge
topic=topicofstreamtobridge
This first section of the file ([api]
) 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. The second section you have to create manually for the bot, but it's combined into one file to make handling much easier. You can use any file name of your choice and pass it to the config_file
argument and create an IRCBot
object like:
ircbot = IRCBot(config_file="~/ircbot")
There's no more configuration required and once the script is run, the bot should run seamlessly.
You can also use environment variables to the same effect but ircbot
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