Browse Source

fix Fortune accessToken parameter

Pablo Barrera Yaksic 2 months ago
parent
commit
ed9b09a0a3
1 changed files with 1 additions and 1 deletions
  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);
 }