[00:00:18] *** SupyStats01 has joined #supybot
[00:15:38] *** mren is now known as mren|off
[00:23:01] *** themill has joined #supybot
[00:48:01] *** SupyStats01 has quit IRC
[00:51:49] *** SupyStats01 has joined #supybot
[00:58:58] <Digital_Lemon> how can i allow an admin to add admin #channel,op capability
[00:59:11] <Digital_Lemon> he is a mainteaner and he adds bot to channels
[00:59:24] <Digital_Lemon> so i cannot give him the capability for every channel...
[00:59:41] <Digital_Lemon> [00:45:54] <@Zeroni> !admin capability add Zeroni #Zeroni,op
[00:59:41] <Digital_Lemon> [00:45:55] <@expl0it> Error: You can't add capabilities you don't have.
[01:02:27] <Banton> you need to use channel for channel capabilities
[01:02:36] *** ircdearia has quit IRC
[01:03:46] *** ircdearia has joined #supybot
[01:03:50] <Digital_Lemon> !channel capability add #zeroni zeroni op ?
[01:04:34] <Digital_Lemon> wont work
[01:04:35] <Digital_Lemon> WARNING 2011-11-10T02:52:21 Denying
[01:04:35] <Digital_Lemon> Zeroni!~K.o.S.t.A at BD2BE9A1 dot 8CC9EC29.C960EE8E.IP for lacking
[01:04:35] <Digital_Lemon> "#zeroni,op" capability.
[01:04:42] <Digital_Lemon> sorry for paste :|
[01:15:53] <Digital_Lemon> well how come he cannot use such stuff as _admin_ :|
[01:30:56] <RelayBot> <jamessan> because admins don't have control over channel-specific behavior
[01:42:18] *** ircdearia has quit IRC
[01:59:44] <scar> gholms with that patch i'm getting "\n" in my results
[02:00:02] <scar> e.g.: '440 (cubic inches)\n =\n 7.21030816 liters'
[02:01:24] *** Kebap23 has quit IRC
[02:01:40] <gholms> htmlToText isn't filtering that out? Hmm...
[02:02:30] <gholms> The result returned by the regex match *does* have newlines because google started adding them to their results pages.
[02:04:10] <scar> well google is just stupid, why change something when it was fine to begin with
[02:04:20] <gholms> Good question
[02:05:44] <gholms> Does irssi strip out newlines or something? I can't seem to make the \n characters show up with that patch.
[02:06:01] <scar> i dunno lemme see
[02:06:48] <scar> hmm no i still get it thru irssi
[02:07:19] <gholms> htmlToText calls normalizeWhitespace, which removes newlines.
[02:07:31] <gholms> So I'm not sure why yours is going what it is doing. :\
[02:08:00] <scar> well i just unloaded the plugin, changed the line, and reloaded the plugin
[02:08:48] <gholms> Is the rest of your code older? I'm working with yesterday's master branch of limnoria.
[02:09:51] *** nosa has joined #supybot
[02:11:18] <scar> yes
[02:11:27] <scar> i also get the problem Hoaas was sayin, 5 usd in nok returns the title of the first link.
[02:11:58] <scar> ok let me try downloading your google plugin, which is where?
[02:12:24] *** ircdearia has joined #supybot
[02:13:01] *** nosa-j has quit IRC
[02:13:02] *** nosa is now known as nosa-j
[02:14:23] <gholms> It's the current limnoria master, plus the patch I posted. I'll see if I can post the whole file somewhere.
[02:17:17] <gholms> I do see Hoass's issue. :(
[02:17:32] <gholms> Any suggestions for a better regex?
[02:17:49] *** ircdearia has quit IRC
[02:18:27] <scar> hmm when i try to load that plugin i get 'no module named i18n'
[02:18:53] <gholms> What kind of bot are you using?
[02:18:59] <gholms> (e.g. gribble, limnoria)
[02:19:08] <scar> i dunno... old supybot
[02:19:14] <gholms> That would be why, then.
[02:19:26] <gholms> Plain supybot doesn't have the i18n bits.
[02:19:30] <scar> 0.83.4.1+git
[02:20:14] <scar> well can't i just grab i18n.py and put it somewhere? ;)
[02:20:24] <gholms> Try it and see! :P
[02:21:31] <scar> in lib/python2.5/site-packages/supybot ?
[02:22:17] <gholms> That sounds right.
[02:22:33] <gholms> I would just install limnoria or gribble and be done with it, personally.
[02:23:52] <scar> oh but i wouldn't know what to do with all my databases and settings
[02:23:58] <gholms> Keep them?
[02:24:28] *** ircdearia has joined #supybot
[02:24:47] <scar> maybe if there was a guide for migration or something
[02:25:05] <scar> p.s. adding i18n.py didn't work, throws an Uncaught exception ;)
[02:32:36] *** themill has quit IRC
[02:34:41] <gholms> limnoria is literally a drop-in replacement for supybot.
[02:34:55] * gholms needs to go; good luck
[02:35:31] <Weedy_lappy> scar: uhh
[02:35:52] <Weedy_lappy> > install gribble/limnoria
[02:36:13] <Weedy_lappy> > cd /path/to/current/bot.cfg/
[02:36:44] <Weedy_lappy> > python /path/to/gribble/limnoria bot.cfg
[02:36:46] <Weedy_lappy> done
[02:37:21] <scar> should i delete lib/python2.5/site-packages/supybot ?
[02:40:45] * gholms just realized something
[02:41:25] <gholms> Hoass's issue is caused by the fact that google doesn't return the converted value to the bot at all. :-\
[02:41:41] <gholms> The first result is the wikipedia page that it prints.
[02:41:46] *** SleepingBeauty has quit IRC
[02:41:58] * gholms really leaves now
[02:42:45] <scar> so which should i pick? what are differences in gribble and limnoria?
[02:52:26] *** KenjiE20 has quit IRC
[02:53:00] *** kingkong has quit IRC
[02:59:22] *** nosa has joined #supybot
[03:00:29] *** nosa-j has quit IRC
[03:00:29] *** sythe has joined #supybot
[03:00:29] *** nosa is now known as nosa-j
[03:00:30] *** sythe has quit IRC
[03:00:30] *** sythe has joined #supybot
[03:04:57] *** IzzyGhost has joined #supybot
[03:04:57] *** IzzyGhost has joined #supybot
[03:08:44] *** Izzy has quit IRC
[03:32:10] *** nosa-j has quit IRC
[03:33:22] *** nosa-j has joined #supybot
[03:39:05] *** ircdearia has quit IRC
[03:47:52] <Weedy_lappy> scar: yeah, limnoria is a bit quicker with fixes and steal all the good stuff from gribble
[03:48:58] <scar> sounds good
[03:52:12] <scar> but i would need to git clone the testing branch to get this new fix for the google plugin
[03:52:52] <scar> well i guess i can just change the line in the plugin from the master branch
[04:04:23] <scar> Weedy_lappy, ok that was painless ;)
[04:09:10] <Weedy_lappy> duh
[04:09:51] <scar> well i didn't know!
[04:09:57] <Weedy_lappy> i didn't feel like installing the git version so i run it out on my home dir
[04:10:00] <Weedy_lappy> export PYTHONPATH="lib/python2.7:lib/python2.7/site-packages" ; cd ~/supybot && ./bin/supybot ph34r_v2.conf
[04:10:06] <Weedy_lappy> done
[04:11:39] *** ircdearia has joined #supybot
[04:11:45] *** }ls{ has quit IRC
[04:12:52] <scar> so when the master branch gets updated, i just do git clone it again?
[04:13:02] <scar> the restart?
[04:16:19] <scar> git pull?
[04:32:47] *** kingkong has joined #supybot
[04:32:48] *** kingkong has joined #supybot
[04:38:27] *** ircdearia has quit IRC
[04:40:44] *** ircdearia has joined #supybot
[04:50:52] *** Out`Of`Control has quit IRC
[04:53:09] *** Out`Of`Control has joined #supybot
[05:23:56] *** sythe has quit IRC
[05:37:38] *** Biiaru has quit IRC
[05:42:21] *** Biiaru has joined #supybot
[05:42:57] *** Biiaru is now known as zZzaru
[05:49:25] *** Aayush has joined #supybot
[06:14:58] <AnswerGuy> Do limnoria and/or gribble have PyPI entries yet?
[06:22:29] <nanotube> not that i know ...
[06:23:58] *** zZzaru has quit IRC
[06:25:21] *** Omen has joined #supybot
[06:26:32] *** zZzaru has joined #supybot
[06:26:58] *** zZzaru is now known as Biiaru
[06:26:58] *** Biiaru has joined #supybot
[06:42:53] *** WakiMiko has joined #supybot
[06:46:19] *** WakiMiko_ has quit IRC
[06:51:26] *** Banton has quit IRC
[06:51:52] *** Banton has joined #supybot
[06:56:19] *** Aayush has quit IRC
[07:01:47] *** AAYUSH has joined #supybot
[07:03:10] *** AAYUSH is now known as AAYUSH|AFK|
[07:07:41] *** Weedy has joined #supybot
[07:07:49] *** Weedy has joined #supybot
[07:08:47] *** pkiller has quit IRC
[07:09:13] *** Weedy_lappy has quit IRC
[07:09:36] *** hoxu has quit IRC
[07:12:34] *** pkiller has joined #supybot
[07:12:51] *** bcomplex has joined #supybot
[07:14:32] *** eraserhead77 has quit IRC
[07:18:08] *** kingkong has quit IRC
[07:18:10] *** hoxu has joined #supybot
[07:18:11] *** hoxu has joined #supybot
[07:23:50] *** Axanon has joined #supybot
[07:23:50] *** Axanon has joined #supybot
[09:08:09] *** eraserhead77 has joined #supybot
[09:09:29] *** nosa has joined #supybot
[09:10:23] *** bcomplex has quit IRC
[09:11:55] *** nosa-j has quit IRC
[09:11:55] *** nosa is now known as nosa-j
[11:01:05] *** themill has joined #supybot
[11:13:04] *** Biiaru is now known as zZzaru
[12:08:07] *** iPHP has joined #supybot
[12:18:50] *** KenjiE20 has joined #supybot
[12:20:10] *** KenjiE20 has quit IRC
[12:20:32] *** KenjiE20 has joined #supybot
[13:02:48] *** AAYUSH has joined #supybot
[13:04:05] *** AAYUSH|AFK| has quit IRC
[13:23:37] *** SpiderDave has quit IRC
[13:24:09] *** SpiderDave has joined #supybot
[15:07:11] *** }ls{ has joined #supybot
[15:30:02] *** Nemaanjaa has joined #supybot
[15:31:59] *** Mkaysi has quit IRC
[15:32:15] *** eraserhead77 has quit IRC
[15:37:54]
<Nemaanjaa> anyone used lxml , I need a lil help, just to show me an example of how would these 2 lines look with lxml http://pastebin.com/hJL0KcS6
[15:47:34] *** zelig has joined #supybot
[15:47:48] <zelig> hi!
[15:48:12] <zelig> is there a way to create an alias with $randInt and make sure it is evaluated when the alias is called?
[15:53:23] <Hoaas> Is that in echo?
[15:54:06] <Hoaas> Think it works if you do alias add something "[echo $randInt]"
[15:54:10] <Hoaas> maybe. perhaps.
[15:55:41] *** Axanon has quit IRC
[15:56:07] <zelig> Hoaas, hum.. Didn't work
[15:56:18] <zelig> but it's ok, I'll think of another way...
[15:56:20] <Hoaas> :'(
[15:56:24] <Hoaas> Should be possible though.
[15:56:28] <Hoaas> ProgVal knows!
[15:56:29] <zelig> thanks!
[15:57:48] <Hoaas> oh. just echo $randInt works just fine, without "s and [s.
[15:58:55] <zelig> Hoaas, so that's my problem. I need in a nested command...
[15:59:04] <zelig> s/need/need it/
[15:59:04] <gribble> What zelig meant to say was: Hoaas, so that's my problem. I need it in a nested command...
[15:59:06] *** ludens_ has quit IRC
[16:01:23] <Hoaas> So, you want an alias for "command randomInt" then? kinda?
[16:03:01] <zelig> something like `cut 10 [concat $randomDate $randomInt]`
[16:04:03] <Hoaas> !alias add test reply "[echo $randomInt]" seems to work
[16:08:30] <Hoaas> so, perhaps: cut 10 "[concat [echo $randomDate] [echo $randomInt]]"
[16:08:32] <Hoaas> ?
[16:12:16] <zelig> I tried this (which is what I want): alias add test cut 10 [sha "[concat [echo $randomDate] [echo $randomInt]]"]
[16:12:36] <zelig> it kept giving me the shame hash consistently
[16:12:56] <zelig> Hoaas, but my aproach is lame. I should just write what I want in python
[16:13:29] <Hoaas> huh.
[16:13:35] <Hoaas> &plugin concat
[16:13:35] <gribble> The "concat" command is available in the Format plugin.
[16:15:33] <Hoaas> That is weird. I tried the same thing with different commands. Got different results there :s
[16:16:10] <zelig> which commands did you use?
[16:16:52] <Hoaas> Ah yes.
[16:17:00] <Hoaas> Need to move the " to outside [sha
[16:17:43] <zelig> Hoaas, that's it!
[16:17:45] <zelig> thanks!
[16:18:12] <Hoaas> !alias add test cut 10 [sha "[concat [echo $randomDate] [echo $randomInt]]"]
[16:18:14] <Hoaas> (test <an alias, 0 arguments>) -- Alias for "cut 10 db3af2690f1251de21ee741fb6202b3c27903835".
[16:18:27] <zelig> this scapes the nested commands in the alias creation, but when the alias is called it's evaluated as usual
[16:18:30] <Hoaas> That just made the hash when the command was made :p
[16:18:32] <zelig> nice!
[16:20:37] <zelig> thanks a lot Hoaas
[16:21:06] <Hoaas> np.
[16:21:13] <zelig> I just started using supybot yesterday on the channel I use with my coworkers and it helps a lot
[16:21:38] <Hoaas> :D
[16:21:45] <zelig> we use etherpad a lot, and the idea is to have supybot create a new etherpad for us :)
[16:30:04]
<Nemaanjaa> anyone used lxml , I need a lil help, just to show me an example of how would these 2 lines look with lxml http://pastebin.com/hJL0KcS6
[16:30:22] <Hoaas> I used it in a plugin once \o
[16:30:27] <Hoaas> Not sure if I still have it
[16:34:19] <Hoaas> Though I don't understand what those lines do :D
[16:34:40] <Hoaas> I just used it to read the first occurence of something.
[16:36:28] <Nemaanjaa> I just need a simple example how to parse and extract data from simple xml..nothing else..
[16:36:42] <Hoaas> k
[16:37:11] <Hoaas> Like that?
[16:37:33] <Hoaas> have "from lxml import etree"
[16:38:06] <Hoaas> Never understood it, but I got it to work.
[16:38:08] <Hoaas> :p
[16:38:11] <Nemaanjaa> yea..something like that..lemme try it..brb
[16:39:09] <Hoaas> That print sentence doesn't make any sense.
[16:39:30] <Nemaanjaa> Error: Start tag expected, '<' not found, line 1, column 1
[16:40:03] <Hoaas> :s
[16:40:47] <Nemaanjaa> got like 150 lines of code...just someone to make me this one..example, and Ill use it to chagne others from libxml2 to lxml
[16:42:48] <Hoaas> hm
[16:44:12]
<zelig> Hoaas, just for completeness, it worked like this: alias add newpad format join "/" http:/ pad.riseup.net p "[cut 10 [sha [concat [echo $randomDate] [echo $randomInt]]]]"
[16:44:27] <zelig> thanks a lot!
[16:46:00] <Hoaas> hehk :p
[16:46:37] <zelig> would probably be easier to do it in python, but I just wanted to mess around with aliases :p
[16:47:30] <Hoaas> Nemaanjaa: Not sure how to parse it directly from url to lxml, but if you have the entire xml as a string somewhere I believe you could do like this:
[16:47:45] <Hoaas> citizen = xml.etree.fromstring(whatever)
[16:47:54] <Hoaas> name = root.findtext("Name")
[16:48:21] <Hoaas> But, don't have lxml on this computer atm, so can't really test :o
[16:50:01] <Nemaanjaa> Ill try something..tnx for the help
[16:50:57] <Hoaas> D: errr.
[16:51:06] <Hoaas> name = citizen.findtext("Name")
[16:53:38] <Nemaanjaa> nope..it seems that it only can parse strings..
[16:54:13] <Hoaas> yes.
[17:00:20] <Nemaanjaa> meh..just used citizen = etree.parse and it works
[17:02:49] *** zelig has quit IRC
[17:06:28] <Hoaas> import urllib:D
[17:07:32] <Nemaanjaa> did
[17:07:43] <Nemaanjaa> now to see how do I go deeper into the tree
[17:08:32] *** Jip has joined #supybot
[17:08:34] <Jip> hi
[17:08:49] <Jip> is it possible to add a messageparser action for all channels?
[17:08:57] <Hoaas> citizen.findtext("citizenship/region/id") should work, I think.
[17:09:30] <13WAARKUE> Yes
[17:09:36] <13WAARKUE> ;;config list supybot.databases
[17:09:36] <gribble> @channels, @ignores, @plugins, @types, and @users
[17:09:40] <13WAARKUE> ;;config list supybot.databases.channels
[17:09:40] <gribble> filename
[17:09:42] <13WAARKUE> ...
[17:09:46] <13WAARKUE> ;;config list supybot.databases.plugins
[17:09:46] <gribble> @#channelSpecific
[17:09:51] <13WAARKUE> ;;config list supybot.databases.plugins.channelspecific
[17:09:51] <gribble> @#link
[17:09:55] <13WAARKUE> ;;config help supybot.databases.plugins.channelspecific
[17:09:55] <gribble> Determines whether database-based plugins that can be channel-specific will be so. This can be overridden by individual channels. Do note that the bot needs to be restarted immediately after changing this variable or your db plugins may not work for your channel; also note that you may wish to set supybot.databases.plugins.channelSpecific.link appropriately if you wish to share a certain (1 more message)
[17:09:58] <13WAARKUE> ,,more
[17:09:58] <gribble> channel's databases globally. (Current value: True)
[17:10:32] <13WAARKUE> I think that you must set that as False to have them global.
[17:11:01] <Nemaanjaa> yea it works..meh..this will be even more simple than I thought..tnx Hoaas
[17:11:11] <Hoaas> :D
[17:12:59] <Jip> 13WAARKUE: thx but setting it to False doesnt give me the result
[17:13:17] <Jip> also i dont want to have all channel specific plugins global. only messageparser plugin
[17:13:27] <13WAARKUE> "Do note that the bot needs to be restarted immediately after changing this variable or your db plugins may not work for your channel"
[17:13:33] <13WAARKUE> Oh
[17:13:44] <13WAARKUE> Then it's not possible to have messageparser global, I think
[17:15:52] <Jip> ok thx anyway
[17:16:11] <Jip> but why do this channelspecific anyway
[17:18:57] *** zZzaru is now known as Biiaru
[17:22:44] *** VAPA has joined #supybot
[17:22:46] *** VAPA has quit IRC
[17:24:36] *** Nemaanjaa has quit IRC
[17:35:01] *** saik0 has quit IRC
[17:35:08] *** Nemaanjaa has joined #supybot
[17:38:36] *** AAYUSH is now known as AAYUSH|ZzzZzz
[17:43:18] *** saik0 has joined #supybot
[17:43:36] *** Mkaysi has joined #supybot
[17:49:09] *** Kebap23 has joined #supybot
[18:16:43] *** the_holstar has joined #supybot
[18:17:04] *** XSlicer has joined #supybot
[18:17:17] <the_holstar> I am new to supybot.
[18:17:34] <the_holstar> I have installed it and enables ChannelLogger plugin
[18:17:56] <the_holstar> What i want to do it i want to make supy bot send log report faster than it's default time.
[18:18:06] <the_holstar> *what i want to do is
[18:19:36] <the_holstar> &help
[18:19:36]
<gribble> The bot responds when you start a line with the ! character. A good starting point for exploring the bot is the !facts command. You can also visit the bot's website for a list of help topics and documentation: http://gribble.sourceforge.net/
[18:19:45] <the_holstar> !facts
[18:20:11] *** Jip has left #supybot
[18:26:01] <Hoaas> uh
[18:26:53] <Hoaas> nanotube: gribble is lying about !.
[18:27:16] <Hoaas> the_holstar: What do you mean by "faster than it's default time"? :o
[18:27:36] <the_holstar> Actually in my website i want to show the channel log.
[18:27:58] <the_holstar> Like about last 5-10 lines
[18:28:20] <13WAARKUE> ;;config list supybot.plugins.channellogger
[18:28:20] <gribble> #enable, #filenameTimestamp, #noLogPrefix, #rotateLogs, #stripFormatting, #timestamp, @directories, flushImmediately, and public
[18:28:23] <Hoaas> Oh, it doesn't write to file right away?
[18:28:31] <13WAARKUE> ;;config help supybot.plugins.channellogger.flushimmediately
[18:28:31] <gribble> Determines whether channel logfiles will be flushed anytime they're written to, rather than being buffered by the operating system. (Current value: True)
[18:28:35] <Hoaas> What 13WAARKUE said.
[18:28:36] <the_holstar> yeah
[18:28:36] <the_holstar> it doesn't
[18:28:48] <13WAARKUE> the_holstar: config supybot.plugins.channellogger.flushimmediately True
[18:28:51] <13WAARKUE> and
[18:28:55] <13WAARKUE> reload ChannelLogger
[18:29:22] <the_holstar> hmm
[18:29:24] <the_holstar> lemme check
[18:30:34] <the_holstar> ty 13WAARKUE
[18:30:37] <the_holstar> :)
[18:30:41] *** iPHP has quit IRC
[18:30:50] <13WAARKUE> You're welcome :)
[18:38:30] *** Nemaanjaa has quit IRC
[18:41:17] *** Nemaanjaa has joined #supybot
[19:07:07] <Nemaanjaa> anyone with lxml expirience
[19:07:42] * ProgVal raises the hand
[19:08:53] <Nemaanjaa> how to extract data from objects with same adress, like here, medals tab ,it has several <medal>
[19:09:43] <ProgVal> ask the doc
[19:10:05] <ProgVal> probably something with getChildren() and selectors
[19:37:01] *** themill has quit IRC
[19:39:11] <gholms> Hoaas: You around? That currency conversion bug seems to be caused by google changing their output.
[19:39:29] <gholms> (in the google calc command)
[19:42:13] *** the_holstar has quit IRC
[19:47:10] <Hoaas> hi.
[19:48:21] *** the_holstar has joined #supybot
[19:48:24] <gholms> When I had the plugin log the HTML that google returned, it didn't contain the conversion at all. That was why it latched onto the first result instead. :\
[19:48:57] <gholms> Any ideas?
[19:49:31] <gholms> ProgVal: If you're around I would appreciate your input, too.
[19:50:46] <ProgVal> Make sure the result is note wrapped by <a> tags
[19:51:11] *** themill has joined #supybot
[19:52:48] <gholms> I mean that Google literally did not return the result.
[19:53:04] <gholms> There should be a decimal that starts with "28." in there.
[19:53:24] *** Nemaanjaa has quit IRC
[19:53:29] <gholms> ...but instead it's only search results.
[20:09:03] *** Nemaanjaa has joined #supybot
[20:14:09] *** mren|off is now known as mren
[20:23:40] *** Prolac has joined #supybot
[20:30:15] *** VAPA has joined #supybot
[20:30:40] *** Nemaanjaa has quit IRC
[20:32:40] *** VAPA is now known as Nemaanjaa
[21:14:55]
<Nemaanjaa> this is the code I was using with libxml2 http://prntscr.com/3yhuf , now I need conversion of that for lxml
[21:20:13] *** Nemaanjaa has quit IRC
[21:23:13] *** Nemaanjaa has joined #supybot
[21:26:39] *** Prolac has quit IRC
[21:34:51] *** Nemaanjaa has quit IRC
[21:43:44] *** EyesIsServer has quit IRC
[21:45:59] *** Out`Of`Control has quit IRC
[21:47:01] *** EyesIsServer has joined #supybot
[21:53:20] *** Out`Of`Control has joined #supybot
[22:04:40] *** SupyStats01 has quit IRC
[22:05:00] *** SupyStats01 has joined #supybot
[22:18:39] *** Omen has quit IRC
[22:19:08] *** }ls{ has quit IRC
[22:20:33] *** eraserhead77 has joined #supybot
[22:35:11] *** Algabe has joined #supybot
[22:53:05] *** }ls{ has joined #supybot
[22:54:25] *** Algabe has quit IRC
[23:17:06] *** }ls{ has quit IRC
[23:32:01] *** XSlicer has quit IRC