Beispiel #1
0
def setup_default_app(args, loop):
    def signal_handler():
        loop.stop()
        sys.exit(0)

    loop.add_signal_handler(SIGINT, signal_handler)
    setup_logging(args.system_id)
    logging.getLogger("pogoservice").setLevel(logging.DEBUG)
    log = logging.getLogger(__name__)
    log.setLevel(logging.DEBUG)
    args.player_locale = {'country': 'DE', 'language': 'de', 'timezone': 'Europe/Berlin'}
    args.status_name = args.system_id
    setup_proxies(args)
    set_account_db_args(args, loop)
    set_gymdb_args(args)

    if "overflow_hash_key" in args and args.overflow_hash_key:
        set_goman_hash_endpoint(args.overflow_hash_key)
    install_thread_excepthook()
Beispiel #2
0
                             phase)
        if sm.reached_limits():
            break

    if args.final_system_id:
        await db_set_system_id(worker.name(), args.final_system_id)
        worker.log.info(u"Transferred account {} to system-id {}".format(
            worker.name(), args.final_system_id))

    worker.log.info(
        u"Reached end of route with {} spins, going to rest".format(
            str(len(sm.spun_stops))))


async def startup():
    await account_manager.initialize(args.accountcsv, ())
    forced_update = create_forced_update_check(args)
    nthreads = int(args.thread_count)
    log = logging.getLogger(__name__)
    log.info(u"Bot using {} threads".format(str(nthreads)))
    for i in range(nthreads):
        asyncio.ensure_future(safe_levelup(forced_update))
        if args.proxy and i % len(args.proxy) == 0:
            await asyncio.sleep(10)


set_account_db_args(args, loop)
#loop.run_until_complete(startup())
asyncio.ensure_future(startup())
loop.run_forever()
Beispiel #3
0
from getmapobjects import inrange_pokstops, catchable_pokemon, \
    inventory_discardable_pokemon, inrange_gyms
from gymdbsql import set_gymdb_args
from scannerutil import install_thread_excepthook, setup_logging
from workers import wrap_account_no_replace

setup_logging()
log = logging.getLogger(__name__)

parser = std_config("gymscanner")
add_system_id(parser)
add_use_account_db(parser)
args = parser.parse_args()
setup_proxies(args)
set_gymdb_args(args)
set_account_db_args(args)

install_thread_excepthook()

args.player_locale = {
    'country': 'NO',
    'language': 'no',
    'timezone': 'Europe/Oslo'
}
'''
g0g3m3sh89896:&PB&nQ3YH used 31. oc
g0g3m3sh89912:SaH7QKq@C used 9 nov
g0g3m3sh89863:kt#9r&MnG used 20 nov
g0g3m3sh89910:T!2YAMu2k 27 nov
g0g3m3sh89905:uYRST9@Bg
g0g3m3sh89919:MKG#6s!E3