Some brainstorming was seen at #coders today, enjoy
(2012-07-17 20:12:09) Marebone: Tyrence: you remember, with the WEBUI discussion, the plan was to package the ui pages with xampp and then the pages would communicate with the bot through budapi, right?
(2012-07-17 20:12:57) Tyrence: umm I didn't think we ever got that far in the discussion
(2012-07-17 20:13:03) Tyrence: cuz I don't remember that
(2012-07-17 20:13:16) Tyrence: I do remember someone mentioning something about xampp
(2012-07-17 20:13:54) Marebone: it was mentioned in quite a many posts in that topic
(2012-07-17 20:14:18) Tyrence: hehe ok
(2012-07-17 20:14:21) Marebone: since windows doesn't have any easy way to install web server on it
(2012-07-17 20:15:08) Tyrence: anyway what about it?
(2012-07-17 20:15:32) Marebone: well, I think there would be an easier way of doing this
(2012-07-17 20:16:17) Marebone: we could just embed a http server into Budabot
(2012-07-17 20:17:11) Marebone: it already has the budapi server in it, so having a http server shouldn't be impossible
(2012-07-17 20:17:42) Tyrence: hehe yeah um
(2012-07-17 20:18:36) Tyrence: it's possible for sure
(2012-07-17 20:18:52) Tyrence: i don't know how feasible tho
(2012-07-17 20:19:02) Marebone: then there would not be any problems of how to package it for windows
(2012-07-17 20:20:41) Tyrence: http://php.net/manual/en/features.comma ... server.php
(2012-07-17 20:20:45) Tyrence: need 5.4 for that tho
(2012-07-17 20:21:04) Marebone: and the webui could then have access to the bot's database and internal variables with ease
(2012-07-17 20:21:45) Marebone: I was more like thinking this one: http://nodephp.org/
(2012-07-17 20:22:44) Tyrence: ah hmmm
(2012-07-17 20:23:02) Marebone: needs 5.3 though
(2012-07-17 20:23:42) Marebone: although, I had an another idea for that version problem
(2012-07-17 20:23:54) Tyrence: i think budabot will run 5.3 right now
(2012-07-17 20:24:22) Marebone: it does, on windows, but does it on other OSes?
(2012-07-17 20:24:31) Tyrence: well it should
(2012-07-17 20:24:33) Tyrence: the hardest part about 5.3 is that most linux distros don't have that in their standard repos
(2012-07-17 20:24:58) Tyrence: but if u can get 5.3 installed, it should run no problem
(2012-07-17 20:25:51) Marebone: well, I thought we could somehow mark into budabot's modules which php version, at minimum, they require
(2012-07-17 20:26:13) Tyrence: and if it's below that number don't activate them?
(2012-07-17 20:26:16) Tyrence: that's a good idea
(2012-07-17 20:26:42) Marebone: when the modules are being loaded, budabot would ignore modules which require newer version that what is currently in use
(2012-07-17 20:26:52) Tyrence: but i'm pretty confident that they will all run on 5.3 already
(2012-07-17 20:26:53) Marebone: yep
(2012-07-17 20:28:47) Marebone: well, I could use 5.3 from now on.
(2012-07-17 20:29:05) Marebone: if it is a problem to someone, I can add that minimum version feature to fix it
(2012-07-17 20:29:49) Marebone: ofc, might be useful also, if somone wants to use, say 5.4 for module developping
(2012-07-17 20:30:06) Tyrence: yeah
(2012-07-17 20:32:25) Marebone: oh, and about the http server. I thought we could also replace the current budapi with that. We could still sent commands through it, like:
(2012-07-17 20:32:25) Marebone: http://localhost/api/command/?cmd=homer ... assword=..
(2012-07-17 20:33:06) Marebone: and the webui could be found from http://localhost/admin/
(2012-07-17 20:33:22) Tyrence: hmm yeah that would be a lot better i think
(2012-07-17 20:36:02) Marebone: oh and that !say command, which is quite useless for in-game, would be better as a web resource, like: http://localhost/api/guild/message?mess ... assword=..
(2012-07-17 20:36:26) Tyrence: yeah
(2012-07-17 20:36:53) Iriche: http://www.facebook.com/photo.php?v=382 ... eo_comment
this is so cool
(2012-07-17 20:41:16) Tyrence: so if you changed all that, do you think php could still handle it well?
(2012-07-17 20:44:11) Marebone: no idea really, I guess, when the server is added to budabot's reactor loop, it has to be done so that it doesn't slow down the bot
(2012-07-17 20:44:25) Marebone: even with increased load on http server
(2012-07-17 20:44:25) Tyrence: yeah
(2012-07-17 20:45:14) Iriche: downside with php
(2012-07-17 20:45:19) Iriche: very low support for threading
(2012-07-17 20:45:23) Marebone: yep
(2012-07-17 20:45:38) Iriche: if you have any part of the bot that checks a database i would just leave http seperate but could be php
(2012-07-17 20:45:44) Iriche: and then let them communicate via sql
(2012-07-17 20:45:45) Iriche: or any other
(2012-07-17 20:46:15) Marebone: yea, the communication becomes a lot harder it is a separate process
(2012-07-17 20:46:21) Marebone: +if
(2012-07-17 20:55:12) Marebone: I thought that I would actually implement many of those features which I have currently on Bot Manager's backlog into the webui. Like that !config-UI. And I would leave to Bot Manager what cannot be implemented to the webui.
(2012-07-17 20:56:41) Tyrence: ah i see
(2012-07-17 20:58:11) Marebone: this way I don't need to implement same features two times, once into Bot Manager and again to Web UI.
(2012-07-17 20:58:48) Tyrence: yeah
(2012-07-17 20:59:13) Tyrence: and for people that don't want to install python to use the gui they will still get some ui control
(2012-07-17 20:59:25) Marebone: that is true