Skip to content

Discord AffiliateBot: push affiliate links in your Discord chanels.

Notifications You must be signed in to change notification settings

hacf-fr/Discord-AffiliateBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting started

Introduction

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.

Prerequisites

(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

Installation

From Docker Hub :

docker pull hacffr/discord-affiliatebot

Or by building it locally, pull the git repository then run :

docker build -t discord-affiliatebot .

Quickstart

Run the application :

docker run --name discord-affiliatebot hacffr/discord-affiliatebot

Configuration

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

Docker-Compose

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

About

Discord AffiliateBot: push affiliate links in your Discord chanels.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published