SMF AI BOT

Started by Master of Eternity, February 17, 2007, 12:46:39 AM

Previous topic - Next topic

Master of Eternity

I guess most of you guys Might have Already Had a look at phpBB's AI BOT Mod.
Can Anyone Code that for SMF Too.
Contact me for Files of phpBB.
Please it will be a Great Modifiction and you guys will be famous and Remebered for that.

NEMINI

no idea what it is, care to explain it or at least provide a link to it that does
signatures are boring.

Master of Eternity

#2
I mean and AIML BOT which will be on your Forum all Day Long. Whenever Someone posts Anything, It replies Automatically.

Here the Download Link for phpBB Mod
http://prdownloads.sourceforge.net/iai/forum_ai_0_2_0.zip?download

Can Any One Code this FOr SMF?

JRSofty

This project is already underway and can be viewed here:

http://smfbot.dev.dansoftaustralia.net/

I can't say how long it will take but you can follow the progress also at my personal site where I'm posting articles on the modification's design.

Rebooting the SMF AI Bot see Project link below for details

http://jrsofty1.stinkbugonline.com
http://www.galahtech.org

SMF Bot Project

Harro

Used to have it on my phpBB forum as well.
Would be great to have one for SMF!
Gonna keep an eye on it ;)

Master of Eternity

Quote from: JRSofty on April 05, 2007, 04:35:29 AM
This project is already underway and can be viewed here:

http://smfbot.dev.dansoftaustralia.net/

I can't say how long it will take but you can follow the progress also at my personal site where I'm posting articles on the modification's design.


The Link you gave isn't working......

JRSofty

Yeah I know, my project host is having some problems with his server.

But as an Update things are going fairly smoothly. I'm finishing up the administrative functions. The next step will be the administrative templates and then I'll try a package and test it for basic operation.

I'll post a message on my website http://jrsofty1.stinkbugonline.com when I'm ready to release the Alpha test for people to give me feedback.

Once again sorry about the link.
Rebooting the SMF AI Bot see Project link below for details

http://jrsofty1.stinkbugonline.com
http://www.galahtech.org

SMF Bot Project

KGIII

If it isn't too busy and you need a temp spot until things are fixed up YOU have permission to PM me for this. (I dislike PMs in general.)

My PC Support Forum
Please ask in-thread before PMing
                   SMF Help
                   Visit My Blog

How can we improve the support process?:
http://www.simplemachines.org/community/index.php?topic=163533.0

SMF vs. Godzilla? Who do you think will win?

JRSofty

Thanks but the release isn't ready yet anyways.

The development has hit a snag until the I figure out how to stagger the AIML loads for server protection.

The dev site from Daniel15 is only for the Subversion so I can share the code with others.
Rebooting the SMF AI Bot see Project link below for details

http://jrsofty1.stinkbugonline.com
http://www.galahtech.org

SMF Bot Project

KGIII

Alrighty. I have a couple of spare domains and a hosting company so I thought I'd at least offer as this seems like a good project.

My PC Support Forum
Please ask in-thread before PMing
                   SMF Help
                   Visit My Blog

How can we improve the support process?:
http://www.simplemachines.org/community/index.php?topic=163533.0

SMF vs. Godzilla? Who do you think will win?

JRSofty

Thanks again,

I'll keep you in mind if and when I decide to put everything under one roof. ;)

What I'm looking for mostly right now are people who are willing to test it once I release the Alpha Preview.
Rebooting the SMF AI Bot see Project link below for details

http://jrsofty1.stinkbugonline.com
http://www.galahtech.org

SMF Bot Project

JRSofty

Sorry for the double post but I just wanted to say it looks like I'll have the Alpha Preview ready for release sometime around late May to early June.

I'm looking for testers if anyone is interested.
Rebooting the SMF AI Bot see Project link below for details

http://jrsofty1.stinkbugonline.com
http://www.galahtech.org

SMF Bot Project

Harro

I'm interested in it :)

JRSofty

There's the signup link in my signature. There is also a thread in the Help Wanted board.

Hope to see you in the list ;)
Rebooting the SMF AI Bot see Project link below for details

http://jrsofty1.stinkbugonline.com
http://www.galahtech.org

SMF Bot Project

Harro

I'll take a look at it :)

Master of Eternity

Quote from: JRSofty on April 18, 2007, 09:26:54 AM
Sorry for the double post but I just wanted to say it looks like I'll have the Alpha Preview ready for release sometime around late May to early June.

I'm looking for testers if anyone is interested.
* Master of Eternity Interested too.
BTW won't the AIML Files of the BOT for pHpBB work with SMF?

Master of Eternity

Quote from: JRSofty on April 18, 2007, 09:39:02 AM
There's the signup link in my signature. There is also a thread in the Help Wanted board.

Hope to see you in the list ;)

Sorry for the Double Post but the Links in your Signature aren't Working

JRSofty

The AIML files should work. I'm not sure if phpBB actually cleaned the HTML out of them.

I've still got to do that but it isn't too bad with my text editor I just search for them and remove them.

You won't want the startup.xml as I don't use it for bot creation. The bot defaults are created by SMF.

Look for the SMF Tester Signup link it should work just fine and bring you to my website.
Rebooting the SMF AI Bot see Project link below for details

http://jrsofty1.stinkbugonline.com
http://www.galahtech.org

SMF Bot Project

Master of Eternity

Quote from: JRSofty on April 18, 2007, 12:30:10 PM

Look for the SMF Tester Signup link it should work just fine and bring you to my website.

The Dansoft Australia Links Won't Work. and I tried your Beta Testing but couldn't register on your Forums.

JRSofty

Try going directly to the forum (without Joomla) at http://jrsofty1.stinkbugonline.com/forums

It seems that Joomla might be causing some problems. I'll have to look into that here soon.
Rebooting the SMF AI Bot see Project link below for details

http://jrsofty1.stinkbugonline.com
http://www.galahtech.org

SMF Bot Project

Harro

I signed up, but still haven't recieved my activation mail.

JRSofty

Ok I'll manually activate you.
Rebooting the SMF AI Bot see Project link below for details

http://jrsofty1.stinkbugonline.com
http://www.galahtech.org

SMF Bot Project

JamesWC

Just a suggestion while you're at this stage of development:

Have you thought about making this compatible with installations of FlashChat (which features Alicebot and can be integrated with SMF)? I already have this, and I presume it uses the same AIML files, so perhaps you could allow them to share these as well as database tables for the bot's settings and "memory?" This way members could interact with the same chatbot in both the forum and chatroom.

Of course it may be more trouble than it's worth, but I thought I'd put the idea out there.

Harro

Now I get a message that my login has been blocked.
And when I try to request a new activation mail I get a message that my account has already been activated.

JRSofty

Thanks for the idea JamesWC

However I'm not quite ready for that step. It could very well be something I look into before the final 1.0 Version of this mod comes out. However, first I want to focus solely on the SMF Integration. Once I'm confident that I've got the connection directly with SMF working then I'm more than happy to look into more advanced features like integration with chat systems.

Personally I think the idea is great and it did pop into my head but I really had to force myself to focus on the SMF integration first.

Harro I'm on it and I'll PM you with the information on what the problem is.
Rebooting the SMF AI Bot see Project link below for details

http://jrsofty1.stinkbugonline.com
http://www.galahtech.org

SMF Bot Project

KGIII

Idle thoughts?

If this is being accepted and worked on (I will add that the people doing the work are those I have seen around enough to know they are really working on it) then would it still belong in a section that is for requests? If not then, well, in your opinion - as this is your topic, where do you think this sort of topic might belong to ensure maximum exposure while remaining on topic?

My PC Support Forum
Please ask in-thread before PMing
                   SMF Help
                   Visit My Blog

How can we improve the support process?:
http://www.simplemachines.org/community/index.php?topic=163533.0

SMF vs. Godzilla? Who do you think will win?

JRSofty

I wouldn't move it until we have a full fledged mod.

The code is not ready for SMF Approval yet. There is still a bit to do ;)
Rebooting the SMF AI Bot see Project link below for details

http://jrsofty1.stinkbugonline.com
http://www.galahtech.org

SMF Bot Project

JRSofty

This is just an update for you guys who are watching this thread.

Good news I've been able to get the bot to respond to a post. :)

Bad News SMF doesn't return to the forum after the function is fired :(

Worse News: I'm on vacation starting next Monday and because of prep time needed for our flight I'll probably not do much with the code until I get back.

I'll be happy to have it posted at the dansoft website's SVN (it should be working now) if anyone has a desire to play with it.

I've not decided which SMF function I'm actually going to tap into for the posting of the bot. Currently I've got it set for the createPost function. I found that this works ok but again I can't get the forum to return to even show me the index page. So I tried the Post2() function with the exact same results. I'm pretty annoyed about it right now.
Rebooting the SMF AI Bot see Project link below for details

http://jrsofty1.stinkbugonline.com
http://www.galahtech.org

SMF Bot Project

JRSofty

I have uploaded a working demo of the SMFBot here:

http://jrsofty.stinkbugonline.com

This is just a test of the actual posting functions. If you are interested to see the back end please drop me a PM at the site.
Rebooting the SMF AI Bot see Project link below for details

http://jrsofty1.stinkbugonline.com
http://www.galahtech.org

SMF Bot Project

JRSofty

This modification is currently being tested.

Contact me if you are interested in assisting in the testing.
Rebooting the SMF AI Bot see Project link below for details

http://jrsofty1.stinkbugonline.com
http://www.galahtech.org

SMF Bot Project

URPG

What excalty does it do? Do you still need testers?

JRSofty

The SMF Bot is an Artificial Intelligence that replies to posts made by members.

I'm more than happy to have more testers. If you would like to assist in the testing of the bot you need to visit my website, register on the forum and then I'll move you to the tester group where you'll have access to the mod package.
Rebooting the SMF AI Bot see Project link below for details

http://jrsofty1.stinkbugonline.com
http://www.galahtech.org

SMF Bot Project

URPG

Yeah, i have taken a look at the examples... does it learn or is it on the same level as the good old bots on my c64?

JRSofty

At this point the bot only "learns" when new AIML files are loaded.

I would like to eventually work with it to allow some assistance of learning from conversations.
Rebooting the SMF AI Bot see Project link below for details

http://jrsofty1.stinkbugonline.com
http://www.galahtech.org

SMF Bot Project

URPG

registered at the G-something site :)

JRSofty

That's Daniel15's project site.

Just find the project and download from the Released Files section. You only need the package not the AIML that is already in the package.
Rebooting the SMF AI Bot see Project link below for details

http://jrsofty1.stinkbugonline.com
http://www.galahtech.org

SMF Bot Project

en_shua

Hmmm...just installed this and have some issues.  Have signed up for a BUGS account and awaiting activation.  Initial results after install are good, though!

JRSofty

You can also make posts to my Forum for support.
Rebooting the SMF AI Bot see Project link below for details

http://jrsofty1.stinkbugonline.com
http://www.galahtech.org

SMF Bot Project

en_shua

Quote from: JRSofty on August 26, 2007, 12:47:39 PM
You can also make posts to my Forum for support.
Even though it says not to post bugs there?

JRSofty

That is refering to the official testing group. You can post support requests in the Softyware Support board which is designed for dealing with non-team member requests.

OR if you really want to use bugs you should be able to post as a guest. If not then I'll look into checking that the bugs area is configured properly.
Rebooting the SMF AI Bot see Project link below for details

http://jrsofty1.stinkbugonline.com
http://www.galahtech.org

SMF Bot Project

en_shua

Quote from: JRSofty on August 26, 2007, 02:29:35 PM
That is refering to the official testing group. You can post support requests in the Softyware Support board which is designed for dealing with non-team member requests.

OR if you really want to use bugs you should be able to post as a guest. If not then I'll look into checking that the bugs area is configured properly.
I can't even take a look at the BUGS application.  Can't get past the login at http://jrsofty1.stinkbugonline.com/bugs/

JRSofty

Thanks for the info I'll look into it and try to get it fixed.
Rebooting the SMF AI Bot see Project link below for details

http://jrsofty1.stinkbugonline.com
http://www.galahtech.org

SMF Bot Project

en_shua

I got into BUGS now.  Thanks.

dark_diablo_01

I would like to see this for SMF 1.1.5 :(
You guys should hope back onto the project.
Visit http://www.just-hack.com/ [nofollow]

Just-Hack.com is a hacking community for all hackers to come and trade ideas and news about the underground.  Radio, Code Bin, Tutorials, Exploits, Tools, Security, News, Hacking, Reverse Engineering.

JRSofty

At this point the project is on indefinite hold. If you are interested in continuing the project you can find it at Sorceforge and download my source code.

http://sourceforge.net/projects/smfaibot
Rebooting the SMF AI Bot see Project link below for details

http://jrsofty1.stinkbugonline.com
http://www.galahtech.org

SMF Bot Project

toups

#45
Quote from: JRSofty on July 18, 2008, 02:00:27 AM
At this point the project is on indefinite hold. If you are interested in continuing the project you can find it at Sorceforge and download my source code.

http://sourceforge.net/projects/smfaibot

I know you discontinued your workings on this JR, but I installed the version you released.. and it actually worked.  My only problem is that now if ANYONE tries to post in the forum where the bot is they get this error (it still posts but the bot doesn't respond):
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
File: /homepages/11/d204877429/htdocs/BB/Sources/bot/src/graphnew.php
Line: 467


I'm not sure why it randomly started doing this.. the first posts I made in his forum were a success & he replied instantly.. and now this happens.  I tried uninstalling the mod & reinstalling and am still getting the same thing every time now.

If you could tell me why this is happening or give me any support that would be amazing.

Also if you can't give me support JR and someone else can get this to work for me.. feel free to.. if you make the mod even better without bugs I'd even be willing to pay if needed.

JRSofty

Check your PM. I've given what I know.

The problem lies mostly in the bot's source code which was not written by me. I only edited it slightly to allow for it to work with the SMF database functions.

The problem lies apparently with the bot not fully parsing the post and putting a NULL in an SQL statement which causes the error. I have not figured out why it does this nor have I been able to get a hold of the original bot coders to get more information. It is one of many reasons that this project was put on indefinite hold.

=====
If anyone is interested in taking over this project completely then please contact me and we can work out an arrangement where you can take control of the SourceForge site which contains all the code.
Rebooting the SMF AI Bot see Project link below for details

http://jrsofty1.stinkbugonline.com
http://www.galahtech.org

SMF Bot Project

toups

#47
Quote from: JRSofty on July 22, 2008, 01:31:24 AM
Check your PM. I've given what I know.

The problem lies mostly in the bot's source code which was not written by me. I only edited it slightly to allow for it to work with the SMF database functions.

The problem lies apparently with the bot not fully parsing the post and putting a NULL in an SQL statement which causes the error. I have not figured out why it does this nor have I been able to get a hold of the original bot coders to get more information. It is one of many reasons that this project was put on indefinite hold.

=====
If anyone is interested in taking over this project completely then please contact me and we can work out an arrangement where you can take control of the SourceForge site which contains all the code.

I see =\ Not sure why it was working at first then.. makes no sense.. :(

Do you have any clue which specific file would be affecting it?

JRSofty

It might have something to do with the what you type in, that it doesn't parse correctly :dunno:
Rebooting the SMF AI Bot see Project link below for details

http://jrsofty1.stinkbugonline.com
http://www.galahtech.org

SMF Bot Project

toups

Quote from: JRSofty on July 22, 2008, 09:02:42 AM
It might have something to do with the what you type in, that it doesn't parse correctly :dunno:

Only thing I did since when it did work to not work was add more AIML files.. don't see how that would hurt the bot.. have tried reinstalling & such.. still not working =\

Wish this would heh >.<

For the filed Arch when making a new bot.. is that supposed to be anything specific?

JRSofty

It might have something to do with the AIML files. Like I said I'm not sure what is causing the problem.

I would start with deleting the bot and creating a new one, and add just a few AIML to see if that works.
Rebooting the SMF AI Bot see Project link below for details

http://jrsofty1.stinkbugonline.com
http://www.galahtech.org

SMF Bot Project

toups

Quote from: JRSofty on July 22, 2008, 09:51:59 AM
It might have something to do with the AIML files. Like I said I'm not sure what is causing the problem.

I would start with deleting the bot and creating a new one, and add just a few AIML to see if that works.

Did that =\
Made about 10 times now, trying different AIMLs every time.

Now I'm trying AIML files I used on my phpbb one see if they work..  :'(

toups

Quote from: toups on July 22, 2008, 09:59:27 AM
Quote from: JRSofty on July 22, 2008, 09:51:59 AM
It might have something to do with the AIML files. Like I said I'm not sure what is causing the problem.

I would start with deleting the bot and creating a new one, and add just a few AIML to see if that works.

Did that =\
Made about 10 times now, trying different AIMLs every time.

Now I'm trying AIML files I used on my phpbb one see if they work..  :'(

Could it be possible that the patterns table is screwing it up? I have about 150000 rows of empty words in there.. all NULL with nothing in them.. could it be trying to say something but can't because of it being empty = can't post an empty post?

toups

JR if you have any clue on this.. I commented out the lines:
function findtemplate($id){
global $db_prefix;
$query = "select template from {$db_prefix}templates where id=$id";
debugger($query,2);
$selectcode = db_query($query,__FILE__,__LINE__);
if ($selectcode){
if(!mysql_numrows($selectcode)){
return "";
}
else{
while ($q = mysql_fetch_array($selectcode)){
return $q[0];
}
}
}

return "";
}


in graphnew.php.. and it works now.. no errors when posting, the bot is responding, etc.  Only problem is.. he doesn't post anything when he's posting.. is that part of the code that important :O?

JRSofty

Quote from: toups on July 22, 2008, 10:39:27 AM
Quote from: toups on July 22, 2008, 09:59:27 AM
Quote from: JRSofty on July 22, 2008, 09:51:59 AM
It might have something to do with the AIML files. Like I said I'm not sure what is causing the problem.

I would start with deleting the bot and creating a new one, and add just a few AIML to see if that works.

Did that =\
Made about 10 times now, trying different AIMLs every time.

Now I'm trying AIML files I used on my phpbb one see if they work..  :'(

Could it be possible that the patterns table is screwing it up? I have about 150000 rows of empty words in there.. all NULL with nothing in them.. could it be trying to say something but can't because of it being empty = can't post an empty post?

That is quite possible. The question would be why are there NULLs in the patterns table?

Quote from: toups on July 22, 2008, 05:42:46 PM
JR if you have any clue on this.. I commented out the lines:
function findtemplate($id){
global $db_prefix;
$query = "select template from {$db_prefix}templates where id=$id";
debugger($query,2);
$selectcode = db_query($query,__FILE__,__LINE__);
if ($selectcode){
if(!mysql_numrows($selectcode)){
return "";
}
else{
while ($q = mysql_fetch_array($selectcode)){
return $q[0];
}
}
}

return "";
}


in graphnew.php.. and it works now.. no errors when posting, the bot is responding, etc.  Only problem is.. he doesn't post anything when he's posting.. is that part of the code that important :O?

Yep that's pretty important. The way the bot works is this:

1. Reads the input data
2. Tries to find patterns that match
3. When a pattern is matched then find matching template
4. if template is a recursed pattern then start the pattern search again, else output template information.

What you did was remove the ability to find a template.
Rebooting the SMF AI Bot see Project link below for details

http://jrsofty1.stinkbugonline.com
http://www.galahtech.org

SMF Bot Project

toups

Quote from: JRSofty on July 23, 2008, 01:42:58 AM
Quote from: toups on July 22, 2008, 10:39:27 AM
Quote from: toups on July 22, 2008, 09:59:27 AM
Quote from: JRSofty on July 22, 2008, 09:51:59 AM
It might have something to do with the AIML files. Like I said I'm not sure what is causing the problem.

I would start with deleting the bot and creating a new one, and add just a few AIML to see if that works.

Did that =\
Made about 10 times now, trying different AIMLs every time.

Now I'm trying AIML files I used on my phpbb one see if they work..  :'(

Could it be possible that the patterns table is screwing it up? I have about 150000 rows of empty words in there.. all NULL with nothing in them.. could it be trying to say something but can't because of it being empty = can't post an empty post?

That is quite possible. The question would be why are there NULLs in the patterns table?

Quote from: toups on July 22, 2008, 05:42:46 PM
JR if you have any clue on this.. I commented out the lines:
function findtemplate($id){
global $db_prefix;
$query = "select template from {$db_prefix}templates where id=$id";
debugger($query,2);
$selectcode = db_query($query,__FILE__,__LINE__);
if ($selectcode){
if(!mysql_numrows($selectcode)){
return "";
}
else{
while ($q = mysql_fetch_array($selectcode)){
return $q[0];
}
}
}

return "";
}


in graphnew.php.. and it works now.. no errors when posting, the bot is responding, etc.  Only problem is.. he doesn't post anything when he's posting.. is that part of the code that important :O?

Yep that's pretty important. The way the bot works is this:

1. Reads the input data
2. Tries to find patterns that match
3. When a pattern is matched then find matching template
4. if template is a recursed pattern then start the pattern search again, else output template information.

What you did was remove the ability to find a template.

lame :P well at least I know that that's its problem right now.. it only errors if it's trying to find the template so something wrong in there.. just wish I knew how to fix it! lol

Advertisement: