-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path__main__.py
42 lines (29 loc) · 1.1 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
# Copyright (c) 2019-2022 Dan <https://github.com/delivrance>
# Copyright (c) 2022 <https://github.com/amiralirj>
'''RUN THIS FILE |>----<| EDIT Config -> __init__.py'''
import os , sys
SCRIPT_DIR = str(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(-1,(SCRIPT_DIR))
#------------------------------------| This will make Chat saving folder
from os import makedirs #-|
makedirs('Chats',exist_ok=True) #-|
del makedirs #-|
#------------------------------------|
del os
del sys
print('\n\n\n')
print('\x1b[6;30;42m','Github : www.github.com/amiralirj ', '\x1b[0m')
print('telegram : @amiralirj_official \n\n')
from Classes.CliClass import Rjself
if __name__ == "__main__":
cli=Rjself()
with cli :
PEERID=(cli.get_me()).id
cli.start_robot(PEERID)
cli.create_log_channels()
cli.OP_IRAN() # start schedular tasks every minutes
print('Trying to connect ...')
cli.run() # start() , idle()
print('Im offline now , bye bye :) ')
# @amiralirj_official - https://www.github.com/amiralirj
# 2022 -