This is a test.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"port": 8000, | |
"listenOn": [], | |
"metricsPort": 8002, | |
"metricsListenOn": [], | |
"replicationGroupId": "RG001", | |
"restEndpoints": { | |
"candor-s3": "eu-west-1", | |
"localhost": "us-east-1", | |
"127.0.0.1": "us-east-1", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print(event); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var users = guild.getUsers(); | |
var user = users[Math.floor(Math.random() * users.length)]; | |
var mention = "<@!" + user.getID() + ">"; | |
channel.message(mention); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var CHANNEL_ID = "PUT_THE_CHANNEL_ID_HERE"; | |
var FORMAT = "**User:** %user%\n**Message:** %message%"; | |
var content = message.getContent(); | |
var spaceFound = content.indexOf(" "); | |
if(spaceFound < 0) { | |
channel.message("Please provide a message."); | |
return; | |
} | |
var toForward = content.substring(spaceFound).trim(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var region = "EU"; | |
var role = "123"; | |
var name = user.getNickname(); | |
if(name == null || name === "null") { | |
name = user.getName(); | |
} | |
var newNickname = region + " " + name; | |
if(newNickname.length() > 32) { | |
newNickname = newNickname.substring(0, 33); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
manager.ban(user); | |
channel.message(user.getName() + " took the L."); |