master #33
@ -50,7 +50,7 @@ class PyroClient(PyroClient):
|
|||||||
def __init__(self, scheduler: AsyncIOScheduler):
|
def __init__(self, scheduler: AsyncIOScheduler):
|
||||||
super().__init__(locales_root=Path("locale"), scheduler=scheduler)
|
super().__init__(locales_root=Path("locale"), scheduler=scheduler)
|
||||||
|
|
||||||
self.version: float = 0.2
|
self.version: float = 0.3
|
||||||
|
|
||||||
self.owner: int = self.config["bot"]["owner"]
|
self.owner: int = self.config["bot"]["owner"]
|
||||||
self.admins: List[int] = self.config["bot"]["admins"] + [
|
self.admins: List[int] = self.config["bot"]["admins"] + [
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
"api_id": 0,
|
"api_id": 0,
|
||||||
"api_hash": "",
|
"api_hash": "",
|
||||||
"bot_token": "",
|
"bot_token": "",
|
||||||
"max_concurrent_transmissions": 3,
|
"max_concurrent_transmissions": 1,
|
||||||
"scoped_commands": true
|
"scoped_commands": true
|
||||||
},
|
},
|
||||||
"database": {
|
"database": {
|
||||||
|
@ -27,13 +27,14 @@ parser.add_argument("--create-album", action="store_true")
|
|||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
unauthorized_client = Client(
|
if args.create_user or args.create_album:
|
||||||
base_url=sync.config_get("address", "posting", "api"),
|
unauthorized_client = Client(
|
||||||
timeout=5.0,
|
base_url=sync.config_get("address", "posting", "api"),
|
||||||
verify_ssl=True,
|
timeout=5.0,
|
||||||
raise_on_unexpected_status=True,
|
verify_ssl=True,
|
||||||
follow_redirects=False,
|
raise_on_unexpected_status=True,
|
||||||
)
|
follow_redirects=False,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
async def cli_create_user() -> None:
|
async def cli_create_user() -> None:
|
||||||
|
Reference in New Issue
Block a user