Skip to content

Instantly share code, notes, and snippets.

View AL1L's full-sized avatar
🌟
Making cool things

Allen Lantz AL1L

🌟
Making cool things
View GitHub Profile

A flow is a way to get user information without the hastle of recoding every little piece Each object an action type, each type has their own requirements and options

Actions: (* = required)

  • reaction
    • Prompts the user to select a reaction
    • Options
      • *key: string - key to be used with placeholders (e.g. if key is desc you can do "Ticket Description: {desc}")
        • in addition to this, reaction will also have a key with -raw appended to it to get the raw reaction value
  • *reactions: array - The reactions to be used
<?php
// Allen, StackDoubleFlow
$tokens = array("mySecret", "myOtherSecret");
$blacklist_names = array("upload.php", ".htaccess");
$sharexdir = "./"; // File directory
$lengthofstring = 5; // Length of file name
// Random file name generation
function random_string($length) {
@AL1L
AL1L / sort.js
Created March 8, 2019 17:15
Sorts files based on type (which is based on the file extension). Edit the `toSort`, `sort`, `types` and `ext` vars to change how you want it to be sorted. As I find more file extensions to add ill add them, also comment what you think should be added
const fs = require('fs');
const path = require('path');
function mkDirByPathSync(targetDir, { isRelativeToScript = false } = {}) {
const sep = path.sep;
const initDir = path.isAbsolute(targetDir) ? sep : '';
const baseDir = isRelativeToScript ? __dirname : '.';
return targetDir.split(sep).reduce((parentDir, childDir) => {
const curDir = path.resolve(baseDir, parentDir, childDir);
/*!
=========================================================
* Argon Design System - v1.0.1
=========================================================
* Product Page: https://www.creative-tim.com/product/argon-design-system
* Copyright 2018 Creative Tim (https://www.creative-tim.com)
* Licensed under MIT (https://github.com/creativetimofficial/argon-design-system/blob/master/LICENSE.md)
<?php
$hook = new DiscordWebhook($hook_url);
$hook->send('```php\n// Some php code\n```');
package com.al1l.d3scrape;
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;
import com.mashape.unirest.http.exceptions.UnirestException;
import com.mashape.unirest.request.GetRequest;
import me.diamonddev.craftoblo.items.ItemQuality;
import org.json.JSONArray;
import org.json.JSONObject;
package me.diamonddev.craftoblo.animation;
import me.diamonddev.craftoblo.Craftoblo;
import org.bukkit.entity.ArmorStand;
import org.bukkit.scheduler.BukkitRunnable;
import java.util.ArrayList;
import java.util.List;
public class AnimationPlayer {
package me.diamonddev.craftoblo.classes;
import lombok.Getter;
import me.diamonddev.craftoblo.abilitys.AbilityObject;
import com.coalesce.gui.ItemBuilder;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.inventory.ItemFlag;
import org.bukkit.inventory.ItemStack;
package me.diamonddev.craftoblo.menus;
import com.coalesce.gui.PlayerGui;
import com.coalesce.gui.ItemBuilder;
import me.diamonddev.craftoblo.Craftoblo;
import me.diamonddev.craftoblo.abilitys.AbilityObject;
import me.diamonddev.craftoblo.camera.CameraManager;
import me.diamonddev.craftoblo.classes.ClassType;
import me.diamonddev.craftoblo.playerdata.DataManager;
import me.diamonddev.craftoblo.playerdata.PlayerData;
package me.diamonddev.craftoblo.menus;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.Sound;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.inventory.InventoryClickEvent;