dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.0.11
Azure has quit [Read error: Connection reset by peer]
Azure has joined #cinch
nOgAnOo has quit [Remote host closed the connection]
nOgAnOo has joined #cinch
<CM-Punk> How do you supply a background and a foreground color to a formatting string? I understand what it says about what happens IF you supply two, but how do I supply two?
<CM-Punk> XD
<catepillar> you do Format twice
<CM-Punk> Okay
<CM-Punk> :D
<CM-Punk> catepillar I may be doing it wrong, but it's not working, can you show me an example?
Spami has joined #cinch
Spami has quit [Client Quit]
kith_ has joined #cinch
<dominikh> you don't do format twice, you pass two colours to it.
kludge` has quit [Disconnected by services]
<dominikh> Format(fg, bg, text)
kludge` has joined #cinch
Azure_ has joined #cinch
Azure has quit [Disconnected by services]
Azure_ is now known as Azure
newton has quit [*.net *.split]
catepillar has quit [*.net *.split]
kith has quit [*.net *.split]
Rickmasta has quit [*.net *.split]
Rennex has quit [*.net *.split]
catepillar has joined #cinch
Rennex has joined #cinch
Rickmasta has joined #cinch
<CM-Punk> Is that with or without a leading "
<CM-Punk> dominikh ^
Spami has joined #cinch
newton has joined #cinch
Spami has quit [Quit: This computer has gone to sleep]
kith_ is now known as kith
kludge` has quit [Ping timeout: 265 seconds]
kludge` has joined #cinch
Dunke|Work has joined #cinch
<CM-Punk> http://pastebin.com/25bK8Nww how the hell do I strip the html tags from "comment" ?
<Netfeed> use something like nokogiri
<CM-Punk> Hmm okay
postmodern has quit [Quit: Leaving]
kludge` has quit [Ping timeout: 246 seconds]
kludge` has joined #cinch
xeviox|afk is now known as xeviox
awkisopen has joined #cinch
awkisopen has quit [Changing host]
awkisopen has joined #cinch
23LAA3PEH is now known as krisbulman
Dunke|Work is now known as Dunke|m
Spami has joined #cinch
v0n has joined #cinch
FiXato|VPS has quit [Quit: Quit my IRC client. I'll probably be back soon after a restart of it.]
FiXato has joined #cinch
FiXato is now known as Guest5584
Guest5584 is now known as FiXato
Zackio has joined #cinch
Dunke|m is now known as Dunke
<leftylink> let's say that some users request that my bot notice them instead of msg
<leftylink> now, I already have a lot of Message#reply and User#send in my code and I'd like to keep those intact
<catepillar> you should use notices
<catepillar> don't think about monkey patching
<leftylink> oh hey, Target#msg has a notice arg
<leftylink> Message#reply will need work though
<leftylink> okay well... here is the result
<Cinchy> [gist] gist:8808230 (at gist.github.com, leftylink on 2014-02-04 17:19)
<leftylink> I kind of dislike the global variable so if anyone has ideas on whether there is even an alternative, that is welcome
<leftylink> and that was written in such a way as to make notice the default. privmsg can easily be the default as well simply by invertig the logic
Spami has quit [Quit: This computer has gone to sleep]
Netfeed has quit [Read error: Operation timed out]
nickrw has quit [Read error: Operation timed out]
xeviox has quit [Read error: Operation timed out]
netfeed1 has joined #cinch
nickrw has joined #cinch
xeviox has joined #cinch
FiXato has quit [Excess Flood]
FiXato has joined #cinch
FiXato is now known as Guest26978
krisbulman is now known as krisbulman|otp
timelord_cout is now known as cout
v0n has quit [Ping timeout: 250 seconds]
v0n has joined #cinch
DonovanYoung has quit [Quit: WeeChat 0.4.1]
xeviox is now known as xeviox|afk
krisbulman|otp is now known as krisbulman
krisbulman is now known as [krisbulman]
postmodern has joined #cinch
acetoxy has joined #cinch
acetoxy has left #cinch [#cinch]
<onewheelskyward> So, if I wanted my bot to query another bot and handle the response from it, would the best method be to monitor them, post the request, and then have the monitor pick up where the request left off?
<CM-Punk> Like a botnet?
<onewheelskyward> Not exactly.
<onewheelskyward> For a weather command, there are certain users for which I can query another bot that is aware of their location.
<onewheelskyward> So I get that response back, and pass the gps coords into the weather system.
<CM-Punk> Well onewheelskyward
<CM-Punk> It's funny you mention that
<CM-Punk> Because I'm KINDA trying to work on the same thing
<onewheelskyward> Cool! What's your thinking on it so far?
<onewheelskyward> I was hoping to create a blocking thread, but that doesn't seem workable.
<CM-Punk> Wouldn't it be easier to store and parse all that data within your bot?
<onewheelskyward> Well, ideally I'd have a web api to hit. :)
<CM-Punk> Wunderground?
<CM-Punk> I'm going to try to handle custom weather data within my weather plugin without the use of a secondary bot, store people's locations using redis or yaml
<onewheelskyward> forecast.io
<onewheelskyward> They have a great api.
<CM-Punk> Oh do they?
<onewheelskyward> !asciitemp 97206
<skybotalpha> Portland, OR 97206, USA temps: now 1.83°C |'''''***••••---.._..-•••| -1.89°C this hour tomorrow. Range: -6.11°C-1.94°C
<CM-Punk> Is it JSON?
<onewheelskyward> yep.
<CM-Punk> I see a bunch of question marks in the middle there
<CM-Punk> Maybe it's my charset
<onewheelskyward> Must be the degree symbol?
<onewheelskyward> 1.83?C?
<CM-Punk> |'''''***����---.._..-���|
<CM-Punk> That
<onewheelskyward> oh heh weird
Keli has joined #cinch
<onewheelskyward> My dashes must not be dashes after all
<onewheelskyward> I'll check it.
<CM-Punk> ~forcast Detroit, Michigan
<CM-Punk> ~forecast Detroit, Michigan
<Keli> Forecast for: Detroit, MI, US | Latitude: 42.34453201, Longitude: -83.05988312 | Weather is Overcast, 23.0 F (-5.0 C) (RealFeel: 23 F (-5 C)) | UV: 0, Humidity: 67% | Wind: From the East at 1.0 MPH Gusting to 7.0 MPH | Direction: East, Degrees: 88, | Last Updated on February 4, 5:46 PM EST | More Info: http://www.wunderground.com/US/MI/Detroit.html
<CM-Punk> My plan is to create some way to get it so you can PM it ~f set <location>
<CM-Punk> And then from then on go ~f in the channel and she will give you your weather data
Guest26978 has quit [Quit: Quit my IRC client. I'll probably be back soon after a restart of it.]
FiXato has joined #cinch
<onewheelskyward> CM-Punk Mine remembers the last query and defaults to it if no location entered.
<CM-Punk> Reaaalllly?
<CM-Punk> Is it persistant?
<catepillar> if y'all are testing bots
<catepillar> there is a room set up for it
<catepillar> #cinch-bots
<catepillar> or a channel
<catepillar> whatever you prefer tto call it
v0n has quit [Ping timeout: 245 seconds]
Dunke is now known as Dunke|sleep