This file contains 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
Eheox |
This file contains 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
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); | |
}``` | |
This file contains 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
/** | |
* 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 |
This file contains 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
#!/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 |