Switch to DuckDuckGo Search
   December 3, 2008  
< | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | >

Toggle Join/Part | bottom
[00:04:06] *** _stack has joined #supybot
[00:05:01] <_stack> hi, I'm unable to give my nick admin capabilityes I've used sipubot-addnick and checked the conf file, but it still says me that I'm not admin
[00:29:16] *** Saz|Laptop has quit IRC
[03:03:26] <_fx_> _stack, i think you want supybot-adduser
[03:03:56] <_stack> _fx_: thanks I resolved , didn0t know the identify command ;)
[03:04:12] <_fx_> ah cool
[03:04:33] <_stack> now I'm writing some inutil plugin :)
[03:04:40] <_stack> python is cool :D
[05:12:51] *** Siavash has quit IRC
[05:32:31] <G_work> what happened to supybot.com?
[06:32:47] <_stack> I need to call a Config.config from another plugin .... how should I do?
[06:34:02] <_stack> I'm trying to set a global var from a plugin when the config is already loaded, I saw that in Alias plugin it does do that by calling conf.registerGlobalValue(group, name, registry.something))
[06:34:52] <_stack> I'm doing the same think but calling config supybot.plugins.pluginname.vardoesshouldbemodified that not changes ... I can only create new global vars...
[06:35:08] <_stack> any suggestion?
[06:41:27] *** RCPMan has left #supybot
[07:02:13] *** macmaN6789 has joined #supybot
[07:34:34] <supybot> <jamessan> if you change config.py you have to restart the bot
[07:42:56] *** Siavash has joined #supybot
[09:08:31] *** Siavash has quit IRC
[09:08:55] *** Siavash has joined #supybot
[11:03:04] *** macmaN6789 has quit IRC
[12:46:26] *** [NikO] is now known as [NikO]test
[12:47:10] *** [NikO]test is now known as [NikO]
[13:29:12] -supybot- |mren4| has joined on oftc
[13:36:02] -supybot- mren4 has quit oftc (Ping timeout: 480 seconds)
[14:20:02] *** [NikO] has left #supybot
[14:49:39] *** Pinky has quit IRC
[14:57:28] *** macmaN6789 has joined #supybot
[15:05:19] *** Siavash has quit IRC
[16:06:47] *** soren has quit IRC
[16:37:53] *** fincher has joined #supybot
[16:49:03] *** nebajoth has quit IRC
[17:12:24] *** Leaving has quit IRC
[17:12:25] *** kancil has quit IRC
[17:14:15] *** Leaving has joined #supybot
[17:14:15] *** kancil has joined #supybot
[17:17:49] *** wishie has joined #supybot
[17:17:57] *** Siavash has joined #supybot
[17:18:42] <wishie> how can i make '@blah test1 test2 test3' reply with 'www.something.com/test1+test2+test3'
[17:19:05] <wishie> i dont know how to do the replacement of spaces with url encoded chars as such
[17:20:20] <supybot> <jamessan> @alias add blah "format concat www.something.com/ [re s/%20/+/g [urlquote $1]]"
[17:20:21] <supybot> <supybot> jamessan: The operation succeeded.
[17:20:25] <supybot> <jamessan> @blah test1 test2 test3
[17:20:26] <supybot> <supybot> jamessan: www.something.com/test1+test2+test3
[17:20:58] *** Pinky has joined #supybot
[17:21:17] <wishie> champion. thanks.
[17:21:35] <supybot> <jamessan> @alias remove blah
[17:21:35] <supybot> <supybot> jamessan: The operation succeeded.
[17:29:16] <wishie> interesting..i cant get my bot to do that..
[17:29:45] <supybot> <jamessan> you'll need to load the requisite plugins. Format is needed for the concat command
[17:29:47] <supybot> <jamessan> @plugin re
[17:29:48] <supybot> <supybot> jamessan: The "re" command is available in the String plugin.
[17:29:49] <supybot> <jamessan> @plugin urlquote
[17:29:50] <supybot> <supybot> jamessan: The "urlquote" command is available in the Web plugin.
[17:30:13] <wishie> i can load this while its running, right ?
[17:30:26] <supybot> <jamessan> yeah
[17:30:28] <supybot> <jamessan> @help load
[17:30:29] <supybot> <supybot> jamessan: (load [--deprecated] <plugin>) -- Loads the plugin <plugin> from any of the directories in conf.supybot.directories.plugins; usually this includes the main installed directory and 'plugins' in the current directory. --deprecated is necessary if you wish to load deprecated plugins.
[17:31:11] <wishie> excellent.. will they autoload next time now ? or i have to edit the config ? sorry, im a supy newbie
[17:31:54] <supybot> <jamessan> yes. any config changes you make from IRC are periodically saved so that they're remembered next time the bot is run
[17:32:13] <wishie> cool
[17:33:26] <wishie> strange though.. Strings and Web are loaded.. still no go.
[17:33:55] <_stack> hi , how I can rewrite a globalConfig variable from a plugin invocation?
[17:34:18] <supybot> <jamessan> wishie: is Format loaded?
[17:34:28] <supybot> <jamessan> _stack: what do you mean?
[17:34:40] <_stack> I see that is written in the .conf file of the bot and from now I get that variable loaded from pluginname/config.py
[17:34:43] <wishie> doh!
[17:35:28] <_stack> must I re-explain??:D
[17:36:49] <_stack> so, I have a plugin that define a global variable (a list of string separated by comma) in his config file , I want that invoking something like @plugin addvartolist the variable is overwritten with the precedent list plus the new term as an item of the list
[17:37:36] <_stack> I'm trying something like conf.registerGlobalValue(conf.supybot.plugins.Myplugin, 'stringa',registry.CommaSeparatedListOfStrings(self.registryValue('stringa')+[newTermInList], """ HELP""" ))
[17:37:53] <_stack> in the addvartolist method of my plugin
[17:38:13] <_stack> I noticed that adding new vars succeded, but replacing the existing one no.
[17:39:13] <_stack> in the precedent case if I do config.plugins.Myplugin.stringa it say always the same contenute....Obiovusly if I do config.plugins.Myplugin.stringa newContent it is accepted...
[17:39:47] <_stack> maybe a method to invoke Config configure from my plugin should be a good choice, but I'm unable to do that
[17:39:56] <_stack> so, now suggestions are accepted :)
[17:42:19] <supybot> <jamessan> registerGlobalValue/registerChannelValue should only be called to create the config option. if you want to modify the value in a plugin's command, you use self.setRegistryValue. you access it with self.registryValue
[17:42:33] <supybot> <jamessan> in general, you can also use the supybot.conf module
[17:43:21] <supybot> <jamessan> so conf.supybot.plugins.PluginName.configName() gets the value
[17:48:00] *** wishie has left #supybot
[17:50:15] <_stack> supybot: (jamessan) thanks
[17:59:23] <_stack> oh it works :D
[17:59:25] <_stack> fantastic
[17:59:27] <_stack> \o
[18:10:28] *** _stack has quit IRC
[18:11:41] *** wRAR has joined #supybot
[18:42:41] *** Siavash has quit IRC
[18:44:26] *** Siavash has joined #supybot
[19:09:04] *** _stack has joined #supybot
[19:15:01] <_stack> help b33r
[19:15:09] <_stack> @help b33r
[19:15:10] <supybot> _stack: (b33r <an alias, 0 arguments>) -- Alias for "beer $*".
[19:15:27] <supybot> <jamessan> @help beer
[19:15:28] <supybot> <supybot> jamessan: (beer <an alias, 0 arguments>) -- Alias for "action pours [echo $who] a tall lager".
[19:17:07] <_stack> how do you speek throught supybot ?
[19:17:08] <_stack> :)
[19:17:14] <_stack> speak
[19:18:53] <supybot> <jamessan> I'm on a different network (OFTC) so the bot is using the Relay plugin to relay between the #supybot channel on both networks
[19:19:16] <_stack> ah k
[19:50:38] *** wolog has joined #supybot
[20:03:11] *** wRAR has quit IRC
[20:13:38] *** wolog has quit IRC
[20:14:32] *** wolog has joined #supybot
[20:52:35] <Siavash> hey
[20:52:48] <Siavash> when will the website be up again?
[20:53:38] <fincher> Siavash: a long time, unfortunately. When it does come back up, it'll be in a different form.
[20:54:34] <supybot> <jamessan> I'm hoping I'll have time to work on it over christmas
[20:57:18] <Siavash> feel free to ask me if you needed help
[20:57:31] <Siavash> I can donate a host too
[20:58:33] <supybot> <jamessan> we'll be using Sourceforge again in the short term
[20:58:40] <supybot> <jamessan> long term, we'll probably move to my server
[21:37:05] *** wanders_ is now known as wanders
[21:57:48] *** nebajoth has joined #supybot
[23:28:27] *** fincher has quit IRC
[23:56:36] *** wolog has quit IRC
top

   December 3, 2008  
< | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | >