diff --git a/ConsoleLog/goosemodModule.json b/ConsoleLog/goosemodModule.json new file mode 100644 index 0000000..946d45f --- /dev/null +++ b/ConsoleLog/goosemodModule.json @@ -0,0 +1,11 @@ +{ + "main": "index.js", + + "name": "ConsoleLog", + "description": "Literally a useless module", + "tags": ["test"], + + "authors": ["465702500146610176"], + + "version": "1.0.0" +} diff --git a/ConsoleLog/index.js b/ConsoleLog/index.js new file mode 100644 index 0000000..d25e6ef --- /dev/null +++ b/ConsoleLog/index.js @@ -0,0 +1,14 @@ +import showToast from '@goosemod/toast'; + +export default { + goosemodHandlers: { + onImport: () => { + console.log('This is a log from ConsoleLog'); + showToast('This is a toast from ConsoleLog'); + }, + remove: () => { + console.log('ConsoleLog has been uninstalled'); + showToast('ConsoleLog has been uninstalled'); + }, + }, +};