Skip to content

Instantly share code, notes, and snippets.

View N-F9's full-sized avatar
🐧
Watching Hockey

Nick Ferguson N-F9

🐧
Watching Hockey
View GitHub Profile
@N-F9
N-F9 / durfor.min.js
Last active October 13, 2023 23:52
A small (236 bytes) duration formatter for JavaScript
module.exports=$=>{let s={years:31536e6,months:2592e6,days:864e5,hours:36e5,minutes:6e4,seconds:1e3,milliseconds:1},e="";for(x in s){let n=Math.floor($/s[x]);0!=$&&n>0&&(e+=n+" "+(1==n?x.substring(0,x.length-1):x)+" ",$%=s[x])}return e}
[NPM](https://www.npmjs.com/package/@n-f9/quack.js) | [Github](https://github.com/N-F9/quack.js)
**Changes**
- Updated packages
**Bug Fixes**
- Fixed permissions
[NPM](https://www.npmjs.com/package/@n-f9/quack.js) | [Github](https://github.com/N-F9/quack.js)
**Changes**
- Removed locales
- Objects for Discord limits
- General project clean up
- Dependency updates
**Bug Fixes**
- Some general bug fixing
@N-F9
N-F9 / upload.bash
Created February 19, 2022 19:30
A super small script to upload a file to anonfiles API.
#!/usr/bin/env bash
content=$(curl -s -F "file=@$1" https://api.anonfiles.com/upload)
url=$(jq -r '.data.file.url.short' <<< "$content")
name=$(jq -r '.data.file.metadata.name' <<< "$content")
size=$(jq -r '.data.file.metadata.size.readable' <<< "$content")
echo -e ""
echo -e "\e[0;30m┌─\e[0m ${name} \e[0;30m─\e[0m ${size}"
echo -e "\e[0;30m└\e[0m \e[1;97m${url}\e[0m"
[NPM](https://www.npmjs.com/package/@n-f9/quack.js) | [Github](https://github.com/N-F9/quack.js)
**Changes**
- Community Discord server with bot
- A CLI for creating Quack.js projects
- Moved the docs to a new website for easier management
- Updated examples
- Added locales (only option is en_US)
- A debug log option for testing
- A HTML class for creating and managing HTML pages
@N-F9
N-F9 / information.md
Last active February 6, 2022 14:18
Quack.js - Information

Quack.js is a Discord.js bot framework serving as a kickstart for any purpose. The framework was designed for production or testing use cases. It provides a wide assortment of utilities for just about any need. Getting a channel from an id or generating a random number is done easily with a single import. It easily takes care of the boring stuff, like building the structure of bot and creating utilities, allowing you to focus on the fun stuff.

Installation You can easily install Quack.js by opening a new directory and installing the npm package, npm i @n-f9/quack.js. Or if you want to easily generate a project, use the CLI! Install using npm i @n-f9/quack.js-cli -g, and create a project by typing, npx create-quack-project.

Documentation/Wiki For more documentation, take a look at the website!

Rules There's four rules.

@N-F9
N-F9 / Test
Created December 14, 2021 23:50
this is a test
for [catppuccin](https://github.com/catppuccin/catppuccin)
@N-F9
N-F9 / Website
Last active February 12, 2022 22:17
https://www.nickf.me/