mirror of
https://github.com/hyper-neptune/yuuki.git
synced 2024-11-15 19:04:37 +08:00
58 lines
No EOL
1.3 KiB
Python
58 lines
No EOL
1.3 KiB
Python
# -*- 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
|
|
|
|
Version: v6.5.0
|
|
|
|
Copyright(c) 2019 Star Inc. All Rights Reserved.
|
|
The software licensed under Mozilla Public License Version 2.0
|
|
"""
|
|
|
|
Admin = [""]
|
|
KickLimit = 10
|
|
CancelLimit = 10
|
|
Language = "en"
|
|
LINE_ACCESS_KEY = ""
|
|
GroupMebers_Demand = 100
|
|
helper_LINE_ACCESS_KEYs = []
|
|
|
|
########################Initializing##########################
|
|
from libs import *
|
|
|
|
Connection = Yuuki_Connection()
|
|
|
|
Connection.connectInfo = {
|
|
'Host': '',
|
|
'Command_Path': '',
|
|
'LongPoll_path': ''
|
|
}
|
|
|
|
Connection.connectHeader = {
|
|
'X-Line-Application': '',
|
|
'X-Line-Access': LINE_ACCESS_KEY,
|
|
'User-Agent': ''
|
|
}
|
|
|
|
Settings = Yuuki_Settings()
|
|
|
|
Settings.config = {
|
|
"Seq": 0,
|
|
"Admin": Admin,
|
|
"Hour_KickLimit": KickLimit,
|
|
"Hour_CancelLimit": CancelLimit,
|
|
"Default_Language": Language,
|
|
"GroupMebers_Demand": GroupMebers_Demand,
|
|
"helper_LINE_ACCESS_KEYs": helper_LINE_ACCESS_KEYs
|
|
}
|
|
|
|
Console = Yuuki(Settings, Connection)
|
|
Console.cleanMyGroupInvitations()
|
|
|
|
###########################Start!#############################
|
|
print("Star Yuuki BOT - Start Successful!")
|
|
|
|
if __name__ == "__main__":
|
|
Console.Main() |