-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b018c4a
commit a8e28da
Showing
615 changed files
with
19,462 additions
and
9,077 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// | ||
|
||
export const dependencies = { | ||
// "is-thirteen": "^2.0.0", | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
//basic | ||
import fs from 'node:fs'; | ||
import path from 'node:path'; | ||
//plugin: samplecommand | ||
// | ||
|
||
export const PluginMeta = { | ||
identifier: "modernshellstamps", | ||
name: 'Modern Shell Stamps', | ||
author: 'onlypuppy7', | ||
version: '1.0.0', | ||
descriptionShort: 'Adds stamps from current shell!', //displayed when loading | ||
descriptionLong: 'Adds stamps from current shell!', | ||
legacyShellVersion: 334, //legacy shell version, can be found in /versionEnum.txt, or just on the homescreen | ||
}; | ||
|
||
export var pluginInstance = null; | ||
|
||
export class Plugin { | ||
constructor(plugins, thisDir) { | ||
this.plugins = plugins; | ||
this.thisDir = thisDir; | ||
|
||
pluginInstance = this; | ||
|
||
this.plugins.on('client:stampImageDirs', this.stampImageDirs.bind(this)); | ||
this.plugins.on('services:initTables', this.initTables.bind(this)); | ||
}; | ||
|
||
async stampImageDirs(data) { | ||
var stampImageDirs = data.stampImageDirs; | ||
|
||
stampImageDirs.push( | ||
path.join(this.thisDir, 'stamps') | ||
); | ||
}; | ||
|
||
async initTables(data) { //async operation requires awaits to ensure proper order | ||
await data.ss.recs.insertItems(path.join(this.thisDir, 'items')); | ||
}; | ||
}; |
Oops, something went wrong.