Bot music + embed

Discussion in 'General Support' started by LokisLIVE, Jul 22, 2020.

  1. LokisLIVE

    LokisLIVE New Member

    Joined:
    Jul 22, 2020
    Messages:
    1
    Likes Received:
    0
    hi, I would like to make my bot play music and display on embed with duration and title and other options.

    The problem is that the bot comes in the voice channel play music but doesn't display any embed.

    https://prnt.sc/tmg1hr

    Code:
    {
      "name": "play",
      "permissions": "NONE",
      "restriction": "1",
      "_id": "ryeCi",
      "actions": [
        {
          "info": "0",
          "infoIndex": "1",
          "storage": "1",
          "varName": "url",
          "name": "Store Command Params"
        },
        {
          "channel": "0",
          "varName": "",
          "name": "Join Voice Channel"
        },
        {
          "url": "${tempVars(\"url\")}",
          "seek": "0",
          "volume": "50",
          "passes": "1",
          "bitrate": "",
          "type": "0",
          "name": "Play YouTube Video"
        },
        {
          "video": "${tempVars(\"url\")}",
          "info": "2",
          "storage": "1",
          "varName": "title",
          "name": "Store YouTube Info"
        },
        {
          "video": "${tempVars(\"url\")}",
          "info": "4",
          "storage": "1",
          "varName": "owner",
          "name": "Store YouTube Info"
        },
        {
          "video": "${tempVars(\"url\")}",
          "info": "6",
          "storage": "1",
          "varName": "url2",
          "name": "Store YouTube Info"
        },
        {
          "video": "${tempVars(\"url\")}",
          "info": "12",
          "storage": "1",
          "varName": "duration",
          "name": "Store YouTube Info"
        },
        {
          "server": "0",
          "info": "5",
          "storage": "1",
          "varName": "queu",
          "varName2": "",
          "name": "Store Audio Info"
        },
        {
          "storage": "1",
          "varName": "embed",
          "fieldName": "Auteur :",
          "message": "${tempVars(\"owner\")}",
          "inline": "0",
          "name": "Add Embed Field"
        },
        {
          "storage": "1",
          "varName": "embed",
          "fieldName": "Durée :",
          "message": "${tempVars(\"duration\")}",
          "inline": "0",
          "name": "Add Embed Field"
        },
        {
          "storage": "1",
          "varName": "embed",
          "fieldName": "Queu :",
          "message": "${tempVars(\"queu\")}",
          "inline": "0",
          "name": "Add Embed Field"
        },
        {
          "title": "${tempVars(\"title\")}",
          "author": "",
          "color": "RED",
          "url": "${tempVars(\"url\")}",
          "authorIcon": "",
          "authorUrl": "",
          "imageUrl": "",
          "thumbUrl": "${tempVars(\"url2\")}",
          "timestamp": "false",
          "debug": "false",
          "text": "",
          "year": "",
          "month": "",
          "day": "",
          "hour": "",
          "minute": "",
          "second": "",
          "storage": "1",
          "varName": "embed",
          "name": "Create Embed Message"
        },
        {
          "storage": "1",
          "varName": "embed",
          "channel": "0",
          "varName2": "",
          "storage3": "0",
          "varName3": "",
          "iffalse": "0",
          "iffalseVal": "",
          "messageContent": "",
          "name": "Send Embed Message"
        }
      ]
    }
    
     
  2. lester

    lester New Member

    Joined:
    Jul 22, 2020
    Messages:
    1
    Likes Received:
    0
    Put the create embed message action in front of the add embed fields. and put the fields into the embed you created in embed object.
     

Share This Page