egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Jabber

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
Puck
Voice


Joined: 08 Mar 2008
Posts: 10
Location: Budapest, Hungary

PostPosted: Tue Dec 29, 2009 7:51 am    Post subject: Jabber Reply with quote

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
View user's profile Send private message Visit poster's website
manipulativeJack
Voice


Joined: 17 Feb 2009
Posts: 13

PostPosted: Wed Aug 29, 2012 2:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
tomekk
Master


Joined: 28 Nov 2008
Posts: 255
Location: Oswiecim / Poland

PostPosted: Fri Sep 21, 2012 4:36 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber