瀏覽代碼

fix Fortune accessToken parameter

Pablo Barrera Yaksic 2 月之前
父節點
當前提交
ed9b09a0a3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/agents/fortune/index.ts

+ 1 - 1
src/agents/fortune/fortune.ts → src/agents/fortune/index.ts

@@ -88,7 +88,7 @@ export default class Fortune {
 }
 
 try {
-  new Fortune().suscribe();
+  new Fortune(config.DEVELOP ? config.MASTODON_TEST_ACCESS_TOKEN: config.MASTODON_KEY_FORTUNE).suscribe();
 } catch (error) {
   console.error(error);
 }