Skip to content

Commit

Permalink
chore: add comment and use fork
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyrxng committed Oct 4, 2024
1 parent 22aad79 commit 7db23d9
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/bot/helpers/grammy-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,22 @@ export function createContextConstructor({ logger, config }: Dependencies) {
this.logger = logger;
this.config = config;
const ctx = PluginContext.getInstance().getContext();

/**
* We'll need to add handling to detect forks and in such cases
* we'll need to handle the storage differently.
*
* Storing the repository full name would work, and we already have it
* during setup. Otherwise via plugin config.
*
* if (me.username !== "ubiquity_os_bot") { }
*/

/**
* We only operate as one organization on telegram, so I'm assuming
* that we'll be centralizing the storage obtained.
*/
this.adapters = createAdapters(ctx, "ubiquity-os");
this.adapters = createAdapters(ctx, "ubq-testing");
}
} as unknown as new (update: GrammyTelegramUpdate, api: Api, me: UserFromGetMe) => GrammyContext;
}

0 comments on commit 7db23d9

Please sign in to comment.