43 questions
0
votes
1
answer
80
views
How to install Errbot in Google App Engine
I'm trying to deploy Errbot in App Engine. Errbot needs the data directory to be writable but an App Engine instance's local filesystem is not writable. Is there any way to work around this?
0
votes
1
answer
232
views
Errbot Natural Language Processing
I would like to add some basic Natural Language Processing or Natural Language understanding into a bot I have implemented with the errbot library. This is to add in basic conversation to the bot. So ...
0
votes
1
answer
102
views
What config option allows bot to respond to commands posted by itself?
If I have en external process post a message as bot, let's say !help how can make Errbot respond to it? Currently it ignores messages coming from errbot itself. I could not find a configuration option ...
0
votes
2
answers
133
views
How can a rung a command from an err-bot plugin from another err-bot plugin?
How can a rung a command from an err-bot plugin from another err-bot plugin?
run the "!dosomething" from another plugin on some type of scheduler.
1
vote
0
answers
245
views
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 !...
0
votes
2
answers
318
views
How to ignore specific messages or users in errbot?
I use current config with IRC freenode server:
BOT_PREFIX = '@'
BOT_PREFIX_OPTIONAL_ON_CHAT = True
BOT_ALT_PREFIXES = ('Err', "bot", "mybot", "botka", "errbot")
BOT_ALT_PREFIX_SEPARATORS = (':', ',', ...
2
votes
1
answer
489
views
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: ...
0
votes
0
answers
200
views
How to configure properly unit testing with Errbot?
I tried to follow this guide http://errbot.io/en/latest/user_guide/plugin_development/testing.html
I installed pytest and launch it with
pytest --rootdir='./srv/plugins'
but I have this following ...
0
votes
1
answer
253
views
How to set the configuration of a plugin correctly in Errbot?
I try to follow the sample given by the documentation:
9.1. Plugin configuration through the built-in !config command
However, I do not manage in getting back the configuration of the plugin which ...
0
votes
1
answer
102
views
Passing input into Curl command inside python3
I'm currently working with errbot, but i'm having trouble with allowing users to enter a message to be passed along with the curl command. my plugin looks as follows:
@arg_botcmd('team_key', type=str)...
0
votes
1
answer
260
views
How to add a Slack reaction to a send_card
I have an Errbot function that sends a Slack card. How do I then add a reaction to the card instead of the original message(msg) that was received?
@botcmd
def example(self, msg):
self.send_card(...
0
votes
0
answers
83
views
How to tell admins (or others?) when connected
I'm using errbot running in a docker container, and would like it to announce when a new version has been deployed. One of my plugins implements some custom commands for health checks, so I ...
0
votes
1
answer
147
views
How to patch (mocking) tests with Errbot?
I'm trying to patch dependencies with my errbot tests. The problem I'm having is how errbot imports modules. It is not static and breaks my patch decorators as I add tests or they test in a different ...
0
votes
1
answer
82
views
Using specific features of some backends in ErrBot
I'm using the telegram backend for ErrBot.
I know that telegram API allows for messages to use markdown and html. If I understand everything well, I could change:
self.telegram.sendMessage(msg.to.id,...
0
votes
1
answer
149
views
Not able to connect to Hipchat with errbot ? getting permission denied for socket .
While connect error bot with self hosted . Getting this error while doing it -
10:40:34 DEBUG sleekxmpp.xmlstream.xmlst RECV: <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
10:40:34 ...
6
votes
1
answer
21k
views
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 ...
0
votes
2
answers
304
views
Configuring errbot presence in HipChat
I'm trying to use Errbot with HipChat server (not cloud). It looks like Errbot is confused between a room name and its xmpp jid. For example, testing with room named BotTest that has jid of 1_bottest@...
-1
votes
2
answers
174
views
Errbot Dynamic Regex
I will generate the regex from a file or something and need it in the @re_botcmd
but i get the error: "not defined" is there a way do define a variable that re_botcmd is finding?
from errbot ...
0
votes
2
answers
304
views
errbot: scripted plugin installation for docker?
I have a Dockerfile to run errbot, looking for a way to script plugin installation. The documentation only seems to list the manual !repos install ... method.
Is there any way for automatic plugin ...
1
vote
1
answer
250
views
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 ...
3
votes
0
answers
1k
views
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 ...
0
votes
1
answer
796
views
Passing multiple arguments from slack to errbot
I'd like to pass multiple arguments like so:
@bot test vpn PeerIP: x.x.x.x, optional arguments: Peersubnet y.y.y.y ClCSubnet z.z.z.z
Right now when passing multiple arguments I get the error:
...
2
votes
1
answer
1k
views
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 ...
1
vote
1
answer
200
views
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 ...
1
vote
2
answers
594
views
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/...
0
votes
1
answer
814
views
Disable errbot cert verification
I'm having hard time trying to connect errbot to dev HipChat server because of invalid ssl cert.
log:
21:16:01 DEBUG sleekxmpp.xmlstream.xmlst Event triggered: ssl_cert
21:16:01 ERROR ...
0
votes
2
answers
149
views
How to mock a helper method for errbot
I'm trying to complete my unit tests for the errbot plugin I am writing. Can anyone tell me how to mock out a helper method which is used by a botcmd method?
Example:
class ChatBot(BotPlugin):
@...
0
votes
1
answer
90
views
errbot error with help command
So I just installed Errbot.
I run it and get this when running !help
>>> !help
Computer says nooo. See logs for details:
'ascii' codec can't encode character '\u2022' in position 75: ...
1
vote
1
answer
237
views
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 ...
1
vote
1
answer
122
views
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, ...
0
votes
2
answers
208
views
Slack chatPostMessage fails
I'm trying to send a message from a Plugin by calling directly to the bot
self._bot.sc.api_call('chat.postMessage', data={
'channel': "#general",
'text': "test msg",
'unfurl_media': 'true',...
1
vote
1
answer
96
views
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 ...
0
votes
1
answer
115
views
Yield from dependency plugin?
I want to make parser plugin, which will translate free form messages to the bot commands and run them from other plugins.
Let's say I have PluginA and PluginB which depends on PluginA. On PluginA I ...
0
votes
3
answers
112
views
Slack backend: is it possible to detect an edit?
Our errbot is providing links to JIRA tickets when it sees the right ticket patterns. Unfortunately, in slack it is common for users to edit their posts, and if both edits contain the JIRA ticket ...
1
vote
0
answers
110
views
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.
1
vote
0
answers
132
views
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 ...
0
votes
1
answer
843
views
When I try to do errbot after errbot --init, I get the following error?
I can get errbot terminal as >>>. I am using python 3.5 and virtual enviroment is activated.
I am building a chatops bot for telegram. I was working on other device where errbot was fine but I can't ...
1
vote
1
answer
2k
views
Python 3.5 OpenSSL error
SO I am was working with errbot and fired up a virtualenv with python3.5. When I run the errbot command I get this error
from OpenSSL import crypto
File "/Users/me/workspace/chatbotv2/...
0
votes
1
answer
147
views
Errbot: How can I import one plugin from another
In this case I have a simple JIRA plugin, I'd like to create another plugin that also interacts with JIRA via the first plugin. I have been trying variations of errbot.plugin_manager....
1
vote
1
answer
489
views
Errbot: How can I access config file variables
I see the way it's done in cli.py but it's not set up as a utility for plugin code to make use of.
From http://errbot.io/en/latest/user_guide/plugin_development/configuration.html :
Errbot can keep ...
2
votes
1
answer
94
views
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 ...
2
votes
1
answer
246
views
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 ...
0
votes
1
answer
172
views
errbot does not return "Hello World" when I type !hello
Also when I type !status, Helloworld is not in the list as A (Active). I do not think it is reading my plugin. Any suggestions?
# code for helloworldld.py
from errbot import BotPlugin, botcmd
...