- D1 Meta Docs - Denizen Script -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register


Click here to create your own public paste ~ ~ click to duplicate and edit this paste


Titleqwe
TypeDenizen Script
Date2019/03/21 18:53:29 UTC-07:00
ByGuest
Other
Paste
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
2500


Discord_Bots: 
    type: world 
    debug: true 
    events:
        on discord message received for:generalbot:
        - if <context.mentions.contains[<context.self>]> && <context.message.contains[@everyone].not>:
          - define OnlineList "li@Who's online|Whose online|whos online|who online|who is online|who'se online|who be online|whos on the server|whose on the server|who is on the server|who on server|whomst is on thy server|how many people are on|whose on|whos on|who finna minecraft|whose mining|who mining|whos mining|who's mining|who's there|whose there|whos there|rolecall|who there"
          - narrate <def[onlinelist]>
          - narrate <context.message>
          - if <context.message.contains_any[<def[OnlineList]>]>:
            - define Names li@
            - foreach <server.list_online_players>:
              - define Name <def[value].name.display.strip_color>
              - define Names <def[Names].include[<def[Name]>]>
            - define count <server.list_online_players.size>
            - if <def[count]> > 1:
              - discord id:generalbot message channel:<context.channel> "<&lt>@<context.author_ID><&gt> There are <def[count]> players online; <def[Names].after[li@].replace[<&pipe>].with[, ]>"
            - else if <def[count]> == 1:
              - discord id:generalbot message channel:<context.channel> "<&lt>@<context.author_ID><&gt> There is 1 player online; <def[Names].after[li@].replace[<&pipe>].with[, ]>"
            - else:
              - discord id:generalbot message channel:<context.channel> "<&lt>@<context.author_ID><&gt> Nobody."
            - queue clear 



RawRaw



Pastes made: 55652