mirror of
https://github.com/NovaGM/Modules.git
synced 2024-08-14 22:47:01 +00:00
Added ConsoleLog module
This commit is contained in:
parent
ed661b2ed5
commit
bfc88a928a
2 changed files with 25 additions and 0 deletions
11
ConsoleLog/goosemodModule.json
Normal file
11
ConsoleLog/goosemodModule.json
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"main": "index.js",
|
||||
|
||||
"name": "ConsoleLog",
|
||||
"description": "Literally a useless module",
|
||||
"tags": ["test"],
|
||||
|
||||
"authors": ["465702500146610176"],
|
||||
|
||||
"version": "1.0.0"
|
||||
}
|
14
ConsoleLog/index.js
Normal file
14
ConsoleLog/index.js
Normal file
|
@ -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');
|
||||
},
|
||||
},
|
||||
};
|
Loading…
Reference in a new issue