Explorar o código

fix Fortune accessToken parameter

Pablo Barrera Yaksic hai 2 meses
pai
achega
ed9b09a0a3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
 }