portertech / carrier-pigeon Goto Github PK
View Code? Open in Web Editor NEWThe simplest library to say something on IRC.
License: MIT License
The simplest library to say something on IRC.
License: MIT License
If anything goes wrong with the protocol negotiation at https://github.com/portertech/carrier-pigeon/blob/master/lib/carrier-pigeon.rb#L25 then this loop never quits. And it won't even display debugging output.
The only way I was able to debug a simple configuration error was by hacking the gem and putting a puts statement here. Yuck.
I have a private irc server (inspircd) that I can't seem to get cp to hit. I can send to our freenode room without issue but when pointed to our internal server, I invoke it and it pauses briefly before returning with no output.
Here's my test script:
require 'rubygems'
require 'carrier-pigeon'
irc_uri = "irc://testbot:[email protected]:6667/#private"
message = "testing"
CarrierPigeon.send(
:uri => irc_uri,
:message => message,
:ssl => true,
:join => true
)
I've changed most of the details above but our password does have the !$ characters in it. Not sure if this could cause issues.
(This is totally not your fault - it's because Ruby 1.8.5 sucks - I thought it was important to note here in case someone else stumbled across it).
On Ruby 1.8.5 the `instance_variable_defined?' method does not exist and addressable/uri uses this method. Hence on Ruby 1.8.5 you get:
undefined method `instance_variable_defined?' for #<Addressable::URI:0xb6c9cdfc>
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.