「笑」と「はは」を投稿し、一部の人々が私を追加し続ける迷惑なグループチャットで基本的な質問に答えるAdium用の簡単なチャットボットを作成しようとしています.
「笑」の部分については、いくつかの単純な送信コマンドと遅延コマンドを繰り返して説明しましたが、対話も行う必要があります。
たとえば、疑問符が付いているものにはすべて「はい」と答えます...
信じられないかもしれませんが、このような単純なボットは、これらの会話のチューリング テストに合格します。
Adium ディクショナリを開いても、メッセージを取得する明白な方法は明らかになりません。また、Growl ディクショナリも同様です。
メッセージを受信するたびにスクリプトを実行できることがわかりました。送信されたメッセージにアクセスする方法はありますか?
アジウム プレフ http://media.ruk.ca/images/adiumpreferences.png
私のコード:
tell application "Adium"
activate
set theChat to the active chat
send theChat message "Hi"
delay 5
send theChat message "How's 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