SophieBot can be runned by 2 ways, so
- Installed git
- Installed docker and docker-tools
git clone https://github.com/MrYacha/SophieBot
- Go to SophieBot/data
- Rename bot_conf.json.example to bot_conf.json
- Open in text editor
- Set mongo_conn to "mongo-server"
- Set redis_conn to "redis-server"
- Set other configs
docker network create sophiebot-net
docker run -d --rm --name redis-server --network sophiebot-net redis:alpine
docker run -d --rm --name mongo-server --network sophiebot-net mongo:latest
docker run -d -v /home/yacha/SophieBot/data/:/opt/sophie_bot/data --network sophiebot-net sophie
- Installed git
- Installed Python3.6+
wget https://bootstrap.pypa.io/get-pip.py
python3 get-pip.py
git clone https://github.com/MrYacha/SophieBot
cd SophieBot
sudo pip3 install -r requirements.txt
for Ubuntu:
sudo apt install redis mongodb
for ArchLinux:
sudo pacman -S redis
sudo aur -S mongodb
- Go to SophieBot/data
- Rename bot_conf.json.example to bot_conf.json
- Open in text editor
- Set basic config
cd SophieBot
python3 -m sophie_bot