dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.1.0
djbkd has joined #cinch
Shazaum has quit [Quit: This computer has gone to sleep]
djbkd has quit [Remote host closed the connection]
rikai has quit [Read error: Connection reset by peer]
rikai has joined #cinch
jesser_ has quit [*.net *.split]
ccallahan|School has quit [*.net *.split]
ayonix has quit [*.net *.split]
kith has quit [*.net *.split]
FIQ has quit [*.net *.split]
mpapis has quit [*.net *.split]
mlue has quit [*.net *.split]
catepillar has quit [*.net *.split]
britneywright has quit [*.net *.split]
irsol has quit [*.net *.split]
v0n has quit [*.net *.split]
thews has quit [*.net *.split]
Netfeed has quit [*.net *.split]
Rennex has quit [*.net *.split]
postmodern has quit [*.net *.split]
blindsight has quit [*.net *.split]
JaniceKitten has quit [*.net *.split]
Paradox has quit [*.net *.split]
iamayam has quit [*.net *.split]
Crazy_Atheist has quit [*.net *.split]
ccallahan has quit [*.net *.split]
nickrw has quit [*.net *.split]
FiXato has quit [*.net *.split]
frog|OFF has quit [*.net *.split]
Dwarf has quit [*.net *.split]
rikai has quit [*.net *.split]
Dunke has quit [*.net *.split]
leftylink has quit [*.net *.split]
foundcat has quit [*.net *.split]
Zackio has quit [*.net *.split]
Azure has quit [*.net *.split]
Liothen has quit [*.net *.split]
dominikh has quit [*.net *.split]
Rylee has quit [*.net *.split]
Gizmokid2005 has quit [*.net *.split]
jmaister has quit [*.net *.split]
liru has quit [*.net *.split]
waxjar has quit [*.net *.split]
frdmn has quit [*.net *.split]
literal has quit [*.net *.split]
Crazy_Atheist has joined #cinch
frog|OFF has joined #cinch
foundcat has joined #cinch
ayonix has joined #cinch
britneywright has joined #cinch
iamayam has joined #cinch
Liothen has joined #cinch
ccallahan has joined #cinch
liru has joined #cinch
Rennex has joined #cinch
leftylink has joined #cinch
mlue has joined #cinch
FIQ has joined #cinch
jmaister has joined #cinch
ccallahan|School has joined #cinch
postmodern has joined #cinch
nickrw has joined #cinch
JaniceKitten has joined #cinch
kith has joined #cinch
Azure has joined #cinch
Dwarf has joined #cinch
irsol has joined #cinch
jesser_ has joined #cinch
Dunke has joined #cinch
blindsight has joined #cinch
FiXato has joined #cinch
Paradox has joined #cinch
rikai has joined #cinch
frdmn has joined #cinch
Netfeed has joined #cinch
Zackio has joined #cinch
mpapis has joined #cinch
waxjar has joined #cinch
Gizmokid2005 has joined #cinch
dominikh has joined #cinch
v0n has joined #cinch
Rylee has joined #cinch
literal has joined #cinch
thews has joined #cinch
catepillar has joined #cinch
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Crazy_Atheist has quit [Quit: WeeChat 1.0.1]
frog|OFF is now known as green-big-frog
<green-big-frog> good morning
green-big-frog is now known as frog|OFF
frog|OFF is now known as green-big-frog
green-big-frog is now known as frog|OFF
jesser_ has quit [*.net *.split]
ccallahan|School has quit [*.net *.split]
ayonix has quit [*.net *.split]
kith has quit [*.net *.split]
FIQ has quit [*.net *.split]
mpapis has quit [*.net *.split]
mlue has quit [*.net *.split]
catepillar has quit [*.net *.split]
irsol has quit [*.net *.split]
v0n has quit [*.net *.split]
thews has quit [*.net *.split]
Netfeed has quit [*.net *.split]
Rennex has quit [*.net *.split]
postmodern has quit [*.net *.split]
blindsight has quit [*.net *.split]
JaniceKitten has quit [*.net *.split]
Paradox has quit [*.net *.split]
iamayam has quit [*.net *.split]
ccallahan has quit [*.net *.split]
nickrw has quit [*.net *.split]
FiXato has quit [*.net *.split]
frog|OFF has quit [*.net *.split]
Dwarf has quit [*.net *.split]
rikai has quit [*.net *.split]
Dunke has quit [*.net *.split]
leftylink has quit [*.net *.split]
foundcat has quit [*.net *.split]
Zackio has quit [*.net *.split]
Azure has quit [*.net *.split]
Liothen has quit [*.net *.split]
dominikh has quit [*.net *.split]
Rylee has quit [*.net *.split]
Gizmokid2005 has quit [*.net *.split]
jmaister has quit [*.net *.split]
liru has quit [*.net *.split]
waxjar has quit [*.net *.split]
frdmn has quit [*.net *.split]
literal has quit [*.net *.split]
Gizmokid2005 has joined #cinch
leftylink has joined #cinch
irsol has joined #cinch
FIQ has joined #cinch
ccallahan has joined #cinch
JaniceKitten has joined #cinch
jmaister has joined #cinch
kith has joined #cinch
liru has joined #cinch
Paradox has joined #cinch
ayonix has joined #cinch
Dwarf has joined #cinch
foundcat has joined #cinch
Dunke has joined #cinch
mpapis has joined #cinch
FiXato has joined #cinch
jesser_ has joined #cinch
postmodern has joined #cinch
ccallahan|School has joined #cinch
Rylee has joined #cinch
v0n has joined #cinch
iamayam has joined #cinch
nickrw has joined #cinch
Liothen has joined #cinch
thews has joined #cinch
rikai has joined #cinch
frog|OFF has joined #cinch
blindsight has joined #cinch
Zackio has joined #cinch
waxjar has joined #cinch
Rennex has joined #cinch
Azure has joined #cinch
mlue has joined #cinch
frdmn has joined #cinch
Netfeed has joined #cinch
catepillar has joined #cinch
dominikh has joined #cinch
literal has joined #cinch
foundcat has quit [Ping timeout: 272 seconds]
Shazaum has joined #cinch
frog|OFF is now known as green-big-frog
<green-big-frog> good afternoon
<jmaister> hai
<green-big-frog> what is the simpliest way, to make a cinch powered bot get his new script from some place and restart with the new script? it could also be a other bot, but does anyone know some blogpost or so where someone tried to solve this?
<jmaister> What do you mean?
<jmaister> To load plugins dynamically?
<jmaister> My bot does that
<green-big-frog> ill look at that...
<jmaister> I just use git to pull the new plugin into the plugin directory, then tell my bot .plugin load Pluginname
<green-big-frog> ok...
<green-big-frog> thanks!
<green-big-frog> ill look at that...
britneywright has joined #cinch
<green-big-frog> jmaister: do i have to mention all the plugins i could wnat to use in the main file?
<jmaister> green-big-frog: Have a look at my bot configuration in turid.rb in the project root
<green-big-frog> that means yes?
<jmaister> I use this line Dir["./lib/cinch/plugins/*.rb"].each {|file| require file }
<green-big-frog> ok
<green-big-frog> good...
<jmaister> To require every plugin and then specify which ones I want to include
<jmaister> But if I want to include one after the bot has started, I need to use the .plugin Load command
* green-big-frog hugs jmaister that saved him a lot of work
<green-big-frog> ok
<green-big-frog> ty
<liru> Ooh, I like some of those plugins
<Gizmokid2005> definitely. I keep finding new cinch repos with neat plugins that I didn't think of
postmodern has quit [Quit: Leaving]
<green-big-frog> me again:
<green-big-frog> where can i find something to do !kill or !die to make the bot shutdown or restart or so?
<green-big-frog> jmaister: do u maybee have this future and i am too stupid to find it?
<jmaister> green-big-frog: Don't you have access to the server the bot runs on?
<jmaister> Gizmokid2005: I just keep writing new plugins
<green-big-frog> i have, but irc commands are sometimes better
<jmaister> !die is fine, but how do you expect to start it again?
<jmaister> You need some kind of external service
<Gizmokid2005> jmaister: I'm still green with Ruby so cinch is kind of my foray into an actual use for it. So I'm doing the same, trying to make it dynamic enough (like dynamic plugin load/unloads/refreshes), help for all plugins, admins/etc.
<jmaister> I write PHP all day, so I just tinker with the bot when I'm bored at work
<catepillar> i suppose one could have the !die command send a signal to another script or a signal handler that could restart (or start a new instance) of the bot
<catepillar> that's an interesting excercise
<green-big-frog> !die would be fine too
<Gizmokid2005> jmaister: SQL here...
<jmaister> My bot has SQL. About two lines of it
<Gizmokid2005> Haha, mine has a fair bit more, I'm considering moving some of the config stuff into it as well.
<Gizmokid2005> being that's what I do all day long, it's easy for me.
<Gizmokid2005> jmaister: are you creating a table per plugin?
<jmaister> Yeah, I write a lot of queries as well. We don't use an ORM
<jmaister> Gizmokid2005: Yeah, keep it nice and tidy.
<Gizmokid2005> I can't stand most ORMs.
<Gizmokid2005> why not just use one table for plugins and a row per plugin? <3
<catepillar> i really have been meaning to override the bot logging to log to a database
<catepillar> has anyone done that yet?
<jmaister> Gizmokid2005: Surely, you're kidding
<Gizmokid2005> jmaister: if you want a true normalized db, not in the least. What's the purpose of each plugin having its own table?
<jmaister> It's much more tidy
<Gizmokid2005> That's like saying creating one table per customer for a CRM is more tidy :P
<jmaister> Not really
<Gizmokid2005> Now you have to iterate through tables to find all the plugins, rather than a single table, single statement to find them all
<jmaister> It's like saying a table per module in a CRM is more tidy
<jmaister> Which is what all CRMs do
<Gizmokid2005> Depending on what "module" is defined as, I may or may not agree.
<Gizmokid2005> My last company had plugins for the software. The plugins had a dbo.Plugins table that listed all installed ones and their versions.
<Gizmokid2005> if the plugins had their own configuration separately, they would then get their own table for that...
<jmaister> I don't like mixing data with different functionality. Sure, I could have a column describing which plugin uses what data, but it's not like I'm creating 20000 tables here
<jmaister> I doubt selecting table over another where clause is considerably faster in this setting
<Gizmokid2005> Well, that's why I'm asking. I'm not entirely sure what you're storing in those tables. If it's actual data for the plugin to use, then I'd be absolutely with you. If it's just that there's a plugin and here's the version or something, then no.
<jmaister> Yeah, you might save half a milisecond here and there, but it doesn't bother me
<jmaister> Gizmokid2005: I store the data the plugin uses yes. The config is stored in files for now
<Gizmokid2005> jmaister: then it makes more sense to me :) I would agree. If this is data specific to the plugin itself, then it's perfectly sensible.
<jmaister> Look at this very simple plugin to see how I use it https://github.com/jurgemaister/turid/blob/master/lib/cinch/plugins/location.rb
<Gizmokid2005> Yeah, that makes sense then.
<jmaister> It's basically a key/value store
<Gizmokid2005> Yeah, that makes sense to me. I'm doing the same myself for some plugins.
<Gizmokid2005> It's really irritated me the number of bots (especially python ones I've seen) that store so much of this stuff in memory...
<jmaister> My database is pretty simple stuff, but I don't use a lot of time on this bot
<green-big-frog> can someone please fix my syntax error? http://hastebin.com/qisuwuguza.tex
<green-big-frog> please...
<Gizmokid2005> green-big-frog: the error that's getting thrown would be helpful if you want help ;)
<green-big-frog> with errors: http://hastebin.com/viqefoqisi.tex
<Gizmokid2005> green-big-frog: you have an extra "end"
<Gizmokid2005> technically your match isn't written correctly.
<Gizmokid2005> green-big-frog: look at the example plugins for instance.
<green-big-frog> ok
<green-big-frog> ty
<green-big-frog> got it fixed
<Gizmokid2005> Yup. That's one suggestion I can always give. The examples are usually pretty solid and can help find some of the more obvious-ish layout errors.
shazaum_ has joined #cinch
Shazaum has quit [Ping timeout: 272 seconds]
djbkd has joined #cinch
djbkd has quit [Remote host closed the connection]
djbkd has joined #cinch
Crazy_Atheist has joined #cinch
<leftylink> 15:05:30 < green-big-frog> where can i find something to do !kill or !die to make the bot shutdown or restart or so?
<leftylink> yeah I run my bot with while [ -f stay-connected ]; do ruby bot.rb; sleep 3; done
<leftylink> and the !quit command just does bot.quit
<leftylink> then it will restart by itself
<leftylink> if I ever want to make it not restart, I'll just remove the stay-connected file before using !die
<green-big-frog> ok
<green-big-frog> ty
<green-big-frog> what is a good place/way to learn ruby?
<leftylink> green-big-frog: eh, probably just write, much like you're doing now with your bot. if you really want I guess you could do project euler or something, but project euler never motivates me. it needs to be something that interests me
<green-big-frog> ok...
<green-big-frog> good
<leftylink> green-big-frog: so really it's just a matter of thinking of a thing you'd like to write and writing it in Ruby and seeing what happens. It could be a new piece of code, or maybe it could be code already written in another language (that way you don't have to worry about how to implement, just how to transfer the ideas from one language to another)
<green-big-frog> ok... did i understnad it right, that i can use ruby to programm websites (similar to php/js) and programms?
<leftylink> green-big-frog: sure, yes
<green-big-frog> ok... cool
<green-big-frog> im going to learn ruby
<green-big-frog> but is there still maybe a place where i can read stuff up?
<leftylink> green-big-frog: hmm I've heard good things about http://mislav.uniqpath.com/poignant-guide/book/chapter-1.html but it's not everyone's style maybe
<green-big-frog> ill look at it... thanks! I love you all!
* green-big-frog hugs everyone
green-big-frog is now known as frog|OFF
Snowstormer has joined #cinch
Snowstormer is now known as foundcat
sarkyniin has joined #cinch
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shazaum_ has quit [Quit: This computer has gone to sleep]
apt-get_ has joined #cinch
sarkyniin has quit [Ping timeout: 256 seconds]
postmodern has joined #cinch
apt-get_ has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
Shazaum has joined #cinch
djbkd has joined #cinch
djbkd has quit [Remote host closed the connection]
djbkd has joined #cinch
Shazaum has quit [Quit: This computer has gone to sleep]