Procházet zdrojové kódy

fix Fortune accessToken parameter

Pablo Barrera Yaksic před 2 měsíci
rodič
revize
ed9b09a0a3
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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);
 }