Hi and thanks for looking in !
I'm total new on JavaScript so i ask for a little help.
My questions is what line of code do i have to wright
so that the following adds extra lines when received message in msn like this under:
Client message: !learn "hello" "hi"
makes it save in xml file :
(Orginal when not been told)
quote:
<?xml version="1.0" encoding="UTF-8"?>
<Answers>
<Misc>
<DelayEnabled>1</DelayEnabled>
<DelayTime>0</DelayTime>
</Misc>
<Entry name="1">
<Receive>^!learn</Receive>
<Answer>!learn "Question" "Anwser"</Answer>
<Type>Fragment</Type>
<Flags>10</Flags>
<MatchCount>1</MatchCount>
<Status>255</Status>
<Enabled>1</Enabled>
<Delay>0</Delay>
</Entry>
</Answers>
(When told)
quote:
<?xml version="1.0" encoding="UTF-8"?>
<Answers>
<Misc>
<DelayEnabled>1</DelayEnabled>
<DelayTime>0</DelayTime>
</Misc>
<Entry name="1">
<Receive>^!learn</Receive>
<Answer>!learn "Question" "Anwser"</Answer>
<Type>Fragment</Type>
<Flags>10</Flags>
<MatchCount>1</MatchCount>
<Status>255</Status>
<Enabled>1</Enabled>
<Delay>0</Delay>
</Entry>
<Entry name="2">
<Receive>hello</Receive>
<Answer>hi</Answer>
<Type>Fragment</Type>
<Flags>10</Flags>
<MatchCount>1</MatchCount>
<Status>255</Status>
<Enabled>1</Enabled>
<Delay>0</Delay>
</Entry>
</Answers>
In summon up in simple words. script that saves new entry number like the 2 and the
!learn "hello" "hi" saves "hello" and "hi" like entry 2
so if new "receive" is received then it saves new entry like 2 then 3 and 4 and so on.
Would be sooo glad to have helping hand on this
so ides is great full welcome to !
If you got questions just ask !
sincerely John F