Questions tagged [errbot]

Errbot is a Python chatbot, a daemon that connects to your favorite chat service (Slack, Hipchat, ...) and brings your tools into the conversation. This tag is about any questions regarding its installation, security or issues with the development of new plugins, backends or storage plugins.

errbot logo

Errbot is a Python chatbot, a daemon that connects to your favorite chat service (Slack, Hipchat, ...) and brings your tools into the conversation.

It is extensible in Python. The general user guide is here and the API reference is here

44 questions
6
votes
1 answer

catching classes that do not inherit from BaseException is not allowed

I'm making a custom plugin to query a database for user info to aide customer support. My backend is slack. Everytime I start the bot command I'm greeted with: Computer says nooo. See logs for details: catching classes that do not inherit from…
Dan Garthwaite
  • 3,436
  • 4
  • 22
  • 32
3
votes
0 answers

Errbot: How to properly configure new plugins?

I'm trying to follow the Errbot guide to create a new HelloWorld plugin. However, after my errbot has successfully connected to HipChat, I am unable to see the new plugin that I created. This is the DEBUG output from the console. 16:44:02 INFO …
ecs
  • 31
  • 3
2
votes
1 answer

Unable to create a chatroom using errbot commands, resulting in not_allowed_token_type error

When I call !room create #example-room in slack, i get a response: Computer says nooo. See logs for details: Slack API call to channels.create failed: not_allowed_token_type The Slack API (here: https://api.slack.com/methods/channels.create)…
Trevor Jordy
  • 598
  • 1
  • 7
  • 27
2
votes
1 answer

Formatting Slack messages sent from Errbot

I'm sending a message to slack using subprocess.check_output. The format is a mess, I was thinking about trying markdown == false, but only want it set per module, and am not sure how to do that. I'm not sure if that will solve my issue though, the…
2
votes
1 answer

how can i restore the backup.py plugin data of errbot running in a docker container

I'm running errbot in a docker container, we did the !backup and we have the backup.py, but when i start the docker container it just run /app/venv/bin/run.sh but i cannot pass -r /srv/backup.py to have all my data restored. any ideas? all the data…
sebamontini
  • 360
  • 2
  • 10
2
votes
1 answer

How can I send a command and have Errbot respond to me privately?

I am attempting to use Errbot to create the following workflow: !calculate Errbot then responds to me privately with the answer for number1+number2. I'm not sure how to tell Errbot to respond in a private message, can anyone help assist? Thanks!
user3097421
  • 151
  • 9
1
vote
0 answers

Is it possible to take user input from within an errbot command?

is it possible to take user input when running a command? For example, I want the user to be able to run !hello bot and have the bot ask them a question and the user answer it without calling another ! command. The standard input() python command…
Trevor Jordy
  • 598
  • 1
  • 7
  • 27
1
vote
1 answer

Viewing user responses from slack to errbot

I'm very new to bots. I'd like to develop a quick/simple test that makes it possible for a bot (errbot) to write a message to slack, then view responses back to the bot from users on slack. How do I go about achieving this? Do I need to write a…
user1889776
  • 401
  • 4
  • 13
1
vote
1 answer

Returning data to slack from errbot

I'm trying to get returned powershell output into slack via errbot. The bot is functioning correctly, running the code correctly and the output is being displayed in shell as expected. Can I send that returned data to slack via python code as is or…
1
vote
2 answers

Errbot: getting yapsy error when trying to configure plugins via command line interface

My goal is to utilize puppet to initialize an instance of errbot, as well as pre-configure plugins via a script. I followed their user guide found here: http://errbot.io/en/latest/user_guide/provisioning.html#reading-stored-values However I keep…
Elijah Roberts
  • 128
  • 1
  • 5
1
vote
1 answer

Personalizing API calls in Errbot / How to store and access user specific information in Errbot?

What is the best way to store and access user specific information in Errbot that is accessible to all plugins? My use case is creation of a Redmine (issue tracking) plugin that allows users to create, update, close, assign issues etc. This is…
Avin D'Silva
  • 330
  • 3
  • 9
1
vote
1 answer

Stop processing message after match in Errbot

how I can stop processing message after match? For example something like this: @re_botcmd(pattern=r"(.*)(damn|fuck|stupid)(.*)$", flags=re.IGNORECASE,matchall=True) def be_nice(self, msg, match): yield "Could you be more nice (((?" …
arykalin
  • 393
  • 1
  • 3
  • 11
1
vote
1 answer

Inheritance with BotPlugin

I have several helper methods I'd like to include on all of my plugins (things like manipulating lists in persistent storage or setting up config templates), however it looks like from the docs (and in practice) that plugins must inherit from…
Alex Schokking
  • 656
  • 1
  • 6
  • 13
1
vote
0 answers

LINE.me backend for Errbot?

LINE is a messaging system similar to WhatsApp. Is there anyone already written/writing a backend for Errbot? A Python library to access LINE is located at carpedm20.github.io.
ivan98
  • 69
  • 4
1
vote
0 answers

Errbot plugin won't shut down cleanly

When shutting down the bot from the command line, I need to hit ^C several times because it appears that my event listener thread is not closing properly. Do I need to make changes to the deactivate function? class Icinga2bot(BotPlugin): """ …
Rache
  • 236
  • 2
  • 11
1
2 3