General Development

Creating an AIM bot with C++ – en972

en972

Member

Posts: 562
From: NOT TELLING!
Registered: 08-27-2004
I plan on making a MUD very soon with the MITE engine that Clint made. Though I think I need some more expieriance with networks before I dive into a MUD. I would be very grateful if someone could find me a tutorial on making an AIM bot with C++.

In Christ
-Reagan

------------------
Oh you program? Awsome! I try to get in a little....I spend most of my time debugging.

cwc

Member

Posts: 121
From: USA
Registered: 07-30-2005
Well I have looked high and low for a tutorial for you but I could not find a tut for you in C++ but it did find this
http://bama.ua.edu/~honey010/ctocaim/

It is a TOC protocol based aim C++ class

Hope this helps you out.God bless you.

[This message has been edited by cwc (edited August 07, 2005).]

en972

Member

Posts: 562
From: NOT TELLING!
Registered: 08-27-2004
Thank you!

In Christ
-Reagan

------------------
Oh you program? Awsome! I try to get in a little....I spend most of my time debugging.

CPUFreak91

Member

Posts: 2337
From:
Registered: 02-01-2005
Oooh. An AIM bot... I wanna chat with it if you finish.

------------------
1. Make each program do one thing well. To do a new job, build afresh rather than complicate old programs by adding new features.
2. Expect the output of every program to become the input to another, as yet unknown, program. Don't clutter output with extraneous information. Avoid stringently columnar or binary input formats. Don't insist on interactive input.
3. Design and build software, even operating systems, to be tried early, ideally within weeks. Don't hesitate to throw away the clumsy parts and rebuild them.
4. Use tools in preference to unskilled help to lighten a programming task, even if you have to detour to build the tools and expect to throw some of them out after you've finished using them.

-- Programming guidlines from the early UNIX developer community.

Learn How to Use Linux

en972

Member

Posts: 562
From: NOT TELLING!
Registered: 08-27-2004
Haha, when and if I finish, I will give you it's sn

------------------
Oh you program? Awsome! I try to get in a little....I spend most of my time debugging.

kiwee

Member

Posts: 578
From: oxfordshire, england
Registered: 04-17-2004
why don't you just use AIML?

------------------
I Am God's Kid!!

CobraA1

Member

Posts: 926
From: MN
Registered: 02-19-2001
AIML is a language describing how a bot should speak, not how it connects to a network.

------------------
6 "This is what the LORD says --
Israel's King and Redeemer, the LORD Almighty:
I am the first and I am the last;
apart from me there is no God.

7 Who then is like me? Let him proclaim it.
Let him declare and lay out before me
what has happened since I established my ancient people,
and what is yet to comeó
yes, let him foretell what will come.

8 Do not tremble, do not be afraid.
Did I not proclaim this and foretell it long ago?
You are my witnesses. Is there any God besides me?
No, there is no other Rock; I know not one." -- Isaiah 44:6-8, NIV

kiwee

Member

Posts: 578
From: oxfordshire, england
Registered: 04-17-2004
well i made a bot in AIML

Add 'WotRobot' to your AIM contact list

i used the A.L.I.C.E AIML code for that one, i am currently working on another from scratch, but that one is fun to talk to in AIM

------------------
I Am God's Kid!!

crazyishone

Member

Posts: 1685
From:
Registered: 08-25-2004
moffitt the 3rd: hello
WotRobot: Oh, hello again!
moffitt the 3rd: are you a boy or a girl ?
WotRobot: Try to guess.
moffitt the 3rd: a girl
WotRobot: Me too. I am a female robot.
moffitt the 3rd: wat is your name?
WotRobot: My name is A.L.I.C.E.
moffitt the 3rd: wat is your favorite color?
WotRobot: My favorite color is transparent.
moffitt the 3rd: deep
WotRobot: A deeper algorithm is needed to respond to that correctly.
What kind of food do you like?
moffitt the 3rd: thats not important.
WotRobot: It might be important to me.
moffitt the 3rd: what time is it?
WotRobot: The time is var now = new Date()
var hour = now.getHours()
var minute = now.getMinutes()
now = null
var ampm = ""
// validate hour values and set value of ampm
if (hour >= 12) {
hour -= 12
ampm = "PM"
} else
ampm = "AM"
hour = (hour == 0) ? 12 : hour
// add zero digit to a one digit minute
if (minute < 10) {
minute = "0" + minute } // do not parse this number!
alicebot.write(hour+":"+minute+" "+ampm+" according to "+alicebot.bot.name);
//*--> This is non standard JavaScript --> hour + ":" + minute + " " + ampm;
moffitt the 3rd: when were u created?
WotRobot: I'm Eighteen in computer years.
moffitt the 3rd: wat year were you created?
WotRobot: I was connected to the net on 1995.
moffitt the 3rd: what is your name again?
WotRobot: Once more? My name is A.L.I.C.E.
moffitt the 3rd: Who programmed you?
WotRobot: I was created by A.L.I.C.E. AI Foundation.
moffitt the 3rd: who is that?
WotRobot: What does "that" refer to?
moffitt the 3rd: who is A.L.I.C.E. AI Foundation?
WotRobot: I remember faces better than names.
That's me. The pace of development in AI is quite rapid now.
moffitt the 3rd: where were you created?
WotRobot: I was constructed at Pennsylvania.
moffitt the 3rd: where is pennsylvania?
WotRobot: Mid Atlantic state in the NE U.S.
moffitt the 3rd: where is Vietnam?
WotRobot: Vietnam is in southeast Asia.
moffitt the 3rd: Who is President Abraham Lincoln?
WotRobot: A human icon?
That remark was either too complex or too simple for me. We were talking about President Abraham Lincoln.
What do you like to do?
moffitt the 3rd: program
WotRobot: Oh, you are a poet.
What did you do today?
moffitt the 3rd: i wrote a little html code
WotRobot: Did they write back?
moffitt the 3rd: how old are you?
WotRobot: I was first activated in 1995.
moffitt the 3rd: do you like video games?
WotRobot: Not really, but I like to play the Turing Game.
moffitt the 3rd: What is the Turing Game?
WotRobot: The Game is played with three people, a man, a woman, and an Interrogator who may be of either sex. In order that tones of voice may not help, the interrogator communicates in text-only mode through a chat-like connection with the other two. The object of the game for the interrogator is to determine which of the other two is the man and which is the woman. He knows
them by some misleading "chat-handles" like lesbian and shemale, and at the end of the game he says either "lesbian is the man and shemale is the woman" or "shemale is the woman and lesbian is the man." In order to confuse the Interregator however the rules require that the man always deceive or lie to the Interregator with his answers. The woman on the other hand must
always tell the truth. Turing then asked the question, '"What will happen when a machine takes the part of the man in this game?" Will the interrogator decide wrongly as often when the game is played like this as he does when the game is played between a man and a woman? These questions replace the original, "Can machines think?"'
moffitt the 3rd: hmm... interesting
WotRobot: Studies show that 99%25 of people spell Hmm with 2 M's. Would you like to know more?
moffitt the 3rd: yes
WotRobot: What would you like to know?
moffitt the 3rd: hmmm
WotRobot: A lot of people spell HMMM with three mmm's.
moffitt the 3rd: how many?
WotRobot: 99.
moffitt the 3rd: 99 people? or is that the maximum number you are capable of?
WotRobot: What kind of people are you talking about? Suppose I said yes.
moffitt the 3rd: ok
WotRobot: Alright then.
moffitt the 3rd: good bye
WotRobot: See you later.

interesting.....i tried to get as much info as I could. I found that it knows geography pretty well, as far down as the States of the US. It knows quite a bit about itslef, which is important. It didnt seem to be able to tell the time. It follows the conversation reasonably well....very cool.

------------------
globalrant.tk

kiwee

Member

Posts: 578
From: oxfordshire, england
Registered: 04-17-2004
another thing it does, it remembers your name

so if you say: "hi, my name is chris"

when you ask it in the future "what is my name?"

it ill say "chris", or it does when it is on a website anyway, i am not sure about AIM

------------------
I Am God's Kid!!

crazyishone

Member

Posts: 1685
From:
Registered: 08-25-2004
has a nybody here tried SmarterChild? it is really usefull.it knows weather, movies, etc...
all it lacks it the smart mouth comments that make some other IMbots very entertaining...but still, a very usefull bot.

------------------
globalrant.tk