star_yuuki_bot/main.py

58 lines
1.4 KiB
Python
Raw Normal View History

2019-08-22 18:33:10 +08:00
# -*- coding: utf-8 -*-
"""
Star Yuuki Bot - Yuuki
~~~~~~~~~~~
This is a main program in SYB.
It`s belong to Star Yuuki(pYthon) Bot Project of Star Neptune Bot
2019-08-23 18:12:41 +08:00
2019-08-22 18:33:10 +08:00
Version: v6.5.0
2019-08-23 18:12:41 +08:00
2019-08-22 18:33:10 +08:00
Copyright(c) 2019 Star Inc. All Rights Reserved.
2019-08-23 18:12:41 +08:00
The software licensed under Mozilla Public License Version 2.0
2019-08-22 18:33:10 +08:00
"""
Admin = [""]
2019-08-24 22:19:26 +08:00
KickLimit = 10
2019-08-25 01:51:26 +08:00
CancelLimit = 10
2019-08-23 18:21:11 +08:00
Language = "en"
2019-08-22 18:33:10 +08:00
LINE_ACCESS_KEY = ""
2019-08-24 21:07:55 +08:00
GroupMebers_Demand = 100
2019-08-23 18:12:41 +08:00
helper_LINE_ACCESS_KEYs = []
2019-08-22 18:33:10 +08:00
########################Initializing##########################
2019-08-23 18:12:41 +08:00
from libs import *
2019-08-22 18:33:10 +08:00
Connection = Yuuki_Connection()
Connection.connectInfo = {
'Host': '',
'Command_Path': '',
'LongPoll_path': ''
}
Connection.connectHeader = {
'X-Line-Application': '',
'X-Line-Access': LINE_ACCESS_KEY,
'User-Agent': ''
}
2019-08-24 21:07:55 +08:00
Settings = Yuuki_Settings()
2019-08-25 08:47:47 +08:00
Settings.config["Seq"] = 0
Settings.config["Admin"] = Admin
Settings.config["SecurityService"] = True
Settings.config["Hour_KickLimit"] = KickLimit
Settings.config["Hour_CancelLimit"] = CancelLimit
2019-08-25 09:44:10 +08:00
Settings.config["Default_Language"] = Language
2019-08-25 08:47:47 +08:00
Settings.config["GroupMebers_Demand"] = GroupMebers_Demand
Settings.config["helper_LINE_ACCESS_KEYs"] = helper_LINE_ACCESS_KEYs
2019-08-24 21:07:55 +08:00
Console = Yuuki(Settings, Connection)
2019-08-22 18:33:10 +08:00
Console.cleanMyGroupInvitations()
###########################Start!#############################
print("Star Yuuki BOT - Start Successful!")
if __name__ == "__main__":
2019-08-24 15:23:10 +08:00
Console.Main()