-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.py
52 lines (44 loc) · 1.63 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import time
import schedule
from bot.botFacebook import *
from bot.botTwitter import *
from bot.botPinterest import *
from bot.botTelegram import *
from bot.botReplyTwitter import *
from bot.postVideoTwiiter import *
from function_list import *
# Twitter
schedule.every(funtion('autoposting')[0]['set_time']).minutes.do(autoposting)
schedule.every(funtion('autoRetweetNonEleved')[0]['set_time']).minutes.do(autoRetweetNonEleved)
schedule.every(funtion('autoRepostNonEleved')[0]['set_time']).minutes.do(autoRepostNonEleved)
schedule.every(funtion('autopostingAkunBackUp')[0]['set_time']).minutes.do(autopostingAkunBackUp)
# schedule.every(funtion('autoRepostAkunAyah')[0]['set_time']).minutes.do(autoRepostAkunAyah)
schedule.every(funtion('autopostingTrendingTopik')[0]['set_time']).minutes.do(autopostingTrendingTopik)
# Twitter - post video
schedule.every(funtion('postingVideo')[0]['set_time']).minutes.do(postingVideo)
# Reply Twitter
# schedule.every(funtion('posting')[0]['set_time']).minutes.do(posting)
# Telegram
schedule.every(funtion('autoPostingTelegram')[0]['set_time']).minutes.do(autoPostingTelegram)
# Pinterest
schedule.every(funtion('autoPostingPinterest')[0]['set_time']).minutes.do(autoPostingPinterest)
# Facebook
schedule.every(funtion('autoPostingFacebook')[0]['set_time']).minutes.do(autoPostingFacebook)
bar = [
". ",
" . ",
" . ",
" . ",
" . ",
" .",
" . ",
" . ",
" . ",
" . ",
]
i = 0
while True:
print("The bot is running", bar[i % len(bar)], end="\r")
schedule.run_pending()
time.sleep(1)
i += 1