feat: add donate command to support the developer

This commit is contained in:
2026-04-04 19:10:33 +11:00
parent f40856d747
commit 3c45406f6f
2 changed files with 22 additions and 0 deletions

View File

@@ -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');
}
};

View File

@@ -11,6 +11,7 @@ import bannerCmd from './scripts/commands/banner.js';
import githubCmd from './scripts/commands/github.js'; import githubCmd from './scripts/commands/github.js';
import contactCmd from './scripts/commands/contact.js'; import contactCmd from './scripts/commands/contact.js';
import privacyCmd from './scripts/commands/privacy.js'; import privacyCmd from './scripts/commands/privacy.js';
import donateCmd from './scripts/commands/donate.js';
import blueskyCmd from './scripts/commands/bluesky.js'; import blueskyCmd from './scripts/commands/bluesky.js';
import numbermatchCmd, { gameMode, processGameInput, handleTileClick } from './scripts/commands/numbermatch.js'; import numbermatchCmd, { gameMode, processGameInput, handleTileClick } from './scripts/commands/numbermatch.js';
import samsayCmd from './scripts/commands/samsay.js'; import samsayCmd from './scripts/commands/samsay.js';
@@ -544,6 +545,10 @@ const commands = {
description: privacyCmd.description, description: privacyCmd.description,
execute: (args) => privacyCmd.execute(term, writeClickable, VERSION, args, commandHistory) execute: (args) => privacyCmd.execute(term, writeClickable, VERSION, args, commandHistory)
}, },
donate: {
description: donateCmd.description,
execute: (args) => donateCmd.execute(term, writeClickable, VERSION, args, commandHistory)
},
bluesky: { bluesky: {
description: blueskyCmd.description, description: blueskyCmd.description,
execute: async (args) => await blueskyCmd.execute(term, writeClickable, VERSION, args, commandHistory) execute: async (args) => await blueskyCmd.execute(term, writeClickable, VERSION, args, commandHistory)