-
Notifications
You must be signed in to change notification settings - Fork 0
Administration
In order to administrate the bot, you need to add you JID to the config.py as Bot Administrator:
config.py
# [...]
BOT_ADMINS = ('gbin@somewhere.com',)
# [...]
Note : for hipchat you will need to find you real JID like :
# [...]
BOT_ADMINS = ('14748_54169@chat.hipchat.com',)
# [...]
It is a list so you can elect several persons to be admin i.e
BOT_ADMINS = ('14748_54169@chat.hipchat.com','23423_25673@chat.hipchat.com')
Invite the bot in your roster, it should accept you instantly. then you can start to query the bot with for example !status that will give you the list of active plugins.
I am alive with those plugins :
ChatRoom
PollBot
A repo is a package that contains one or several plugins. it is referenced by an url pointing to the update location. You can get the list of repos with !repos
Current plugins repos :
err-pollbot -> git@github.com:gbin/err-pollbot.git
You can install a repo by specifying for example a git url to the command !install like :
!install git@github.com:gbin/err-weatherbot.git
The bot will answer something like :
A new plugin repository named err-weatherbot has been installed correctly from
git@github.com:gbin/err-weatherbot.git. Refreshing the plugins commands...
Plugin reload done.
You can then check if the repo is correctly set with !repos again :
Current plugins repos :
err-weatherbot -> git@github.com:gbin/err-weatherbot.git
err-pollbot -> git@github.com:gbin/err-pollbot.git
You can check the plugins installed with !status :
I am alive with those plugins :
ChatRoom
PollBot
WeatherBot
Now the new command should appear in !help.
Just !uninstall and the name of the repo as given by !repos. (be careful: I talk about repos, not plugin names !)
!uninstall err-weatherbot
The command !upgrade can upgrade either the core, specific plugins or everything at the same. I will use git to update and restart if necessary.
You can use !unload to unload (disable without uninstalling) a plugin The reverse command is !load. Be careful those commands take a plugin symbolic name as parameter.