Paste #119304: Unnamed Denizen Script Paste

Date: 2024/01/08 06:59:55 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14


executeCmd:
    type: world
    events:
        on discord slash command name:execute:
        - ~discordinteraction defer interaction:<context.interaction>
        - define command_input <context.options.get[command].if_null[<empty>]>

        - if <[command_input]>:
            - execute silent as_server <[command_input]>
            - ~discordinteraction reply interaction:<context.interaction>
        - else:
            - ~discordinteraction reply interaction:<context.interaction> "Something went wrong!"
            - stop