title: How Do You Get a Discord Bot That Uses The Translation API And Requires a Powershell Command At Each Initiation onto a Server?
body: <p>I'm creating a Discord bot and I've decided to use the Google Translation API to make the bot translate text between different languages on request.</p>
  
  <p>However, at each initiation of the bot, I am required to run a Powershell command for the Discord bot to have the Translation feature enabled. Without, the command does not work.</p>
  
  <p>The command is as follows: <code>$env:GOOGLE_APPLICATION_CREDENTIALS="C:\Users\username\Downloads\[FILE_NAME].json"</code></p>
  
  <p>This points the bot to the Service Key for the Google Translate API Project.</p>
  
  <p>Full documentation here: <a href="https://cloud.google.com/translate/docs/quickstart-client-libraries#client-libraries-usage-nodejs" rel="nofollow noreferrer">Documentation</a></p>
  
  <p>This would work perfectly if I intended to only run it on my machine, but I want to run it 24/7 on a server, and I have Heroku already set up.</p>
  
  <p>How would I go about setting this up on a server, because at the moment, I have no clue.</p>
  
  <p>All help would be appreciated.</p>
  
  <p>Thank you.</p>