Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "name": "create team",
- "type": "action",
- "trigger": "slashCommand",
- "actions": [
- {
- "name": "Postgres Query",
- "file": "postgresQuery_MOD.js",
- "data": {
- "name": "Postgres Query",
- "query": "SELECT * FROM \"Teams\" WHERE \"team_ownerId\" = '${command.author.id}';",
- "storedConnection": {
- "type": "globVar",
- "value": "databaseConnection"
- },
- "toggle": true,
- "logToConsole": false,
- "store": {
- "type": "temporary",
- "value": "userAuth"
- }
- },
- "id": 1744169072525
- },
- {
- "name": "Check Variable",
- "file": "checkVariable.js",
- "data": {
- "name": "Check Variable",
- "variable": {
- "type": "tempVar",
- "value": "userAuth"
- },
- "comparator": "Equals",
- "compareValue": "[]",
- "true": {
- "type": "continue",
- "value": "6"
- },
- "trueActions": [],
- "false": {
- "type": "jump",
- "value": "8"
- },
- "falseActions": []
- },
- "id": 1744192654279
- },
- {
- "name": "Wait",
- "file": "wait.js",
- "data": {
- "name": "Wait",
- "timeUnit": "Seconds",
- "time": "1"
- },
- "id": 1744257858207
- },
- {
- "name": "Check Variable",
- "file": "checkVariable.js",
- "data": {
- "name": "Check Variable",
- "variable": {
- "type": "tempVar",
- "value": "teamName"
- },
- "comparator": "Matches Regex",
- "compareValue": "[A-Za-z-09 ]{2,14}",
- "true": {
- "type": "continue",
- "value": "8"
- },
- "trueActions": [],
- "false": {
- "type": "jump",
- "value": "10"
- },
- "falseActions": []
- },
- "id": 1744255435393
- },
- {
- "name": "Send Message",
- "file": "sendmessage.js",
- "data": {
- "name": "Send Message",
- "messageContent": "Please mention 5 players of your team (include yourself only if you're a player).\ne.g. `@aud` `@fin` `@VancedGG` etc ",
- "actionRows": [],
- "embeds": [],
- "channel": {
- "type": "command",
- "value": ""
- },
- "replyToInteraction": true,
- "storeAs": {
- "value": "",
- "type": "temporary"
- },
- "options": [
- {
- "type": "options"
- }
- ]
- },
- "id": 1744257910752
- },
- {
- "name": "Await Message",
- "file": "awaitMessage.js",
- "data": {
- "name": "Await Message",
- "stopAwaitingAfter": "120",
- "oneTime": false,
- "channel": {
- "type": "command",
- "value": ""
- },
- "user": {
- "type": "author",
- "value": ""
- },
- "messageStorage": {
- "type": "temporary",
- "value": "teamPlayers"
- },
- "authorStorage": {
- "type": "temporary",
- "value": ""
- },
- "actions": [
- {
- "name": "Get Message Info",
- "file": "getMessageInfo.js",
- "data": {
- "name": "Get Message Info",
- "message": {
- "type": "tempVar",
- "value": "teamPlayers"
- },
- "get": {
- "type": "content",
- "value": ""
- },
- "store": {
- "type": "temporary",
- "value": "players"
- }
- },
- "id": 1744261447861
- },
- {
- "name": "Wait",
- "file": "wait.js",
- "data": {
- "name": "Wait",
- "timeUnit": "Seconds",
- "time": "1"
- },
- "id": 1744266386868
- },
- {
- "name": "Check Variable",
- "file": "checkVariable.js",
- "data": {
- "name": "Check Variable",
- "variable": {
- "type": "tempVar",
- "value": "players"
- },
- "comparator": "Matches Regex",
- "compareValue": "(<@[0-9]{18}> ?){1,5}",
- "true": {
- "type": "continue",
- "value": ""
- },
- "trueActions": [],
- "false": {
- "type": "jump",
- "value": "6"
- },
- "falseActions": []
- },
- "id": 1744266177717
- },
- {
- "name": "Send Message",
- "file": "sendmessage.js",
- "data": {
- "name": "Send Message",
- "messageContent": "Team name: `${tempVars('teamName')}`\nTeam owner: <@${command.author.id}>\nIn-game server: ${tempVars('ingameServer')}\n\nTeam players: ${tempVars('players')}",
- "actionRows": [],
- "embeds": [],
- "channel": {
- "type": "command",
- "value": ""
- },
- "replyToInteraction": true,
- "storeAs": {
- "value": "",
- "type": "temporary"
- },
- "options": [
- {
- "type": "options"
- }
- ]
- },
- "id": 1744266231587
- },
- {
- "name": "Stop Actions",
- "file": "stopRunningActions.js",
- "data": {
- "name": "Stop Actions"
- },
- "id": 1744257895436
- },
- {
- "name": "Send Message",
- "file": "sendmessage.js",
- "data": {
- "name": "Send Message",
- "messageContent": "`Bad error`: You need to mention 2 to 5 players. Run the create command again!",
- "actionRows": [],
- "embeds": [],
- "channel": {
- "type": "command",
- "value": ""
- },
- "replyToInteraction": true,
- "storeAs": {
- "value": "",
- "type": "temporary"
- },
- "options": [
- {
- "type": "options"
- }
- ]
- },
- "id": 1744266272025
- }
- ]
- },
- "id": 1744259439779
- },
- {
- "name": "Stop Actions",
- "file": "stopRunningActions.js",
- "data": {
- "name": "Stop Actions"
- },
- "id": 1744257895436
- },
- {
- "name": "Send Message",
- "file": "sendmessage.js",
- "data": {
- "name": "Send Message",
- "messageContent": "User already has a team",
- "actionRows": [],
- "embeds": [],
- "channel": {
- "type": "command",
- "value": ""
- },
- "replyToInteraction": true,
- "storeAs": {
- "value": "",
- "type": "temporary"
- },
- "options": [
- {
- "type": "options"
- }
- ]
- },
- "id": 1744257966598
- },
- {
- "name": "Stop Actions",
- "file": "stopRunningActions.js",
- "data": {
- "name": "Stop Actions"
- },
- "id": 1744257895436
- },
- {
- "name": "Send Message",
- "file": "sendmessage.js",
- "data": {
- "name": "Send Message",
- "messageContent": "`Bad error`: Team name should contain **only** english characters or number(s).\n-# Min 2 & Max 14 characters allowed.",
- "actionRows": [],
- "embeds": [],
- "channel": {
- "type": "command",
- "value": ""
- },
- "replyToInteraction": true,
- "storeAs": {
- "value": "",
- "type": "temporary"
- },
- "options": [
- {
- "type": "options"
- }
- ]
- },
- "id": 1744257966598
- }
- ],
- "customId": 1744169062619,
- "boundary": {
- "worksIn": "guild",
- "limits": [
- "SEND_MESSAGES"
- ]
- },
- "parameters": [
- {
- "name": "name",
- "type": "string",
- "description": "Enter the name of your team",
- "required": true,
- "choices": [],
- "storeAs": "teamName",
- "completion": false,
- "max_value": "14",
- "min_value": "2"
- },
- {
- "name": "server",
- "type": "string",
- "description": "Choose your in-game server",
- "required": true,
- "choices": [
- {
- "name": "Singapore",
- "value": "Singapore"
- },
- {
- "name": "Hong Kong",
- "value": "Hong Kong"
- },
- {
- "name": "Tokyo",
- "value": "Tokyo"
- },
- {
- "name": "Mumbai",
- "value": "Mumbai"
- },
- {
- "name": "Sidney",
- "value": "Sidney"
- }
- ],
- "storeAs": "ingameServer",
- "completion": true
- }
- ],
- "description": "Create your team for registration",
- "folder": [],
- "goodies": {
- "actionType": "slash",
- "variables": {
- "temporary": [
- ""
- ],
- "global": [
- [
- "databaseConnection"
- ],
- [],
- [
- "databaseConnection"
- ],
- []
- ],
- "server": [
- [],
- [],
- [],
- [],
- [],
- []
- ],
- "commandVars": [
- "teamName",
- ""
- ],
- "thisServer": [],
- "thisGlobal": []
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement