PtokaX forum

Development Section => Your Developing Problems => Topic started by: sebastian on 28 November, 2003, 15:39:07

Title: Echo client
Post by: sebastian on 28 November, 2003, 15:39:07
can anyone do a Echo client to me.
an echo cleint is an client that sending back things in mainchat.


program GUI:


Bot nick:  |                  textfiled               |
Address:  |                    text field            |
Password: |                  text field            |
port:         |  textfield|

                  |button: connect! |





to echo an message , from an script , i do this line

password = "my pasword set in the Echo client"
nick = "bot nick"



SendPmToNick(nick , "echomessage" , "!echo "..password.." !op nick")


this should cause the echo program send

!op nick

in main

if password is wrong , for example an user tries to send a ordinarie PM without !echo command or sending a !echo command with wrong password , the bot should not care about it and do nothing.





The reason why i want that type of program is to run inbuilt PtokaX commands not aviable to script, for example !clrpermban , !op , !restart , !restartscripts  , and some more from a script.