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.
To deploy the bot to a server follow the steps below:
- Clone the repository
git clone https://github.com/CakeCrusher/mimicbot-deploy.git
. - Install the dependencies
pip install -r requirements.txt
. - In your mimicbot cli directory run the command
python -m mimicbot_cli poduction_env
. - Navigate to the data path you configured in init (if you don't remember it you can run
python -m mimicbot_cli config
, then locatedata_path
). Copy the files inside thedeploy
directory into this (mimicbot-deploy) directory. - 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>
.
- Create a heroku app.
- Add the environment variables listed in the
.env
file to your heroku app. - Follow the directions in the deploy tab of your heroku app.
- 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.
- Your bot is now deployed and running!