Skip to content

Commit

Permalink
feat: improve sample code
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexStormwood committed Mar 27, 2024
1 parent 2794f98 commit 09aa626
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
const scopedPackageJson = require('../package.json');

const installerProcess = require("node:child_process");

async function pluginCode(){
const cowsay = require("cowsay");


console.log(`Sourcepool plugin ${scopedPackageJson.name} loading.`);

console.log(cowsay.say({text:"Hello, I'm a Sourcepool plugin!"}));

console.debug(JSON.stringify({
availableModels: global.modelUtils || "No models available.",
serverDatabaseDirectory: global.databasePath || "No server database path available.",
serverPluginsDirectory: global.serverPlugins || "No server plugins path available."
}, null, 4));

console.log(cowsay.say({text:"Hello, I'm a cow!"}));
console.log(`Sourcepool plugin ${scopedPackageJson.name} completed.`)

console.log(`Sourcepool plugin ${scopedPackageJson.name} completed loading.`)
}

/**
Expand All @@ -27,7 +21,11 @@ async function pluginCode(){
* in the plugin's download!
*/
async function startPlugin(){
pluginCode();
console.log(`Sourcepool plugin ${scopedPackageJson.name} starting.`);

await pluginCode();


}


Expand Down

0 comments on commit 09aa626

Please sign in to comment.