Page MenuHomePhorge

D13781.1768829243.diff
No OneTemporary

Size
671 B
Referenced Files
None
Subscribers
None

D13781.1768829243.diff

diff --git a/keyserver/src/utils/farcaster-bot.js b/keyserver/src/utils/farcaster-bot.js
new file mode 100644
--- /dev/null
+++ b/keyserver/src/utils/farcaster-bot.js
@@ -0,0 +1,24 @@
+// @flow
+
+import { getCommConfig } from 'lib/utils/comm-config.js';
+
+export type FarcasterBotConfig = {
+ +authoritativeFarcasterBot: boolean,
+};
+
+async function getFarcasterBotConfig(): Promise<FarcasterBotConfig> {
+ const config = await getCommConfig<FarcasterBotConfig>({
+ folder: 'facts',
+ name: 'farcaster_bot',
+ });
+
+ if (config) {
+ return config;
+ }
+
+ return {
+ authoritativeFarcasterBot: false,
+ };
+}
+
+export { getFarcasterBotConfig };

File Metadata

Mime Type
text/plain
Expires
Mon, Jan 19, 1:27 PM (5 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5956251
Default Alt Text
D13781.1768829243.diff (671 B)

Event Timeline