Switch to DuckDuckGo Search
   December 5, 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:41:56] <_stack> is it possibile to define an alias such that takes his argument as nested argument for a nested command
[00:42:25] <_stack> for example base 16 2 [hexip 10.0.0.1] , I want an alias for that command
[00:45:53] <supybot> <jamessan> you always want it to run that command, or you want 10.0.0.1 to be an argument that the user gives?
[00:47:03] <_stack> I want 10.0.0.1 as an argument for the alias
[00:47:24] <_stack> example @ipto2 10.0.0.1 where ipto2 is an alias for the previous command
[00:47:44] <supybot> <jamessan> right
[00:48:05] <supybot> <jamessan> @alias add ipto2 "base 16 2 [hexip $1]"
[00:48:06] <supybot> <supybot> jamessan: The operation succeeded.
[00:48:09] <supybot> <jamessan> @ipto2 10.0.0.1
[00:48:11] <supybot> <supybot> jamessan: 1010000000000000000000000001
[00:48:16] <supybot> <jamessan> @ipto2 192.168.1.3
[00:48:17] <supybot> <supybot> jamessan: 11000000101010000000000100000011
[00:48:29] <_stack> yeah :D
[00:48:30] <supybot> <jamessan> the quotes are important
[00:48:34] <supybot> <jamessan> @help alias add
[00:48:35] <supybot> <supybot> jamessan: (alias add <name> <alias>) -- Defines an alias <name> that executes <alias>. The <alias> should be in the standard "command argument [nestedcommand argument]" arguments to the alias; they'll be filled with the first, second, etc. arguments. $1, $2, etc. can be used for required arguments. @1, @2, etc. can be used for optional arguments. $* simply means "all remaining arguments," and cannot be combined (1 more message
[00:48:39] <supybot> <jamessan> @more
[00:48:40] <supybot> <supybot> jamessan: with optional arguments.
[00:48:47] <supybot> <jamessan> hmm, I thought that help mentioned that
[00:48:53] <_stack> gh
[00:48:55] <supybot> <jamessan> well, supybot is running an old version
[00:48:56] <_stack> sorry :)
[00:49:11] <supybot> <jamessan> @alias remove ipto2
[00:49:12] <supybot> <supybot> jamessan: The operation succeeded.
[00:50:01] <_stack> thanks again
[00:51:12] <supybot> <jamessan> you're welcome
[01:20:38] *** danroj has joined #supybot
[01:20:39] <danroj> hi
[01:21:20] <danroj> how can i have more users for controller my bot ?
[01:22:12] <danroj> supybot, help me !!
[01:30:10] <danroj> anybody help me ?
[01:30:17] <danroj> PING 716508974
[01:31:39] *** danroj has quit IRC
[01:38:25] *** wolog has quit IRC
[02:27:30] *** ldlework has joined #supybot
[04:54:23] *** _fx_ has quit IRC
[05:06:46] -supybot- jemfinch has quit oftc (Quit: This computer has gone to sleep)
[05:35:14] *** Gokee2 has joined #supybot
[06:36:09] *** _stack has quit IRC
[06:57:57] *** ldlework has quit IRC
[08:55:25] *** wolog has joined #supybot
[13:04:06] *** macmaN6789 has joined #supybot
[13:28:55] -supybot- |mren4| has joined on oftc
[13:35:48] -supybot- _mren4_ has quit oftc (Ping timeout: 480 seconds)
[13:54:47] -supybot- jemfinch has joined on oftc
[14:01:19] -supybot- jemfinch has quit oftc (Quit: This computer has gone to sleep)
[14:52:28] *** _stack has joined #supybot
[17:34:30] *** wRAR has joined #supybot
[17:38:06] *** wolog has quit IRC
[18:23:24] *** wolog has joined #supybot
[19:04:43] *** tremby has joined #supybot
[19:06:11] <tremby> hey folks. just installed supybot. i can't seem to make it automatically op people. it ops me, but i think this is only because it sees me as the owner. another user has registered and identifies, and i told supybot to op him with channel op username (also tried just op username) but when he disconnects, comes back and identifies he doesn't get opped. i have the automode plugin switched on.
[19:07:03] <tremby> what am i missing?
[19:07:45] <supybot> <jamessan> you need to give you the op capability (@channel capability add op nick) and load/configure the AutoMode plugin
[19:09:15] <tremby> i'm getting "cannot find user op in my database"
[19:09:44] <wRAR> @help channel capability add
[19:09:45] <supybot> wRAR: (channel capability add [<channel>] <nick|username> <capability> [<capability> ...]) -- If you have the #channel,op capability, this will give the user <name> (or the user to whom <nick> maps) the capability <capability> in the channel. <channel> is only necessary if the message isn't sent in the channel itself.
[19:09:51] <supybot> <jamessan> oh, I had it reversed
[19:10:38] <tremby> oh, are you over a xmpp bridge or something?
[19:11:02] <supybot> <jamessan> no, just on another network. supybot is relaying between the #supybot channels
[19:11:34] <tremby> ah
[19:12:29] <supybot> <jamessan> via the Relay plugin
[19:13:07] <_stack> is it possible to limit the "removing alias" only to a certain capability?
[19:13:37] <tremby> thanks jamessan, wRAR -- it's working now.
[19:13:41] *** tremby has left #supybot
[19:28:44] *** ldlework has joined #supybot
[19:36:18] *** wRAR has quit IRC
[19:50:57] *** tremby has joined #supybot
[19:51:53] <tremby> hello again. i'm trying to start supybot as a daemon with start-stop-daemon and make a pidfile so i can stop it later. i'm always getting the wrong pid in the file, though. any idea what may be wrong?
[19:52:45] <supybot> <jamessan> why not just use supybot --daemon (or supybot-botchk)?
[19:53:00] <supybot> <jamessan> @config search pid
[19:53:01] <supybot> <supybot> jamessan: supybot.pidFile
[19:53:05] <supybot> <jamessan> @config help supybot.pidFile
[19:53:06] <tremby> aha
[19:53:06] <supybot> <supybot> jamessan: Determines what file the bot should write its PID (Process ID) to, so you can kill it more easily. If it's left unset (as is the default) then no PID file will be written. A restart is required for changes to this variable to take effect. (Current value: pid.supybot)
[19:53:17] <tremby> great. thanks
[20:08:43] *** Tar-Get- has joined #supybot
[20:16:58] <tremby> jamessan -- i set the pidFile config thing, but the file it's making is empty. i thought it was meant to have the daemon's PID in it
[20:23:28] *** Tar-Get has quit IRC
[20:23:28] *** Tar-Get- is now known as Tar-Get
[20:23:56] *** tremby has left #supybot
[21:17:34] *** fincher has quit IRC
[21:34:10] <Tar-Get> how can you make an alias for a command in supybot?
[21:34:18] <supybot> <jamessan> @help alias add
[21:34:19] <supybot> <supybot> jamessan: (alias add <name> <alias>) -- Defines an alias <name> that executes <alias>. The <alias> should be in the standard "command argument [nestedcommand argument]" arguments to the alias; they'll be filled with the first, second, etc. arguments. $1, $2, etc. can be used for required arguments. @1, @2, etc. can be used for optional arguments. $* simply means "all remaining arguments," and cannot be combined (1 more message
[21:42:46] -supybot- sbi- has joined on oftc
[21:43:03] <supybot> <sbi-> hi
[21:44:58] *** Siavash has joined #supybot
[22:07:27] *** apflstrudl has joined #supybot
[22:12:57] *** fincher has joined #supybot
[22:18:10] <supybot> <sbi-> does this bridgin plugin used here vome with supybot?
[22:20:45] <supybot> <sbi-> or, can I somehow query a loaded plugin for its __init__.py/__url__? :)
[22:20:59] <supybot> <jamessan> it's the Relay plugin
[22:27:24] <supybot> <sbi-> ah, it comes with the bot after all
[22:27:42] <supybot> <sbi-> btw, the plugin repository mentioned in the docs that come with the bot (the one on supybot.com) is dead, right?
[22:27:54] <supybot> <sbi-> or did it just move somewhere where I am too dumb to find it?
[22:28:24] <supybot> <jamessan> it's mentioned in the docs?
[22:29:20] <supybot> <jamessan> ah, it is
[22:30:32] <supybot> <jamessan> yeah, it's gone. there's still the supybot-plugins package on sourceforge but those are primarily plugins written Supybot's authors that weren't considered proper for main distribution
[22:31:18] <supybot> <sbi-> bummer. was it a problem concerning hosting-ressources? because that's the one possible reason I could help out with :)
[22:31:44] <supybot> <jamessan> it was a problem with a plugin we had written for plone. I believe it was the one that provided the ping
[22:31:48] <supybot> <jamessan> er, plugin listing
[22:32:11] <supybot> <jamessan> personally, I'm not fond of being the primary host of 3rd party plugins anyway
[22:32:35] <supybot> <sbi-> well, it would be nice to have a central list at least, even if there's no actual hosting
[22:33:17] <supybot> <jamessan> that I'd be fine with and it's something that I've considered in the mid-term for website plans
[22:33:45] <supybot> <jamessan> short-term (in Supybot world, which is kinda long-term real-world) I'm simply going to get the static-content website running again
[22:34:04] <supybot> <sbi-> I've never done anything with plone or even zope, so I guess there's no real way for me to help out with that?
[22:34:29] <supybot> <sbi-> I can do html, css, python, perl, ruby, php, java, actionscript :)
[22:34:33] <supybot> <jamessan> I wont' be using plone/zope for the resurrected website
[22:34:47] <supybot> <jamessan> we had a static-content website before supybot.com, which is what will be coming back up first
[22:35:05] <supybot> <jamessan> then I may move things to a trac setup or something along those lines
[22:35:32] <supybot> <sbi-> we use trac at work a lot, I quite like it. quite underdocumented but asides from that..
[22:35:39] <supybot> <sbi-> I've written a few trac plugins even
[22:36:48] <supybot> <sbi-> is there a still active ML or something, where this is coordinated? so I can watch out for opportunities to help out there?
[22:37:13] <supybot> <jamessan> not much coordination needed for one person :p
[22:37:45] <supybot> <sbi-> you're the sole author of supybot?
[22:37:48] <supybot> <sbi-> or just the website?
[22:38:56] <supybot> <jamessan> I'm not the original author of Supybot, but I'm essentially the last remaining active one
[22:39:35] <supybot> <sbi-> that's quite the bummer. It's a very nice piece of software.
[22:40:15] <supybot> <sbi-> just started using it a few hours ago and already wrote my first plugin to manage a webradio of a friend of mine
[22:40:23] <supybot> <jamessan> nice
[22:40:29] <supybot> <sbi-> really nice and simple API, very well documented
[22:40:45] <supybot> <sbi-> (at least for the things I needed so far :))
[22:42:13] <supybot> <jamessan> heh, not that well documented once you get away from the basics (unless you count the ~50 plugins that come with Supybot)
[22:42:22] <supybot> <sbi-> so far, I'm not missing any features or ran into any bugs, so I wouldn't really know where to get started with helping out :)
[22:43:00] <supybot> <Strike> jamessan: did we ever get a dump of the plone stuff? because that may have been the only copy I have of the plugin author tutorial :(
[22:43:11] <TidusBlade> Sorry to interupt the conversation :P But I was wondering if supybot comes with some sort of plugin that tells a certain user a message when he logs in?
[22:43:21] <TidusBlade> like leaving a message
[22:43:33] <supybot> <jamessan> Strike: duh, it's in docs/
[22:43:34] <supybot> <sbi-> tidusblade, yes
[22:43:44] <supybot> <jamessan> TidusBlade: Later
[22:43:54] <supybot> <sbi-> I just read about it, have to look up the name
[22:43:55] <TidusBlade> Hmmm, I'll check it out :)
[22:43:57] <supybot> <sbi-> ah, no I don't :)
[22:44:05] <supybot> <jamessan> it triggers on the person saying something, though, not just them joining the channel
[22:44:20] <TidusBlade> Ah ok thanks, found it ^^
[22:44:30] <TidusBlade> Hmmm, should work well enough
[22:44:40] <supybot> <sbi-> allthough most IRC networks provide such a facility directly
[22:44:56] <supybot> <sbi-> though MemoServ or NoteServ or something like that
[22:44:59] <supybot> <jamessan> as long as the person is registered with the proper bot on the network
[22:45:01] <supybot> <sbi-> through even
[22:45:05] <TidusBlade> Yeah but I'm on a friend's IRC server, he's only got the bare essentials :P
[22:45:07] <supybot> <Strike> jamessan: oh, shows how much I know :\
[22:45:20] <supybot> <jamessan> whereas Supybot matches against the nick
[22:45:36] <supybot> <sbi-> ok, that's a plus I guess
[22:51:57] <supybot> <sbi-> hm, one thing that sucks about supybot is that all the functionality we need except the management of our webradio is already provided by existing plugins
[22:52:13] <supybot> <sbi-> so I don't have anymore plugins to write :)
[22:52:32] <supybot> <jamessan> hah
[23:01:09] <supybot> <sbi-> hm, is it possible to let supybot react to a pattern matched anywhere in a message?
[23:01:51] <supybot> <sbi-> I mean, I tell him to trigger command foo if a message contains bar and the command then gets execute if someone say 'I wen to a nice bar last night'
[23:02:32] <supybot> <jamessan> the doPrivmsg method receives all PRIVMSGs. you can also have regexp-based (addressed or otherwise) commands
[23:03:26] <supybot> <sbi-> hm, does what work by passing a special parameter to wrap()?
[23:04:05] <supybot> <jamessan> the regexp-based commands? no, you define a list of commands and then the regex is their docstring
[23:04:32] <supybot> <jamessan> take a look at PluginRegexp in src/callbacks.py to see the parent class you'll want to use
[23:04:45] <supybot> <sbi-> ok, thanks
[23:04:46] <supybot> * jamessan looks for a plugin that uses this functionality
[23:05:59] <supybot> <sbi-> I think the docstring and comments in PluginRegexp are enough, thanks
[23:06:17] <supybot> <jamessan> ok :)
[23:06:55] <supybot> <jamessan> Ctcp, Google, ShrinkUrl, and Web all use regexps. I thought we had some that used (un)addressedRegexps, but I guess not
[23:16:08] *** P4 has quit IRC
[23:16:20] *** P4 has joined #supybot
[23:25:06] <supybot> <sbi-> hm, is there a utility function to be used in plugins somewhere to parse the msg argument passed to plugin commands?
[23:26:07] <supybot> <sbi-> ah
[23:26:28] <supybot> <sbi-> commands matched by regexps get slightly different args anyway
[23:26:30] <supybot> <sbi-> very nice
[23:39:41] <supybot> <sbi-> hm, the only thing happening when the regexp of my command is matched is supybot saying 'Error:'. I have switched detailed error reporting on, the loglevel for the console is INFO. still, nothing is printed on the console, no traceback on irc :(
[23:42:59] *** Iwanowitch has joined #supybot
[23:43:27] <supybot> <sbi-> ah, seems like my error was using commands.wrap
[23:45:08] <supybot> <jamessan> oh, yeah. commands are only things that show up in a @list of the plugin
[23:52:24] <supybot> <sbi-> ok, now we finally have a plugin that randomly insults people! :)
[23:52:38] <supybot> <sbi-> how could we live without that before now I do not know :)
[23:52:39] <Iwanowitch> Is it possible to execute multiple commands in one line? For example to have two "do" actions with one alias.
[23:53:21] <supybot> <sbi-> iwan, well, you can do 'pipes' (inline commands or what they're called)
[23:53:52] <Iwanowitch> @[do one] [do two]
[23:53:53] <supybot> Iwanowitch: Error: You must be registered to use this command. If you are already registered, you must either identify (using the identify command) or add a hostmask matching your current hostmask (using the addhostmask command).
[23:53:57] <Iwanowitch> Or something?
[23:53:59] <supybot> <jamessan> Iwanowitch: can you give a more concrete description of what you want?
[23:54:31] <supybot> <jamessan> @utilities ignore [do wave] [do bow]
[23:54:32] <supybot> * supybot wave
[23:54:43] <supybot> <jamessan> @config search onetoone
[23:54:44] <supybot> <supybot> jamessan: supybot.reply.oneToOne
[23:54:49] <supybot> <jamessan> @config list reply
[23:54:50] <supybot> <supybot> jamessan: #inPrivate, #requireChannelCommandsToBeSentInChannel, #showSimpleSyntax, #whenNotAddressed, #whenNotCommand, #withNickPrefix, #withNotice, @#mores, @error, @format, @whenAddressedBy, maximumLength, oneToOne, and withNoticeWhenPrivate
[23:55:01] <supybot> <jamessan> @config reply.oneToOne false
[23:55:02] <supybot> <supybot> jamessan: The operation succeeded.
[23:55:03] <supybot> <jamessan> @utilities ignore [do wave] [do bow]
[23:55:05] <supybot> * supybot wave
[23:55:10] <supybot> <jamessan> @config reply.oneToOne true
[23:55:11] <supybot> <supybot> jamessan: The operation succeeded.
[23:55:24] <supybot> <jamessan> so, no. not without writing a plugin
[23:56:16] <Iwanowitch> Okay, thanks. Suppose I'm off to studying the supybot API then.
[23:56:33] <supybot> <sbi-> it's really easy :)
[23:56:46] <supybot> <sbi-> I started using it a few hours ago and already wrote two plugins :)
[23:58:32] <supybot> <jamessan> we generally follow a "one response to one command" philosophy
[23:58:59] <supybot> <jamessan> in some plugins, it makes sense to violate that, hence the oneToOne config (which defaults to true)
[23:59:31] <Iwanowitch> It's mostly for entertainment value. Something like making the bot have an internal monologue.
top

   December 5, 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 | >