Hammertime!
-
Install Python 3.6 (or later)
-
Install OpenCV (and optionally imageio to support GIF):
pip3 install opencv-python imageio
-
Install Go
https://golang.org/doc/install
-
Install Slack API in Go
$ go get -u github.com/nlopes/slack $ go get -u github.com/spf13/viper
-
Build the bot
$ cd slack/src/faceswapbot $ go build
-
Create the
config.yml
fileslack: token: BOT-TOKEN filenames: /path/to/names.txt pyswapper: paths: executable: /path/to/face_replace/face_replace.py faces: /path/to/faces/*.png bodies: /path/to/bodies/*.png success: /path/to/success.png OR /path/to/success/*.png
-
Run the bot
/path/to/faceswapbot -config /path/to/config.yml