I would like to have the ".channel #abc" response in the partyline as answer for the public channel command ".channel #abc". I have written everything, to check the user`s input, but I don`t know how to make the bot answer in the specified channel!
First of all I need to know, how to give the eggdrop the ".channel #abc" command via the tcl to it`s partyline. The second thing is: How can I show the response of the eggdrop in a channel, instead of the partyline?
WHat you have asked for, is posibble, but is a tad tricky.
First off. Is what you are asking for is this?
Someone in a channel types ".channel #abc"
The messages is displayed to users in the partyline.
It would all depednd who you wanted to display it to in the partyline.
All users, on all bots? Then use the "dccbroadcast" comand.
All users on on bot? Then you will have to use either "putlog", or foreach through the list of partyline users obtained from "dcclist".
One user obn the bot? This is a tad tricky. How do you know which user to send to? If you are going to send to the handle, assoiated with the nickname of the person making the request, then you can use "hand2idx". Otherwise, we will need more info.
As for responding in a channel. See the hundres of Tcl script that do this sort of thing. They are show examples of output to a channel.
Well I think you missed me. I will try to explain it another way: All People should be allowed to type ".channel a#bc" in any channel as a public command. The eggdrop should response to that channel with the same thing he would resond to the partyline! I just want an Alias to the partyline command ".channel #abc" that is public!
When I am in #abc and type ".channel #xyz" the eggdrop should display all information to the channel that is also shown in the partyline!
You will have tyo re-create the ".channel" commands C code, in Tcl.
There is no easy way to request information from a partyline command. All this ifnormation is output to the partyline, and has no other way of capturing or re-direction, other than to use a loopback connection (make a script that connect to the bot, requests the ifnormation and posts it. No simple, and slow~).
However, all of the ifnormation that is available in the DCC based ".channel" command, can be obtained using Tcl commands. You simply have to send the information to the destination in a formatted way.
it's your lucky day :p hehe nah... I was bored so I made this little code.. it will give exactly the same info as .channel command in partyline.. only difference is that it does not return key of a channel (safty reason) ... and it does not line it up neatly as the partyline command... other than that it's the same