mimicbot-deploy 🤖

About

Mimicbot-deploy is an accompanying repository to the mimicbot cli. It is intended to be used for exclusively deploying the discord bot to a server.

Deploy

To deploy the bot to a server follow the steps below:

  1. Clone the repository git clone https://github.com/CakeCrusher/mimicbot-deploy.git.
  2. Install the dependencies pip install -r requirements.txt.
  3. In your mimicbot cli directory run the command python -m mimicbot_cli poduction_env.
  4. Navigate to the data path you configured in init (if you don't remember it you can run python -m mimicbot_cli config, then locate data_path). Copy the files inside the deploy directory into this (mimicbot-deploy) directory.
  5. Verify that the discord bot is running as intended. Run python mimic.py and message your mimicbot with @<YOUR_BOT_NAME> <ANY_TEXT_YOU_WANT_IT_TO_REPLY_TO>.

Heroku

  1. Create a heroku app.
  2. Add the environment variables listed in the .env file to your heroku app.
  3. Follow the directions in the deploy tab of your heroku app.
  4. After pushing to heroku wait a couple of minutes (~5min). Now navigate to the "Resources" tab of your heroku app, click the edit icon, and toggle on your worker dyno. image
  5. Your bot is now deployed and running!