Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3365276
D13781.id45420.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
671 B
Referenced Files
None
Subscribers
None
D13781.id45420.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 26, 7:14 AM (21 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2583432
Default Alt Text
D13781.id45420.diff (671 B)
Attached To
Mode
D13781: [keyserver] add comm config for authoritative facaster bot boolean variable
Attached
Detach File
Event Timeline
Log In to Comment