mirror of https://github.com/NovaGM/Modules.git
Added ConsoleLog module
This commit is contained in:
parent
ed661b2ed5
commit
bfc88a928a
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"main": "index.js",
|
||||||
|
|
||||||
|
"name": "ConsoleLog",
|
||||||
|
"description": "Literally a useless module",
|
||||||
|
"tags": ["test"],
|
||||||
|
|
||||||
|
"authors": ["465702500146610176"],
|
||||||
|
|
||||||
|
"version": "1.0.0"
|
||||||
|
}
|
|
@ -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 New Issue