Prechádzať zdrojové kódy

fix Fortune accessToken parameter

Pablo Barrera Yaksic 2 mesiacov pred
rodič
commit
ed9b09a0a3
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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);
 }