You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
335 B
21 lines
335 B
const { makeLogger } = demon.summon("utils/logger")
|
|
const log = makeLogger(console.log, "TestPlug")
|
|
|
|
function onStart() {
|
|
log("Started plugin (apparently)")
|
|
const str = "data pass test"
|
|
return {
|
|
str
|
|
}
|
|
}
|
|
|
|
function onStop(ctx) {
|
|
log("Stopped plugin (apparently)")
|
|
log(ctx.str)
|
|
return true
|
|
}
|
|
|
|
export default {
|
|
onStart,
|
|
onStop
|
|
} |