hello
i have done a module to use the bot with pandorabots server : http://pandorabots.com

the code is inside the zip file

how to use it ?

  • go to the pandorabots website and create an account
    • create a bot and add some AIML inside
    • get the botid
  • come back to your drupal website
    • install the module (sure)
    • go to the admin settings and set the botid
    • run the bot
  • go to irc
    • speak to him using : ? botname blablabla

the bot should answer :)
this code is just a test made on the morning after a long night about other things so maybe there are some errors.
the regex should be optimized too....
anyway, if you like it, do what you want with it and if you have ideas to enhance it, provide them here
have fun

Comments

ssm2017 Binder’s picture

StatusFileSize
new2.58 KB

oops, i forgot to add WHERE to the update query :) and to tell you that you need to "publish" the bot on the pandorabots server before using it

morbus iff’s picture

The bot never autolearns anything using AIML? Who has the time to create a fully fledged and entertaining AIML set that isn't a duplicate of every other free AIML set out there? Why would we choose AIML over, say, Markov chaining (which, I suppose, could lead to an AIML set creation)?

ssm2017 Binder’s picture

do you know another free AI bot system for chat ?

morbus iff’s picture

Status: Active » Closed (won't fix)

Entirely irrelevant.

* I have no time to create an AIML file.
* I have little desire to share my account info so others can create an AIML set.
* I have no desire to use a default AIML set that everyone is already familiar with.
* I have little desire to use non-Drupal components for the Drupal bot.
* I have little desire to create a front-end to automatically learn AIML statements.
* "Free", as an answer to AIML vs. Markov, isn't the answer I was looking for.

You're more than welcome to run this for your own bot or make it a contrib module.
I just don't see it as viable for core at the moment.

ssm2017 Binder’s picture

thank you for attention but you dont need to create aiml files, this is the end user that needs to create an account and add aiml files inside his own bot (there are a lot of aiml files on the web), this module is only a link to the server.
i didnt want to fill another module project, i thought that it could be better to add it in your one.
i dont try to compete aiml vs markov, i just asked if there is another system existing because i dont know one (just asking).
i dont try to promote alice system, i m just an end user, i will try to get more infos about "markov" but im not mathematician and this alice system is an easy way for me to get a chat bot.

ssm2017 Binder’s picture

you are right that before asking this question, i had to answer your ones first.
im very sorry if i my question looked rude (i felt like you said "aiml is bad" so i was asking without thinking and well reading the question, something like : "ok, so if this is bad, what is better ?").

to answer your questions :

The bot never autolearns anything using AIML?

i dont know, im not an aiml expert, i just played a little with it just filling some values using the website.
but i have tried something like :
"the car is blue"
"blue is a color"
"what color is the car ?"
and the bot answered : "red"
:)

Who has the time to create a fully fledged and entertaining AIML set that isn't a duplicate of every other free AIML set out there?

sure, that it looks very heavy to build these files, im just using the existing ones to play a little, and changing just some sentences sometimes

Why would we choose AIML over, say, Markov chaining (which, I suppose, could lead to an AIML set creation)?

i dont know what is markov chaining, and aiml is the only system i've heard for now. I think that the question is not to choose a single system, maybe this can be good to allow different ai systems, and if another system is better or worst that can be a sub module, this can be good for people to enable the module of their choice.

your answer gave me the idea to try to find some aiml alternatives, and i learned a new word "markov chain" :)