Notice to all users

We are migrating towards a new forum system located at, as such this forum will become read-only on January 29, 2020

Results 1 to 2 of 2
  1. #1
    Join Date
    September 2016

    How whould you make a interactive conversation between a bot and user?

    Hi TS3 programmers community
    Im making a project that allows to X user of the server to interact, on the private chat, with a bot.
    The system that I have on my mind is the following one:
    (The following code is an example xddd)
    PHP Code:
    //Wait for a message event...
    If ($message == "!help"){
    send_this_message_to_the_client("Dont worry, I will help you :-)... Tell me what is your problem. 1 or 2");
    //Wait for answer
    if ($problem == "1"){
    send_this_message_to_the_client("Your problem is 1 :-)... Tell me what is your sex. man or girl");
    //Wait for answer
    if ($sex == "man"){
    send_this_message_to_the_client("You are a man :-)...");
    $sex == "girl"){
    send_this_message_to_the_client("You are a girl :-)...");
        }elseif (
    $problem == "2") {
    send_this_message_to_the_client("Your problem is 2 :-)... Tell me what do you like. mans or girls");
    //Wait for answer
    if ($like == "mans"){
    send_this_message_to_the_client("You like mans :-)...");
            }elseif (
    $like == "girls"){
    send_this_message_to_the_client("You like girls :-)...");


    The most important part of the php function that Im using to make this is the following one:
    PHP Code:
    function onTextmessage(TeamSpeak3_Adapter_ServerQuery_Event $eventTeamSpeak3_Node_Host $host)
    $type $event->getType();
    $data $event->getData();
    $server $host->serverGetSelected();
    $date date("Y-m-d H:i:s");
    $client_data = array(
    'response' => array(
    'event' => "onTextmessage",
    'type' => null,
    'date' => $date,
    'data' => array(
    'targetmode' => $data['targetmode'],
    'msg' => $data['msg'],
    'target' => $data['target'],
    'clid' => $data['invokerid'],
    'client_nickname' => $data['invokername'],
    'client_unique_identifier' => $data['invokeruid']
    $json json_encode($client_data);

    Do you have any idea of how to make this?

  2. #2
    Join Date
    December 2012
    Paris, France
    Personally i'll use NLP process to do interactive bot. With a lot of queries the bot become really good to talk with users

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: October 15th, 2015, 08:45 AM
  2. [Rejected] Make an invisible user?
    By Arterio in forum Client Support
    Replies: 2
    Last Post: November 9th, 2011, 06:48 PM
  3. [solved] Make a user group stay on top of the list
    By Impagliazzo in forum Permission System
    Replies: 4
    Last Post: December 9th, 2010, 08:43 AM
  4. [solved] Make a user inside a channel invisible
    By Hakaori in forum Permission System
    Replies: 12
    Last Post: July 20th, 2010, 03:40 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts