Skip to content

Instantly share code, notes, and snippets.

View Arraying's full-sized avatar
🚀

Paul Hübner Arraying

🚀
View GitHub Profile
@Arraying
Arraying / candor_cloudserver_config.json
Created November 18, 2022 18:45
A config to use Zenko Cloudserver as an S3 storage option for Candor.
{
"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",
print(event);

Hi

This is a test.

var users = guild.getUsers();
var user = users[Math.floor(Math.random() * users.length)];
var mention = "<@!" + user.getID() + ">";
channel.message(mention);
@Arraying
Arraying / newbieguide.md
Last active January 29, 2020 08:00
Official unofficial guide on how to access the resource channels

Official unofficial guide on how to access the resource channels

This guide is no longer available as it is no longer relevant.

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();
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);
}
@Arraying
Arraying / selfban.js
Created September 29, 2018 19:04
Fortnite Clickbait
manager.ban(user);
channel.message(user.getName() + " took the L.");