I'm trying to write a simple bot chat for Adium that will post "lol" and "haha" and answer basic questions in annoying group chats that some people keep adding to me.
I covered the lol part with a few simple send and delay retry commands, but I also need to do some interaction.
Answer yes to something with a question mark, for example ...
Believe me or not, such a simple bot will pass the Turing test for these conversations.
Opening the Adium dictionary does not show the obvious way to receive messages, nor does the Growl dictionary.
I found out that I can run the script every time I receive a message. Is there any way to access the sent message?
Adium pref http://media.ruk.ca/images/adiumpreferences.png
My code is:
tell application "Adium" activate set theChat to the active chat send theChat message "Hi" delay 5 send theChat message "How life?" delay 10 repeat 10 times send theChat message "Realy?" delay 5 send theChat message "Lol :P" delay 15 send theChat message "Haha XD" delay 15 send theChat message "Yes1!!1" delay 20 send theChat message "I like it! :D" delay 10 end repeat send theChat message "Bye!" tell theChat to close end tell
applescript adium
Pepijn
source share