Hallo,
nochmal ne kleine Frage:
if (msg.text == 'Hallo Haus') then
mark_read (msg.from.print_name)
send_msg (msg.from.print_name, 'Hallo Brick')
return
end
das funktioniert perfekt..
jetzt möcht ich aber was haben, das er mir auf egal welche Nachricht
etwas antwortet, bzw. etwas ausführt.
hab verschiedenes ausprobiert.. leider ohne Erfolg:
if (msg.text == '') then
mark_read (msg.from.print_name)
send_msg (msg.from.print_name, 'Hallo')
return
end
oder :
if (msg.text) then
mark_read (msg.from.print_name)
send_msg (msg.from.print_name, 'Hallo')
return
end
oder :
if (msg.text ~= 'Hallo') then
mark_read (msg.from.print_name)
send_msg (msg.from.print_name, 'Hallo')
return
end
wie kann ich das schreiben ?
wie gesagt.. er soll auf jede Nachricht (egal was) antworten !
Gruß Brick