Skip to content

Instantly share code, notes, and snippets.

View dylanjamesdev's full-sized avatar
🤒

Dylan J. dylanjamesdev

🤒
View GitHub Profile
#!/bin/bash
PINK='\033[38;5;211m'
PURPLE='\033[38;5;135m'
INDIGO='\033[38;5;93m'
NC='\033[0m' # No Color
pad() {
local text="$1"
local padding=25
@dylanjamesdev
dylanjamesdev / rename-hentai.js
Created February 13, 2022 05:09
A super simple script that renames all files in a dir to random strings.
/**
* A super simple scripty to rename all files in a directory to random strings, I use this to rename hentai lmao.
* ~~uwu instructions~~
* npm i fs chalk --save
* node run [file].js
*/
const fs = require("fs"),
c = require("chalk"); // Has to 2.0.0 bc stupid esm modules
I do need some help, I'm sorry to ask this way lmfao but I for the life of me can't get slash commands to work (javascript)
1. Fetch slash commands from files and place in a collection
```const slashFiles = glob.sync("./handlers/slash/*.js");
for (const file of slashFiles) {
const slashcommand = require(file);
client.slashcommands.set(slashcommand.name, slashcommand);
}```