| View previous topic :: View next topic |
| Author |
Message |
Puck Voice
Joined: 08 Mar 2008 Posts: 10 Location: Budapest, Hungary
|
Posted: Tue Dec 29, 2009 7:51 am Post subject: Jabber |
|
|
Hi everyone.
In my humble search I haven't come across this script. All I need is a script which would connect too a Jabber/GTalk account, and based on a command users with a specific flag can send messages to one of the "Friends" on that account. If also replies can be sent to a specific channel, coming from the Jabber account, that would be great.
I really hope I'm not the only one looking for this method.
Thank you in advance. |
|
| Back to top |
|
 |
manipulativeJack Voice
Joined: 17 Feb 2009 Posts: 13
|
Posted: Wed Aug 29, 2012 2:54 pm Post subject: |
|
|
This is something I am interested in as well - Puck, did you ever find anything that worked?
Anyone know if GTalk is still Jabber/XMPP?
Anyone think this is an approachable probject?
Jack |
|
| Back to top |
|
 |
tomekk Master

Joined: 28 Nov 2008 Posts: 255 Location: Oswiecim / Poland
|
Posted: Fri Sep 21, 2012 4:36 pm Post subject: |
|
|
There is a TCL lib for jabber, but there is no documentation for it.
BUT ... there is always PERL, anyway I have old script which i've used for sending simple messages to my account via eggdrop, its based on 'sendxmpp' script
Make some tweaks if you need:
| Code: | # Author: tomekk
# e-mail: tomekk/@/oswiecim/./eu/./org
# home page: http://tomekk.oswiecim.eu.org/
#
# Version 0.1
#
# This file is Copyrighted under the GNU Public License.
# http://www.gnu.org/copyleft/gpl.html
set jabber_rcp "jabrcp@server.com"
set sendxmpp_path "/usr/bin/sendxmpp"
set sendxmpp_msg_file "/home/user/eggdrop/.msg_file"
##############################################################
bind pub o|o !jmsg pass_msg
proc pass_msg { nick uhost hand chan arg } {
global jabber_rcp sendxmpp_path sendxmpp_msg_file
set msg_file_hand [open $sendxmpp_msg_file w]
puts $msg_file_hand $arg
close $msg_file_hand
if {![catch {exec $sendxmpp_path -m $sendxmpp_msg_file $jabber_rcp} crash]} {
file delete $sendxmpp_msg_file
} else {
putlog $crash
}
}
putlog "jabsnd.tcl ver 0.1 by tomekk loaded"
|
Script is very simple, you have to tweak it if you need more. http |
|
| Back to top |
|
 |
|