Author Topic: Deepbot not responding when try to use API command  (Read 1375 times)

0 Members and 1 Guest are viewing this topic.

nxnsamy

  • Guest
Deepbot not responding when try to use API command
« on: March 09, 2018, 07:16:59 AM »
Hello,

I use the version 0.11.1.0.

To add users informations in the database in a webpage, I made tests with the script at the url 'http://deepbot.tv/player/YouTubePlayerv8.html?ip='  It works correctly, I can command the music playing from/to the bot. I copy the script to a local page to made additionnal tests and add console.log(evt.data) to see every messages which send by the bot. With the debugging tools of firefox, if I execute the command 'ws.send('music|stateChange|2') the player is pause correctly but if I execute ws.send('api|register|xxxxxx') no message is receive. Can you help me ?

Do you know if the api work only depend on the registration status (beta licence/vip) ?

Thanks in advance.

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Deepbot not responding when try to use API command
« Reply #1 on: March 09, 2018, 07:49:37 AM »
Are you using the information from this page: https://github.com/DeepBot-API/client-websocket
Old Name: RepentGamingTV
Twitch: Here

Need help ASAP?
Join Deepbot's Discord: Discord.Deepbot.tv
Deepbot's Twitter: @DeepSupport

nxnsamy

  • Guest
Re: Deepbot not responding when try to use API command
« Reply #2 on: March 09, 2018, 07:48:32 PM »
Yes, i done this to have an error message from the websocket server of deepbot:

I push the play button on deepbot interface then I refresh the youtubePlayerv8.html witch contain :

Code: [Select]
ws.onopen = function() {
            wsState = 1;
            ws.send('music|stateChange|2');
            ws.send('api|register|xxxxxx');
        };
The player in the deepbot interface change status to "pause" correctly and nothing is receive by my debugger after sending the api register command

Do you need any additional informations to help me ?

nxnsamy

  • Guest
Re: Deepbot not responding when try to use API command
« Reply #3 on: March 12, 2018, 08:59:30 PM »
Any idea of the issue ?