- Have a Discord data dump copied to the root directory of this project. (Messages folder)
- Have run the dataset.py script to convert the JSON into a TXT which will be read by markovify.
- Have environment variables set for the Discord bot token and the target channel ID.
MARKOVBOT_TOKEN: The token for your Discord bot.MARKOVBOT_CHANNEL_ID: The ID of the Discord channel where the bot will post messages.
curl -LsSf https://astral.sh/uv/install.sh | shwget -qO- https://astral.sh/uv/install.sh | shwinget install --id=astral-sh.uv -eThis bypasses the execution policy. Be sure that you understand the risks associated with this command before running it.
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"uv syncuv run markovbot.pyKeep an eye on logs in case something goes wrong. Startup time may take up to 5 minutes, be patient and check the logs.
docker build -t markovbot .docker run -d --name markovbot -e MARKOVBOT_TOKEN=your_token_here -e MARKOVBOT_CHANNEL_ID=your_channel_id_here markovbotYou can read more about Markovify at Markovify - GitHub