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 

DCCSEND wont work

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
wubmerlin
Voice


Joined: 04 Nov 2007
Posts: 6

PostPosted: Mon Dec 03, 2007 2:06 pm    Post subject: DCCSEND wont work Reply with quote

Hello, i try to make my bot send test.txt. all needed modules are loaded but i cant get this **** work.

Eggdrop v1.6.18+SSL (C) 1997 Robey Pointer (C) 2006 Eggheads
[12:54] --- Loading eggdrop v1.6.18+SSL (Mon Dec 3 2007)
[12:54] Listening at telnet port 52456 (all).
[12:54] Module loaded: dns
[12:54] Module loaded: channels
[12:54] Module loaded: server
[12:54] Module loaded: ctcp
[12:54] Module loaded: irc
[12:54] Module loaded: transfer (with lang support)
[12:54] Module loaded: share
[12:54] Module loaded: filesys (with lang support)
[12:54] Module loaded: notes (with lang support)
[12:54] Module loaded: console (with lang support)
[12:54] Module loaded: blowfish
[12:54] Module loaded: uptime

Here's my code:
Code:
set files "/home/eggdrop/test.txt"

bind pub - !test test_send
proc test_send {nick uhost hand chan file} {
        global files
        switch -- [dccsend $files $nick] {
                0 {
                        puthelp "NOTICE $nick :sending $files to you."
                        dccsend $files $nick
                }
                1 { puthelp "NOTICE $nick :dcc table is full (too many connections), try to get $files later." }
                2 { puthelp "NOTICE $nick :can't open a socket for the transfer of $files." }
                3 { puthelp "NOTICE $nick :$files doesn't exist." }
                4 { putserv "PRIVMSG $chan :Unable to send $files (User has too many transfers)" }
        }
}




Thanks.
Back to top
View user's profile Send private message
wubmerlin
Voice


Joined: 04 Nov 2007
Posts: 6

PostPosted: Mon Dec 03, 2007 2:10 pm    Post subject: Reply with quote

Oh ... and i teste with a wrong filename, the bot reply this:

[13:05:38] -BOT- /home/eggdrop/test2.txt doesn't exist.

If i put the GOOD filename, NOTHING happend ... the bot didn't react ...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help 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