Search found 1884 matches

by Tyrence
Thu Mar 18, 2010 4:14 am
Forum: Misc/Tools
Topic: function processCommandType($type)
Replies: 2
Views: 1207

function processCommandType($type)

In an effort to reduce boilerplate code in the module descriptor file, I've added some new functionality. Before, passing command types individually: bot::command("priv", "$MODULE_NAME/topic.php", "topic", "all", "Show Topic"); bot::command("gui...
by Tyrence
Thu Mar 18, 2010 4:05 am
Forum: Misc/Tools
Topic: bot::reply($type, $sender, $message);
Replies: 4
Views: 1433

bot::reply($type, $sender, $message);

I added a method to Chatbot: bot::reply($type, $sender, $message); this is a convenience method for modules that can be uses in place of the code below in modules: if($type == "msg") bot::send($msg, $sender); elseif($type == "priv") bot::send($msg); elseif($type == "guild&qu...
by Tyrence
Thu Mar 18, 2010 3:38 am
Forum: Modules
Topic: how to handle .sql files for user-created modules
Replies: 18
Views: 4899

Re: how to handle .sql files for user-created modules

I know why the INT -> INTEGER was in there....because I just got this error Error msg: AUTOINCREMENT is only allowed on an INTEGER PRIMARY KEY Query: CREATE TABLE IF NOT EXISTS news_whizbot1 (`id` INT PRIMARY KEY AUTOINCREM ENT, `time` INT NOT NULL, `name` VARCHAR(30), `news` TEXT) so basically, it ...
by Tyrence
Thu Mar 18, 2010 2:14 am
Forum: Modules
Topic: how to handle .sql files for user-created modules
Replies: 18
Views: 4899

Re: how to handle .sql files for user-created modules

I noticed that the query() methods already checks to see if the statement begins with "CREATE" and if it does, passes it to the createTable method. so we really don't need to do anything except maybe make luc's changes that check both sqlite and mysql syntax and take out the replace for IN...
by Tyrence
Wed Mar 17, 2010 10:34 pm
Forum: Modules
Topic: To Moduleauthors: Beware of Linux
Replies: 1
Views: 1222

Re: To Moduleauthors: Beware of Linux

yeah that is good to remember.

btw, if you find problems with modules in linux (or any problems really), please let us know so we can get them updated.
by Tyrence
Wed Mar 17, 2010 6:47 pm
Forum: General
Topic: including all third party modules with budabot
Replies: 11
Views: 1801

Re: including all third party modules with budabot

It's not that I'm saying no to the idea. I'm just saying no to the idea of me doing it :P I'm sure if someone wrote a gui install for it tho, we'd include it in the package. As a side note, I just copy modules into the modules folder to install and delete modules from the modules folder to uninstall...
by Tyrence
Wed Mar 17, 2010 4:57 pm
Forum: General
Topic: eregi deprecated
Replies: 1
Views: 816

eregi deprecated

according to: http://nl2.php.net/manual/en/function.eregi.php the function eregi, ereg, and others are deprecated in php 5.3.0 and are being removed in php 6. we should discontinue the use of those. the replacements are the perl-compatible library functions. for ereg you can use preg_match instead. ...
by Tyrence
Wed Mar 17, 2010 4:46 pm
Forum: Modules
Topic: how to handle .sql files for user-created modules
Replies: 18
Views: 4899

Re: how to handle .sql files for user-created modules

excellent. maybe we will have you test 0.6.6 before we release it. I think it will be ready in a week or two

btw, 'nature given'...is that the opposite of 'god-given'? :P
by Tyrence
Wed Mar 17, 2010 4:37 pm
Forum: Modules
Topic: Realname module
Replies: 4
Views: 1677

Re: Realname module

Just two days ago someone was asking me how to get that on their and I didn't have any idea because I had never seen it.

You aren't/weren't by chance in WP on rk2, were you?
by Tyrence
Wed Mar 17, 2010 4:16 pm
Forum: General
Topic: including all third party modules with budabot
Replies: 11
Views: 1801

Re: including all third party modules with budabot

hmmm, I agree that would be a nice solution. and very user friendly. However, just based on the amount of work required to write a gui with that option, it probably won't happen, especially since they really would only use that one time during install, and there are other almost-as-easy ways :) EDIT...

Go to advanced search