def __init__(self, settings: BotSettings, device_auths: DeviceAuths) -> None: self.device_auths = device_auths self.settings = settings self.fortnite_api = FortniteAPIAsync.APIClient() account_device_auths = self.device_auths.get_device_auth( email=settings.email) super().__init__( command_prefix='!', auth=fortnitepy.AdvancedAuth( email=self.settings.email, password=self.settings.password, prompt_authorization_code=True, delete_existing_device_auths=True, device_id=account_device_auths.device_id, account_id=account_device_auths.account_id, secret=account_device_auths.secret), status=self.settings.status, platform=fortnitepy.Platform(self.settings.platform), avatar=fortnitepy.Avatar(asset=self.settings.cid, background_colors=fortnitepy. KairosBackgroundColorPreset.PINK.value)) self.message = f'[PartyBot] [{datetime.datetime.now().strftime("%H:%M:%S")}] %s'
def __init__(self, settings: BotSettings, device_auths: DeviceAuths) -> None: self.device_auths = device_auths.get_device_auth() self.settings = settings self.fortnite_api = FortniteAPIAsync.APIClient() super().__init__(command_prefix='!', auth=fortnitepy.DeviceAuth( device_id=self.device_auths.device_id, account_id=self.device_auths.account_id, secret=self.device_auths.secret), status=self.settings.status, platform=fortnitepy.Platform(self.settings.platform))
with open(filename, 'w') as fp: json.dump(existing, fp) device_auth_details = get_device_auth_details().get(client.courriel, {}) bot = commands.Bot( command_prefix=client.prefix, auth=fortnitepy.AdvancedAuth( email=client.courriel, password=client.wordpass, prompt_authorization_code=True, delete_existing_device_auths=True, **device_auth_details ) ) fortnite_api_async = FortniteAPIAsync.APIClient() print(crayons.cyan('PY MAKER BY VAXS RSB YOUTUBE: https://www.youtube.com/channel/UCIK7oxSNPt8MCrphoL5MEPA')) print(crayons.cyan('IF YOU WONT TO SUPPORT ME USE CODE VAXS-RSB IN THE ITEM SHOP')) @bot.event() async def event_ready(): print('██████╗ ██╗ ██╗ ██████╗ ██████╗ ████████╗') print('██╔══██╗╚██╗ ██╔╝ ██╔══██╗██╔═══██╗╚══██╔══╝') print('██████╔╝ ╚████╔╝█████╗██████╔╝██║ ██║ ██║ ') print('██╔═══╝ ╚██╔╝ ╚════╝██╔══██╗██║ ██║ ██║ ') print('██║ ██║ ██████╔╝╚██████╔╝ ██║ ') print('╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ') print('----------------') print(crayons.green('[PY MAKER, LAUNCHER] BOT READY AS: ' + bot.user.display_name + ", " + bot.user.id)) print('----------------')