Basic Shipping Command

Discussion in 'Tutorials and Guides' started by 哀歌さん, Oct 29, 2017.

  1. 哀歌さん

    哀歌さん New Member

    Joined:
    Oct 29, 2017
    Messages:
    17
    Likes Received:
    3
    Purpose
    If you're into anime or somewhat familiar with it, you're probably also aware about "Shipping". Basically, when people are for two people being together. This command basically lets your bot decide whether or not it is a good "ship" or not and if two people should be together.

    Usage
    To use this command, all you have to do is mention both users and your bot will generate a response of whether or not the ship will sail.

    [p]ShipIt [user1] [user2]

    This is a basic command however and is not predetermined to save data. Basically, responses for the same two people can change. The responses made can be changed to however you'd like.

    {
    "name": "ShipIt",
    "permissions": "NONE",
    "restriction": "1",
    "actions": [
    {
    "condition": "1",
    "comparison": "0",
    "value": "2",
    "iftrue": "3",
    "iftrueVal": "5",
    "iffalse": "0",
    "iffalseVal": "",
    "name": "Check Parameters"
    },
    {
    "channel": "0",
    "varName": "",
    "message": "**「Social Interaction System」**\nーPlease mention the two party members that should be shipped and I'll tell you if I ship it or not.\n[p]ShipIt [@user1] [@user2]",
    "storage": "1",
    "varName2": "ShipFail",
    "name": "Send Message"
    },
    {
    "time": "15",
    "measurement": "1",
    "name": "Wait"
    },
    {
    "storage": "0",
    "varName": "",
    "name": "Delete Message"
    },
    {
    "storage": "1",
    "varName": "ShipFail",
    "name": "Delete Message"
    },
    {
    "name": "End Action Sequence"
    },
    {
    "info": "0",
    "infoIndex": "1",
    "storage": "1",
    "varName": "Ship1",
    "name": "Store Command Params"
    },
    {
    "info": "0",
    "infoIndex": "2",
    "storage": "1",
    "varName": "Ship2",
    "name": "Store Command Params"
    },
    {
    "storage": "1",
    "varName": "YesNo",
    "min": "1",
    "max": "4",
    "name": "Generate Random Number"
    },
    {
    "storage": "1",
    "varName": "YesNo",
    "comparison": "1",
    "value": "1",
    "iftrue": "0",
    "iftrueVal": "",
    "iffalse": "3",
    "iffalseVal": "5",
    "name": "Check Variable"
    },
    {
    "channel": "0",
    "varName": "",
    "message": "**「Social Interaction System」**\nーHnng! I definitely ship ${tempVars(\"Ship1\")} and ${tempVars(\"Ship2\")} together!",
    "storage": "1",
    "varName2": "Yes1",
    "name": "Send Message"
    },
    {
    "time": "15",
    "measurement": "1",
    "name": "Wait"
    },
    {
    "storage": "1",
    "varName": "Yes1",
    "name": "Delete Message"
    },
    {
    "storage": "0",
    "varName": "",
    "name": "Delete Message"
    },
    {
    "name": "End Action Sequence"
    },
    {
    "storage": "1",
    "varName": "YesNo",
    "comparison": "1",
    "value": "2",
    "iftrue": "0",
    "iftrueVal": "",
    "iffalse": "3",
    "iffalseVal": "5",
    "name": "Check Variable"
    },
    {
    "channel": "0",
    "varName": "",
    "message": "**「Social Interaction System」**\nー${tempVars(\"Ship1\")} and ${tempVars(\"Ship2\")}? Definitely an amazing ship!",
    "storage": "1",
    "varName2": "Yes2",
    "name": "Send Message"
    },
    {
    "time": "15",
    "measurement": "1",
    "name": "Wait"
    },
    {
    "storage": "1",
    "varName": "Yes2",
    "name": "Delete Message"
    },
    {
    "storage": "0",
    "varName": "",
    "name": "Delete Message"
    },
    {
    "name": "End Action Sequence"
    },
    {
    "storage": "1",
    "varName": "YesNo",
    "comparison": "1",
    "value": "3",
    "iftrue": "0",
    "iftrueVal": "",
    "iffalse": "3",
    "iffalseVal": "5",
    "name": "Check Variable"
    },
    {
    "channel": "0",
    "varName": "",
    "message": "**「Social Interaction System」**\nーIs that suppose to be a joke? Not even I would ship ${tempVars(\"Ship1\")} and ${tempVars(\"Ship2\")}, it'd sink before it even sets sail.",
    "storage": "1",
    "varName2": "No1",
    "name": "Send Message"
    },
    {
    "time": "15",
    "measurement": "1",
    "name": "Wait"
    },
    {
    "storage": "1",
    "varName": "No1",
    "name": "Delete Message"
    },
    {
    "storage": "0",
    "varName": "",
    "name": "Delete Message"
    },
    {
    "name": "End Action Sequence"
    },
    {
    "storage": "1",
    "varName": "YesNo",
    "comparison": "1",
    "value": "4",
    "iftrue": "0",
    "iftrueVal": "",
    "iffalse": "3",
    "iffalseVal": "5",
    "name": "Check Variable"
    },
    {
    "channel": "0",
    "varName": "",
    "message": "**「Social Interaction System」**\nーDidn't the ${tempVars(\"Ship1\")} and ${tempVars(\"Ship2\")} ship sink already? Last I recall, it was a terrible ship that didn't even last in a squall.",
    "storage": "1",
    "varName2": "No2",
    "name": "Send Message"
    },
    {
    "time": "15",
    "measurement": "1",
    "name": "Wait"
    },
    {
    "storage": "1",
    "varName": "No2",
    "name": "Delete Message"
    },
    {
    "storage": "0",
    "varName": "",
    "name": "Delete Message"
    }
    ],
    "comType": "0"
    }
     
  2. Lasse

    Lasse I am always watching you!
    Moderator

    Joined:
    Oct 7, 2017
    Messages:
    155
    Likes Received:
    21
    That's a really needed function for DBM... lol
     
  3. kubilayuzun08

    kubilayuzun08 New Member

    Joined:
    Nov 1, 2017
    Messages:
    1
    Likes Received:
    0
  4. Oli

    Oli Member

    Joined:
    Nov 1, 2017
    Messages:
    54
    Likes Received:
    3
    Thanks for this, but could you kinda explain how the command works?
     
  5. Lasse

    Lasse I am always watching you!
    Moderator

    Joined:
    Oct 7, 2017
    Messages:
    155
    Likes Received:
    21
    You can store two names of members as example: !ship @Frank @Marie
    It would cut both names in the middle and creates a new word. The output would be Frie...
     
  6. Oli

    Oli Member

    Joined:
    Nov 1, 2017
    Messages:
    54
    Likes Received:
    3
    Maybe you could add a detection so you dont get a name like: Bo34Sa@
     
  7. egg ~ !!

    egg ~ !! New Member

    Joined:
    Jun 4, 2018
    Messages:
    1
    Likes Received:
    0
    is there any way to have the command run properly without deleting them afterward? whenever I try to edit the command so it won't do that, the whole command doesn't work correctly.
     
  8. xavier

    xavier New Member

    Joined:
    Jul 19, 2019
    Messages:
    6
    Likes Received:
    0
    could you make a marry command please?
     
  9. Karisaka

    Karisaka New Member

    Joined:
    May 17, 2020
    Messages:
    1
    Likes Received:
    0
    where can i paste it?
     

Share This Page