diff --git a/app.py b/app.py deleted file mode 100644 index 299f690..0000000 --- a/app.py +++ /dev/null @@ -1,33 +0,0 @@ -import os -import time - -from src import InstaBot - -bot = InstaBot( - login="myusername", - password="mypass", - like_per_day=1000, - comments_per_day=5, - tag_list=['food', 'weed', 'smoke', 'smoking', 'party', - 'health', 'food', 'fit', 'wasted', 'fml', 'drugs', 'drug'], - max_like_for_one_tag=50, - follow_per_day=300, - follow_time=24*60*60, - unfollow_per_day=280, - unfollow_break_min=15, - unfollow_break_max=30, - log_mod=0, - comment_list=[["sweet", "nice"], - ["..", "...", "!!", "👌", "💪"]], - unwanted_username_list=[ - 'second', 'stuff', 'art', 'project', 'love', 'life', 'food', 'blog', - 'free', 'keren', 'photo', 'graphy', 'indo', 'travel', 'art', 'shop', - 'store', 'sex', 'toko', 'jual', 'online', 'murah', 'jam', 'kaos', - 'case', 'baju', 'fashion', 'corp', 'tas', 'butik', 'grosir', 'karpet', - 'sosis', 'salon', 'skin', 'care', 'cloth', 'tech', 'rental', 'kamera', - 'beauty', 'express', 'kredit', 'collection', 'impor', 'preloved', - 'follow', 'follower', 'gain', '.id', '_id', 'bags' - ]) - -while True: - bot.new_auto_mod() \ No newline at end of file diff --git a/bot/app.py b/bot/app.py new file mode 100644 index 0000000..2d79acc --- /dev/null +++ b/bot/app.py @@ -0,0 +1,11 @@ +import os +import time +import json + +from src import InstaBot + +data = json.load(open('config.json')) +bot = InstaBot(**data) + +while True: + bot.new_auto_mod() \ No newline at end of file diff --git a/dockerfile b/bot/dockerfile similarity index 92% rename from dockerfile rename to bot/dockerfile index fcc83b8..a683096 100644 --- a/dockerfile +++ b/bot/dockerfile @@ -6,4 +6,6 @@ RUN apk add --no-cache git RUN git clone https://github.com/instabot-py/instabot.py.git . RUN pip install --no-cache-dir -r requirements.txt +COPY ./app.py . + CMD [ "python", "-u", "./app.py" ] \ No newline at end of file