I imified.com kullanarak IMbot geliştiriyordu
Bu nasıl işliyor: bot giriş alanındaki Metin geçen sonrası yöntemi ile bir URL arayacak. Bu yüzden bu isteğine çıkış verileri can ve KULLANICI Sohbet penceresine gönderilir.
Ama benim komut çok uzun sürüyor, bu yüzden ilk ben beklemek kullanıcı soran bir yanıt göndermek gerekir, ve sonra benim PHP fonksiyon kullanıcı sohbet penceresine bir mesaj itmek Bot çağırarak başka bir işlevi çağırmalıdır.
Bazı biri nasıl bunu yapmak için bana yardımcı olabilir misiniz?
Kod burada.
function index()
{
$title = $this->input->post('msg');
echo "please wait we are searching for url order ";
//send this response to the user and execute this code below
if($this->order->check($title))
{
//checking order details the code goes here
//invoke bot and send the these details again
echo $order_details
}
else {
echo "No Book order found with that orderid";
}
}