PtokaX forum

Development Section => Your Developing Problems => Topic started by: nErBoS on 14 October, 2003, 13:28:47

Title: Commands on PM
Post by: nErBoS on 14 October, 2003, 13:28:47
Hi all,

How can i do to call commands on a pm with the bot ??

Best regrads, nErBoS
Title:
Post by: pHaTTy on 14 October, 2003, 14:01:26
in data arrival change ==


if strsub(data, 1, 1) == "<" then
data=strsub(data,1,strlen(data)-1)
s,e,cmd = strfind(data,"%b<>%s+(%S+)")


to


if (strfind(data,"$To: ".. BotName)
data=strsub(data,1,strlen(data)-1)
s,e,cmd = strfind(data,"%b<>%s+(%S+)")


if i remember correctly its like that l8rr,,


-phatty
Title:
Post by: nErBoS on 15 October, 2003, 02:06:07
hum nop isn?t working :(
Title:
Post by: [NL]Pur on 15 October, 2003, 10:55:56
can we see your whole script , then it whould be easier too give you feedback where too change te script.
Title:
Post by: nErBoS on 15 October, 2003, 13:46:20
Is working...

if (strfind(data, "$To:")) or (strsub(data, 1, 1) == "<") then
data=strsub(data,1,strlen(data)-1)
s,e,cmd = strfind(data,"%b<>%s+(%S+)")

This send in pm and mail !!

Thanks (uk-kingdom)pH?tt?

Best regrads, nErBoS