From 3c45406f6f596da82cc7cbc5e8631beb4b103d2e Mon Sep 17 00:00:00 2001 From: Max Litruv Boonzaayer Date: Sat, 4 Apr 2026 19:10:33 +1100 Subject: [PATCH] feat: add donate command to support the developer --- website/scripts/commands/donate.js | 17 +++++++++++++++++ website/terminal.js | 5 +++++ 2 files changed, 22 insertions(+) create mode 100644 website/scripts/commands/donate.js diff --git a/website/scripts/commands/donate.js b/website/scripts/commands/donate.js new file mode 100644 index 0000000..9362798 --- /dev/null +++ b/website/scripts/commands/donate.js @@ -0,0 +1,17 @@ +/** + * Donate command - Support the developer + */ +export default { + description: 'Support via donation', + execute: () => { + return [ + '', + ' If you enjoy what I do, consider buying me a iced coffee!', + '', + ' 💳 Donate: https://donate.stripe.com/9AQdRv6ttfv40Ra289', + '', + ' Your support allows me to continue developing and maintaining my projects, and is greatly appreciated!', + '' + ].join('\r\n'); + } +}; diff --git a/website/terminal.js b/website/terminal.js index 1907136..6374fd6 100644 --- a/website/terminal.js +++ b/website/terminal.js @@ -11,6 +11,7 @@ import bannerCmd from './scripts/commands/banner.js'; import githubCmd from './scripts/commands/github.js'; import contactCmd from './scripts/commands/contact.js'; import privacyCmd from './scripts/commands/privacy.js'; +import donateCmd from './scripts/commands/donate.js'; import blueskyCmd from './scripts/commands/bluesky.js'; import numbermatchCmd, { gameMode, processGameInput, handleTileClick } from './scripts/commands/numbermatch.js'; import samsayCmd from './scripts/commands/samsay.js'; @@ -544,6 +545,10 @@ const commands = { description: privacyCmd.description, execute: (args) => privacyCmd.execute(term, writeClickable, VERSION, args, commandHistory) }, + donate: { + description: donateCmd.description, + execute: (args) => donateCmd.execute(term, writeClickable, VERSION, args, commandHistory) + }, bluesky: { description: blueskyCmd.description, execute: async (args) => await blueskyCmd.execute(term, writeClickable, VERSION, args, commandHistory)