From 38890a4da5c892de1e3265277c8521d381ac6d84 Mon Sep 17 00:00:00 2001 From: Ritchie Cunningham Date: Wed, 23 Apr 2025 00:33:35 +0100 Subject: [PATCH] [Remove] Long ass comment atop the imgbb file is obsolute now that we're using a README. --- README.md | 2 +- imgbb | 32 -------------------------------- 2 files changed, 1 insertion(+), 33 deletions(-) diff --git a/README.md b/README.md index adb3ed5..a69f0a7 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Ideal for quickly sharing screenshots or images in environments like IRC without **Contributors:** dacav -**Version:** 1.0 (as of 22/04/2025) +**Version:** 1.2 (as of 22/04/2025) ## Features diff --git a/imgbb b/imgbb index f87bf51..0848e9f 100755 --- a/imgbb +++ b/imgbb @@ -10,38 +10,6 @@ # Version: 1.2 # Date: 22/04/2025 # ----------------------------------------------------------------------------- -# Usage Examples: -# -# Examples: -# imgbb # Upload clipboard, expire 2h. -# imgbb my_image.png # Upload file, expire 2h (or whatever you declare expire_seconds to). -# imgbb -e 10m # Upload clipboard, expire 10m. -# imgbb -e 0 # Upload clipboard, never expire. -# imgbb -n "Diagram" --markdown img.jpg. -# imgbb -h # See help for more information. -# ----------------------------------------------------------------------------- -# Dependencies: -# - bash (v4+ required for =~, (( )), BASH_REMATCH) -# - curl: (e.g., sudo apt install curl) -# - jq: (e.g., sudo apt install jq) -# - Clipboard tool: -# - xclip: (X11 clipboard access) (e.g., sudo apt install xclip) -# - wl-clipboard (For Wayland clipboard access) (e.g., sudo apt install wl-clipboard) -# - notify-send: (Optional, for desktop notifications) (e.g., sudo apt install notify-send) -# - Coreutils: (mktemp, basename, rm, cat, echo, etc. - usually standard) -# ----------------------------------------------------------------------------- -# Configuration: -# Requires an ImgBB API key (v1). Get one free: https://api.imgbb.com/ -# Set the API key using ONE of these methods (checked in this order): -# 1. Environment Variable: IMGBB_API_KEY="YOUR KEY HERE" -# 2. Config File: Create ~/.config/imgbb_uploader.conf and add a line like: -# api_key="YOUR_KEY_HERE" -# (We'll soon have other defaults to set here). -# ----------------------------------------------------------------------------- -# Notes: -# - Supports both X11 (using xclip) and Wayland (using wl-clipboard) sessions. -# It detects the session type using $XDG_SESSION_TYPE. -# ----------------------------------------------------------------------------- # === Default Configuration & Argument Parsing. ===