- on discord message received by cbot: +connect: + type: world + events: + on server start: + - wait 30s + - discord id:cbot connect code:NDIxMzY5MTgxNzMzMjU3MjI2.DlZX4A.hCiReIJvsBeGXhXzF_l1kzM3AXw + - discord id:cbot message channel:479450748384444436 ":heavy_check_mark: **SedexCraft has started.**" + on player chats: + - discord id:cbot message channel:479450748384444436 "**[SedexCraft] ** >> " + + on discord message received by cbot: + - if == 539062208135692298 { + - discord id:cbot message channel:479450748384444436 "**[SedexCraft DEBUG] ADMIN IF TRUE" + } + #Moderator + - if == 539062057535012884 { + - discord id:cbot message channel:479450748384444436 "**[SedexCraft DEBUG] MODERATOR IF TRUE" + } + + # Name: ban + # Arguments: [reason] + # Date: 01/28/2019 (last modified) - if "" { - - define online - # Has name and invalid - - if > 2 && ].not> { - - discord id:cbot message channel:479450748384444436 "**Invalid player specified.**" - } - # Has name and - - if = 2 { - - ban p@ "reason: You have been banned by " - - discord id:cbot message channel:479450748384444436 "**Successfully banned from the server!**" - - queue clear - } - # Has name, and at least one [reason] - - if > 2 { - - ban p@ "reason:]>" - - discord id:cbot message channel:479450748384444436 "**Successfully banned from the server!**" - - queue clear - } - # Has only name - - if < 2 { - - discord id:cbot message channel:479450748384444436 "**Not enough arguments**" - - discord id:cbot message channel:479450748384444436 "**Example command use:** !ban TechWiz Hate speech, racism" - } - } + #Has name and + - if == 2 { + - ban p@ "reason: You have been banned by " + - discord id:cbot message channel:479450748384444436 "**Successfully banned from the server!**" + - queue clear + } + #Has name, and at least one [reason] + - if > 2 { + - ban p@ "reason:]>" + - discord id:cbot message channel:479450748384444436 "**Successfully banned from the server!**" + - queue clear + } + #Has only name + - if < 2 { + - discord id:cbot message channel:479450748384444436 "**Not enough arguments**" + - discord id:cbot message channel:479450748384444436 "**Example command use:** !ban TechWiz Hate speech, racism" + } + } + + # Name: playerlist + # Arguments: N/A + # Description: Gives a list of all online players on all servers. + # Author: TechWiz + # Date: Unknown + - if "" { + discord id:cbot message channel:479450748384444436 "**SedexCraft ():** " + - queue clear + } + # Utilities + + #Sends a message to all servers when a someone messages in channel. + - if == 479450748384444436 && != "<&lb>Chat Bot<&rb> Discord" { + - announce "<&7>[<&e>Discord<&7>] <&f>: " + } + + on player joins: + - if || { + - queue clear + } + - if { + - queue clear + } + - discord id:cbot message channel:479450748384444436 ":heavy_plus_sign: ** joined SedexCraft**" + + on player quit: + - if || { + - queue clear + } else { + - discord id:cbot message channel:479450748384444436 ":heavy_minus_sign: ** left SedexCraft**" + } + + on player first login: + - flag player nodoublemsg d:5s + - discord id:cbot message channel:479450748384444436 ":heartpulse: ** joined SedexCraft for the first time!**" + + on votifier vote: + - discord id:cbot message channel:479450748384444436 ":tada: ** just voted for us!**"