[03:00:33] snarfer has joined #noxbot
[04:16:25] snarfer has quit:
[07:59:47] ObiKenobi has joined #noxbot
[08:45:20] ObiKenobi has parted:
[15:18:28] <JohnTitor> SVN--> admin commited r277 to noxbot with log message: Some more work towards the localization. In theory it should now translate just about any text in NoxBot if it has an entry. (+187, -73).
[19:43:45] snarfer has joined #noxbot
[19:44:16] <snarfer> Blah
[19:44:37] <snarfer> I have tried to make noxbot a persistent process on my server, using the nohup command
[19:44:50] <snarfer> But it keeps dying D:
[19:57:23] <CyaNox> snarfer: is it the bot's fault (do you get an error) or is it your fault?
[19:57:38] <snarfer> It could be mine
[19:57:54] <snarfer> When I exit out of the SSH session, the bot is still alive
[19:58:10] <snarfer> But when I go back on the next day, it's gone
[19:59:15] <CyaNox> hhhmmm what does data/system/phperr.log and data/system/error.log say?
[20:02:03] * CyaNox pokes snarfer
[20:02:15] <snarfer> Sorry
[20:03:47] <snarfer> o.O
[20:04:01] <snarfer> There's only system.ini, users.dat, and users.txt
[20:05:30] <CyaNox> ok then its not the bot who is at fault
[20:06:20] <CyaNox> snarfer: did you look at the file scripts/runinfinite.sh
[20:07:29] <snarfer> No, but thanks
[20:07:31] <snarfer> !
[20:07:49] <CyaNox> it requires some small changes but afaik you can run it like: "sh /path/to/noxbot/scripts/runInfinite.sh &"
[20:07:55] <CyaNox> note the & at the end.
[20:08:10] <CyaNox> you can even try php noxbot.php &
[20:08:16] <CyaNox> again note the & at the end.
[20:09:17] <CyaNox> I might however some day write proper init scripts for noxbot on linux.
[20:10:22] <CyaNox> snarfer: If you want proper init scripts you should write a new ticket on https://cyanox.nl/trac/noxbot/newticket
[20:13:37] <snarfer> Hm
[20:14:13] <snarfer> I was thinking I may make a standalone .app for Mac OSX
[21:46:34] <CyaNox> snarfer: Any luck yet?
[21:46:51] <snarfer> Oh, on getting the bot running?
[21:46:52] <snarfer> Yes
[21:46:57] <snarfer> Thank you
[21:47:41] <CyaNox> what about the "standalone .app for Mac OSX"?
[21:48:39] * snarfer got distracted
[21:48:52] <snarfer> I'll give it a shot
[21:50:31] <CyaNox> well I will not be able to test it since I don't own a mac.
[21:50:36] <snarfer> The way I'd approach it, is that the user would still have to edit the conf.php file
[21:50:46] <snarfer> CyaNox: Don't worry about it, I do
[21:51:22] <snarfer> BRB
[22:03:55] <snarfer> Hmm
[22:04:02] <snarfer> Is there a noxbot icon?
[22:08:00] <snarfer> Odd
[22:36:16] JohnTitor has joined #noxbot
[22:36:16] ChanServ sets mode: +o JohnTitor
[22:36:46] <CyaNox> the worst thing is it affected more then just your bot so its a serious bug.
[22:40:18] JohnTitor has joined #noxbot
[22:40:26] ChanServ sets mode: +o JohnTitor
[22:40:43] <CyaNox> snarfer: what you need to do is remove data/system/settings.ini
[22:41:02] <CyaNox> or wait ... submit that as attachment then remove it.
[22:41:30] <snarfer> I have two config.php files, and I'm in the middle of attaching the original
[22:42:03] <CyaNox> attach settings.ini then the config.php file is not needed anymore
[22:42:27] <CyaNox> altering the config has no influance after the bot has already been run.
[22:42:49] <CyaNox> Thats why altering the config value DEFAULT_NICKNAME has no influance on the bots nickname.
[22:44:19] <snarfer> https://cyanox.nl/trac/noxbot/attachment/ticket/45/settings.ini
[22:44:29] <CyaNox> already seen it
[22:45:03] <snarfer> o.O
[22:45:22] <snarfer> You sure? That's the settings.ini file you wanted
[22:46:09] <CyaNox> not really but thanks anyway ... I'm currently digging through the code to see whats going wrong
[22:46:37] <CyaNox> atleast I have a backtrace
[22:47:21] <CyaNox> hhhmmm looks like the datahelper object is invalid
[22:48:09] <CyaNox> oeh this might actually be a hard one ...
[22:48:57] <CyaNox> I might have fixed it
[22:49:57] JohnTitor has joined #noxbot
[22:49:58] ChanServ sets mode: +o JohnTitor
[22:50:08] <CyaNox> snarfer: Could you start your bot (unmodified)
[22:50:24] <snarfer> I haven't changed anything
[22:50:26] <snarfer> So
[22:50:45] _ has joined #noxbot
[22:50:45] _ has quit: Remote closed the connection
[22:50:55] <CyaNox> ok great
[22:50:59] <CyaNox> fixed that problem
[22:51:05] <snarfer> All right
[22:51:12] <snarfer> I have the .app bundle
[22:51:12] <CyaNox> open up classes/datahelper.php
[22:51:13] <CyaNox> go to line 101
[22:51:37] <CyaNox> the first + sign in that big regex needs to be a *.
[22:52:09] <CyaNox> snarfer: if you did that start the bot.
[22:52:19] <CyaNox> if I'm right it'l stay online.
[22:53:08] _ has joined #noxbot
[22:53:16] <CyaNox> _: version
[22:53:17] <_> NoxBot version 0.3.1 (r0 Unknown) made by Mark Sanders (CyaNox) running with PHP 5.1.6 on Darwin since Mon, 29 Jan 2007 22:52:40 +0100.
[22:54:16] _ has quit: Remote closed the connection
[22:54:48] _ has joined #noxbot
[22:54:57] <snarfer> What's with the _ ?
[22:55:23] <JohnTitor> SVN--> admin commited r278 to noxbot with log message: Fixed bug reported in #45. (+1, -1).
[22:55:47] _ has quit: Remote closed the connection
[22:56:54] <CyaNox> snarfer: Thats the nickname it gets
[22:57:02] <snarfer> x.X
[22:57:15] <CyaNox> not entirely sure why though
[22:57:33] <CyaNox> you might try a clean install
[22:59:05] <snarfer> Hm
[22:59:10] <snarfer> All right
[23:00:01] <snarfer> Clean install from SVN or from nnoxbot.org?
[23:01:31] <CyaNox> well eehhmm svn has some experimental code in it currently ... some code I havent tried even.
[23:01:50] <CyaNox> but svn has the fix for the encountered bug.
[23:02:05] <CyaNox> Although that bug might not appear on second install however.
[23:02:09] <CyaNox> So you can try both.
[23:02:17] * snarfer tries both
[23:02:20] <CyaNox> I'd go with 0.3.1 first
[23:04:55] <snarfer> All right
[23:06:11] testbot9683 has joined #noxbot
[23:06:18] <snarfer> Yay.
[23:07:45] <CyaNox> testbot9683: version
[23:07:45] <testbot9683> NoxBot version 0.3.1 (r0 Unknown) made by Mark Sanders (CyaNox) running with PHP 5.1.6 on Darwin since Mon, 29 Jan 2007 23:05:52 +0100.
[23:08:03] <CyaNox> snarfer: what is your native language?
[23:08:13] <snarfer> English
[23:08:21] <CyaNox> snarfer: or what languages do you know well enough to translate to?
[23:08:31] <snarfer> I know some Spanish
[23:08:36] <snarfer> Just to get around really
[23:08:51] <CyaNox> probably not enough to translate noxbot's texts?
[23:09:52] <snarfer> that's a big /maybe/
[23:12:19] <CyaNox> well I'm working on localization in noxbot ATM
[23:12:46] <CyaNox> You can help me improve the english bits and possibly work on the spanish bits.
[23:13:03] * snarfer doesn't know any German
[23:13:25] <CyaNox> the bot and its texts are written in english ... so no german is required
[23:13:31] <CyaNox> besides my german sucks ass
[23:13:34] <CyaNox> I'm dutch
[23:14:09] testbot9683 has quit: Remote closed the connection
[23:15:24] <CyaNox> snarfer: Are you interrested in how a language file might look like?
[23:15:41] <snarfer> It would be handy
[23:16:41] <CyaNox> http://rafb.net/p/uj1iUG62.html
[23:17:00] <CyaNox> quite chaotic atm
[23:17:23] <snarfer> Hm
[23:17:26] <CyaNox> but I'm trying to think of a better way to organize it. Possibly by class and plugin.
[23:17:45] <snarfer> Well, in SVN, apparently there's a version
[23:17:50] <snarfer> Er
[23:17:59] <snarfer> s/version/language class
[23:18:06] <CyaNox> yep in svn there is
[23:18:19] <CyaNox> thats what is going to translate the stuff
[23:18:34] <CyaNox> it should work afaik but its untested
[23:18:47] <CyaNox> nor is there a method to actually select a language yet
[23:19:21] <snarfer> http://us2.php.net/manual/en/function.mb-language.php
[23:19:50] <CyaNox> thats not related to noxbot
[23:20:07] <CyaNox> noxbot has its own texts ... PHP can't magically translate that
[23:20:40] <snarfer> True, but noxbot can "automagically" set a user's outputted text in the console
[23:20:48] <CyaNox> although if you look closely at the current code in SVN you will notice I made it kindoff magick how noxbot will translate the texts
[23:21:38] <CyaNox> besides that mb_language is part of the mbstring exension which ... is an extension.
[23:22:00] <CyaNox> If I use that it means noxbot has a new dependency.
[23:22:19] <CyaNox> which is exactly the path I prefer to avoid.
[23:22:20] <snarfer> php.net/http-negotiate-language
[23:22:25] <snarfer> Though
[23:22:47] <snarfer> (You didn't close your PHP tags in classes/lang.php)
[23:23:27] <CyaNox> and http-negotiate-language does not work in console.
[23:23:51] <CyaNox> the standard PHP functions or the functions of extensions won't help NoxBot with localization.
[23:24:04] <snarfer> True
[23:24:21] <snarfer> So, leave it up to the user to set their lang in config.php ?
[23:25:00] <CyaNox> no only really needed things go into config.php ... which probably means nothing will be added there at all.
[23:25:51] <CyaNox> infact the DEFAULT_* values are only used when a new server is initialized.
[23:27:05] <snarfer> H
[23:27:08] <snarfer> Hm8
[23:27:45] <CyaNox> and initializing a new server is usually only done once.
[23:27:57] <CyaNox> in the case of JohnTitor it however happened twice.
[23:28:17] <CyaNox> and thats because JohnTitor is also connected to irc.cyanox.nl as NoxBot
[23:28:28] <snarfer> Right
[23:29:03] <CyaNox> actually you can change the language already but iirc it has no influance yet.
[23:29:42] <snarfer> OK
[23:29:50] <snarfer> Well, let me know when you have the docs sorted out
[23:29:54] <snarfer> I'll see what I can do
[23:30:04] <snarfer> !version
[23:30:04] <JohnTitor> NoxBot version 0.3.1 (r275 Modified) made by Mark Sanders (CyaNox) running with PHP 5.2.0 on Linux since Mon, 29 Jan 2007 22:49:53 +0100.
[23:30:42] <CyaNox> the docs?
[23:30:55] <CyaNox> currently there is no work planned on the documentation.
[23:31:31] <CyaNox> Only documentation I will be doing is for the new commands in 0.4 and they can be requested with the !help command.
[23:31:53] <snarfer> Right
[23:32:44] <snarfer> Is there anything is scripts/ that's required at all?
[23:32:58] <CyaNox> no there is not
[23:33:24] <CyaNox> it is however bundled because it can be useful.
[23:33:45] <snarfer> Yes, but useless in the .app
[23:33:59] <CyaNox> and in case you want to setup the svnhook plugin its rather nice to have the svnhook.php example file.
[23:34:04] <CyaNox> not useless
[23:34:08] <snarfer> Since there is no SVN checkout info, and the app will run forever until it's killed
[23:34:16] <CyaNox> I would add it to the .app if I where you.
[23:34:36] <CyaNox> what app will run forever?
[23:34:45] <snarfer> noxbot.app
[23:34:52] <CyaNox> why would it run forever?
[23:34:58] <snarfer> I will run until the user quits it
[23:35:04] <CyaNox> and why is that?
[23:35:28] <snarfer> Because if I don't, there is no tell when and if the script finished executing
[23:35:34] <snarfer> So once the app is run
[23:35:39] <snarfer> It quits
[23:35:43] <snarfer> Without doing anythin
[23:35:50] <snarfer> Anything*
[23:36:05] <CyaNox> well why does the .app not quit then?
[23:36:18] <CyaNox> and what script are you talking about?
[23:36:54] <snarfer> noxbot.php is the script, and I told the "compiler" not to quit until instructed
[23:37:31] <CyaNox> ofcourse noxbot.php never quits by itself
[23:37:47] <CyaNox> it has the !quit command on irc if you need to quit it.
[23:38:00] <snarfer> hm
[23:38:27] <CyaNox> infact if you interrupt it it might not save the changes you applied.
[23:38:44] <CyaNox> so always use the irc command to quit it.
[23:39:12] <snarfer> The way that the interpreter (an application called platypus) sees the php script as finished executing by the amount of output is creates
[23:39:19] <snarfer> Not by a cntrl-c
[23:39:59] <CyaNox> well it creates an infinite amount of output.
[23:40:16] <snarfer> Whitespace != output in this case
[23:40:42] <CyaNox> well it always creates output no matter what.
[23:40:59] testbot9683 has joined #noxbot
[23:41:05] <CyaNox> But if you have your debug_level set to 0 it will be rather limited.
[23:41:15] <CyaNox> but still infinite
[23:41:26] <snarfer> True
[23:41:55] <snarfer> Sorry, I'm having the hardest time trying to figure this out myself
[23:41:59] <snarfer> So I can explain it
[23:42:40] <CyaNox> Well I know all of the inner workings of noxbot so I'm your best bet at onderstanding it.
[23:44:25] <snarfer> OK, OSX runs it's applications using a Mach-o binary file
[23:44:27] <snarfer> http://en.wikipedia.org/wiki/Mach-o
[23:44:37] <snarfer> so
[23:45:11] <CyaNox> why would you need an executable format for noxbot?
[23:45:22] <snarfer> CyaNox: To make a .app
[23:45:38] <CyaNox> you can run noxbot directly through the php interpreter.
[23:45:54] <snarfer> That is very true
[23:46:02] testbot9683 has quit: Remote closed the connection
[23:46:18] <CyaNox> and its the adviced method to run it.
[23:46:31] <snarfer> Fair enough
[23:46:59] <CyaNox> I thought that .app was just some form of a installation thing.
[23:47:09] <snarfer> Not really
[23:47:15] <CyaNox> like the .nsi script in /scripts/
[23:47:39] <CyaNox> then what is the advantage of .app?
[23:47:49] <snarfer> There's an equivalent in OSX, but that would be overkill
[23:48:25] <snarfer> The advantage of a .app is that all of the files are consolidated and you don't need to use the command line
[23:48:41] <CyaNox> so its more or less a shortcut
[23:49:04] <CyaNox> then why can't the shortcut directly call php with as argument noxbot.php
[23:49:28] <snarfer> Which is essentially what I'm doing
[23:50:40] <CyaNox> so why do you need to create a binary?
[23:50:49] <CyaNox> php is already one afaik.
[23:51:40] <snarfer> Because when a user would click on a .php file, their text editor would open it up
[23:51:57] <snarfer> Instead of opening in the console
[23:52:03] <snarfer> And then running
[23:52:06] <CyaNox> well the same happens here on windows
[23:52:10] <CyaNox> as on linux
[23:52:43] <CyaNox> on both these systems I can create a shortcut to execute "php noxbot.php"
[23:53:13] <CyaNox> or even more elaborate "cd /path/to/noxbot/; php noxbot.php"
[23:53:38] <snarfer> Think of a .app as a .exe
[23:53:50] <snarfer> They do pretty much the same thing
[23:53:52] <CyaNox> which is exactly what noxbot is not.
[23:54:25] <snarfer> I would love to continue this conversation
[23:54:30] <snarfer> But I gotta run to work
[23:54:36] <CyaNox> there might someday be an incarnation of noxbot as an execuable
[23:55:01] <snarfer> Sounds good, but I gotta run
[23:55:04] <CyaNox> but that day is not with the currenct code nor the language PHP.
[23:55:05] snarfer has quit:
[23:56:23] <JohnTitor> SVN--> admin commited r279 to noxbot with log message: Now loading and initializing the language class. (+5, -0).