Discord AffiliateBot is a small Python app to contribute to one's community.
It will read users messages and look for Amazon/Aliexpress links.
It will then send a message after the original one with the affiliate version of the links.
This allows Discords users to contribute to one's community by using these links.
(Required) - A Discord bot token : Follow instructions here to create your bot, get its token and connect it to your server
(Optional) - An Amazon affiliate tag
(Optional) - An Aliexpress affiliate tag
From Docker Hub :
docker pull hacffr/discord-affiliatebot
Or by building it locally, pull the git repository then run :
docker build -t discord-affiliatebot .
Run the application :
docker run --name discord-affiliatebot hacffr/discord-affiliatebot
You can use the following environment variables :
docker run --name discord-affiliatebot \
-e DISCORD_TOKEN="MY_TOKEN" \
-e AMAZON_TAG="MY_AMAZON_TAG" \
-e ALIEXPRESS_TAG="MY_ALIEXPRESS_TAG" \
-e COMMUNITY="My community" \
-e LANGUAGE="en_US:en" \
hacffr/discord-affiliatebot
You can also bind a .env file containing these variables to /app/.env :
docker run --name discord-affiliatebot \
-v sample.env:/app/.env \
hacffr/discord-affiliatebot
With environment variables :
version: "3"
services:
discord-affiliatebot:
container_name: discord-affiliatebot
image: hacffr/discord-affiliatebot
environment:
- DISCORD_TOKEN=MY_TOKEN
- AMAZON_TAG=MY_AMAZON_TAG
- ALIEXPRESS_TAG=MY_ALIEXPRESS_TAG
- COMMUNITY=My community
- LANGUAGE=en_US:en
With a .env file containing these variables bound to /app/.env :
version: "3"
services:
discord-affiliatebot:
container_name: discord-affiliatebot
image: hacffr/discord-affiliatebot
volumes:
- sample.env:/app/.env