Skip to content

Commit

Permalink
chore: add defaults comment in PluginContext
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyrxng committed Oct 28, 2024
1 parent 10f5cba commit 8468ef1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/types/plugin-context-single.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ export class PluginContext {
public readonly inputs: PluginInputs,
public _env: Env
) {
// this will fallback to defaults if it's a telegram bot command
this._config = this.inputs.settings;
}

get env() {
return Value.Decode(envValidator.schema, Value.Default(envValidator.schema, this._env));
}

set env(env: Env) {
this._env = env;
}
Expand Down

0 comments on commit 8468ef1

Please sign in to comment.