dongsaoshuo4326 2011-01-11 12:29
浏览 61
已采纳

XMPP,openfire和bot问题

I am interested to make a chatbot. My script is currently working fine with imified.com bot. however imified is down almost everday. so i am looking for my own solution.

during my findings, I have found (through this site) openfire and I have configured it and it is working fine even with gmails users.

but i am still not getting what I need.

I need to request a URL (with the chat scripts and some other user data something like imified provides) when each gmail or other external users send me a message. let me explain.

my openfire is hosted and working for mybot.com and my id is: autobot@mybot.com.

now a gmail user say client@gmail.com added me in his gtalk/piding and we can communicate each other. he can send me message and I can reply.

but I need a robot instead of me. when client@gmail.com (and any other user) sends me a message, I need to request a URL so that i can dynamically generate response based on the message he/she sent.

in which way I should go for achieving this? Is there any way to customize openfire to do so?

or should I make a php/python (i need to learn python though) script that will listen to xmpp ports and generate responses? if so, any helpful scripts that may guide me?

bunch of thanks for reading it and thanks in advance for providing any response.

  • 写回答

4条回答 默认 最新

  • douyi3760 2011-11-28 13:53
    关注

    The OpenFire understand XMPP, what you need is XMPP library/API (like XMPP4R if you are Rubyist). Using it your app will login to OpenFire (by sending gmail/yahoo credentials) and others will see you as online. But when they will reply to you, you will be notified in your application. Where you can receive the message, process it, and send response (by writing a required program/logic).

    We have done it in our SMS Chat application with Gmail/Yahoo messenger friends/contacts.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?

悬赏问题

  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥170 如图所示配置eNSP
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效
  • ¥15 悬赏!微信开发者工具报错,求帮改
  • ¥20 wireshark抓不到vlan
  • ¥20 关于#stm32#的问题:需要指导自动酸碱滴定仪的原理图程序代码及仿真
  • ¥20 设计一款异域新娘的视频相亲软件需要哪些技术支持
  • ¥15 stata安慰剂检验作图但是真实值不出现在图上
  • ¥15 c程序不知道为什么得不到结果