brettstimmerman / jabber-bot Goto Github PK
View Code? Open in Web Editor NEWEasily create simple regex powered Jabber bots.
License: BSD 3-Clause "New" or "Revised" License
Easily create simple regex powered Jabber bots.
License: BSD 3-Clause "New" or "Revised" License
Hi,
I use jabber-bot to (basically) execute some shell commands, and return the output to the user.
The output sometimes contains bash color codes, and when I try to return this output, the jabber-bot goes offline without any error message, but the script still running (and doing nothing).
That error was really hard to find out.
For now I solved it (for my case) by a
output.gsub(/\x1b\[.{1,5}m/, '').gsub(/\x1b\[K/, '');
Before returning the command output.
To help others to not get into the same problem, maybe jabber-bot should "disarm" strings sent back to the server (or at least raise an exception when it fails).
Program using jabber-bot gem will cause 100% CPU usage by ruby interpreter in case one of the masters' jid is on the server which is currently unavailable due to network conditions.
Hi, this is not really an issue but more me being a newbie, but I can't find any ressources, I've never heard of ruby gems in the past, I'm documenting myself but I'm no dev.
Could you help me understand how to install and get this bot to work ? I've installed rubygems (I'm under devuan jessie GNU/Linux) and also I found jabber::simple (aka xmpp4-something) and git cloned the two repositories, I then tried a lot of ruby commands:
ruby build
ruby rake
...
but I just don't get it. What do I need to do to build from the sources ?
Thanks in advance for any help.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.