Paste #129354: Unnamed Denizen Script Paste

Date: 2024/12/25 17:37:12 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


discord_basics:
    type: world
    events:
        after server start:
            - ~discordconnect id:mybot token:<secret[my_bot_token]>
            - discordmessage id:mybot channel:<server.flag[discord.logs.joins]> "**Server has come back online.**" if:<server.has_flag[discord.logs.joins]>
            - define group <server.flag[discord.group]>
            - definemap options:
                1:
                    type: string
                    name: message
                    description: The message you want to send in admin chat.
                    required: true
            - ~discordcommand id:mybot create group:<[group]> "description:Send a message in admin chat." name:ac options:<[options]>
            - definemap options:
                1:
                    type: string
                    name: command
                    description: The command you want to execute.
                    required: true
                2:
                    type: boolean
                    name: shown
                    description: Whether you want this shown to others.
                    required: false
            - ~discordcommand id:mybot create group:<[group]> "description:Executes a command from the console." name:console options:<[options]>
            - discordcommand id:mybot create group:<[group]> "description:Checks if the server is online." name:online
#            - definemap options:
#                1:
#                    type: number
#                    name: amount
#                    description: How many messages you want to delete.
#                    required: true
#            - ~discordcommand id:mybot create group:<[group]> "description:Removes the previously specified number of messages from this channel." name:purge options:<[options]>
            - definemap options:
                1:
                    type: boolean
                    name: shown
                    description: Whether you want this shown to others.
                    required: false
            - ~discordcommand id:mybot create group:<[group]> "description:Reloads all scripts." name:reload options:<[options]>
            - definemap options:
                1:
                    type: string
                    name: message
                    description: The message you want to send in staff chat.
                    required: true
            - ~discordcommand id:mybot create group:<[group]> "description:Send a message in staff chat." name:sc options:<[options]>
            - definemap options:
                1:
                    type: string
                    name: type
                    description: Which platform you want to make a ticket about.
                    required: true
                    choices:
                        1:
                            name: Discord
                            value: discord
                        2:
                            name: Minecraft
                            value: minecraft
            - ~discordcommand id:mybot create group:<server.flag[discord.group]> "description:Creates a ticket for staff." name:ticket options:<[options]>
            - definemap options:
                1:
                    type: user
                    name: user
                    description: Which user you want to ban from making tickets.
                    required: true
            - ~discordcommand id:mybot create group:<[group]> "description:Bans a player from making tickets." name:ticketban options:<[options]>
            - definemap options:
                1:
                    type: user
                    name: user
                    description: Which user you want to unban from making tickets.
                    required: true
            - ~discordcommand id:mybot create group:<[group]> "description:Unbans a player from making tickets." name:ticketunban options:<[options]>