This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Jabber

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
P
Puck
Voice
Posts: 10
Joined: Sat Mar 08, 2008 8:05 am
Location: Budapest, Hungary
Contact:

Jabber

Post by Puck »

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.
m
manipulativeJack
Voice
Posts: 13
Joined: Tue Feb 17, 2009 9:52 pm

Post by manipulativeJack »

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
User avatar
tomekk
Master
Posts: 255
Joined: Fri Nov 28, 2008 11:35 am
Location: Oswiecim / Poland
Contact:

Post by tomekk »

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: Select all

# 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
Post Reply