Paste #68711: Untitled Paste

Date: 2020/05/08 20:59:04 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11


DiscordBot:
    debug: true
    type: world
    events:
        on discord message received channel:284524968841314304:
            - if <context.message.starts_with[~]>:
                - define command:<context.message.substring[<2>]>:
                - if <[command].starts_with[whitelist]>:
                    - define target:<[command].substring[<11>]>
                    - execute as_server "whitelist add <[target]>"
                    - execute as_server "pex user <[target]> group set whitelisted"