Skip to content

Sourcery refactored main branch#1

Open
sourcery-ai[bot] wants to merge 1 commit intomainfrom
sourcery/main
Open

Sourcery refactored main branch#1
sourcery-ai[bot] wants to merge 1 commit intomainfrom
sourcery/main

Conversation

@sourcery-ai
Copy link

@sourcery-ai sourcery-ai bot commented Oct 16, 2023

Branch main refactored by Sourcery.

If you're happy with these changes, merge this Pull Request using the Squash and merge strategy.

See our documentation here.

Run Sourcery locally

Reduce the feedback loop during development by using the Sourcery editor plugin:

Review changes via command line

To manually merge these changes, make sure you're on the main branch, then run:

git fetch origin sourcery/main
git merge --ff-only FETCH_HEAD
git reset HEAD^

Help us improve this pull request!

@sourcery-ai sourcery-ai bot requested a review from StarkGang October 16, 2023 14:37
Comment on lines 123 to 124
return f"Telegram Android 8.{str(random.randint(5, 6))}." + str(
random.randint(3, 6)
) No newline at end of file
return f"Telegram Android 8.{random.randint(5, 6)}.{random.randint(3, 6)}" No newline at end of file
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function gen_random_app_version refactored with the following changes:

async def add_user(c: Client, m: Message):
_m = await m.reply("Please Wait..")
if not m.from_user.id == OWNER_ID:
if m.from_user.id != OWNER_ID:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function add_user refactored with the following changes:

  • Simplify logical expression using De Morgan identities (de-morgan)

no_of_accounts = 0
_m = await m.reply("PROCESSING..")
if not m.from_user.id == OWNER_ID:
if m.from_user.id != OWNER_ID:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function st_ refactored with the following changes:

Comment on lines -137 to +139
if not msg.from_user.id == OWNER_ID:
if msg.from_user.id != OWNER_ID:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function stop_ refactored with the following changes:

  • Simplify logical expression using De Morgan identities (de-morgan)

proxy_usage[random_proxy['hostname']] = 1
while True:
if (range_) and (int(nacc) >= int(range_)) and (range_ > 0):
if range_ and int(nacc) >= range_ and range_ > 0:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function make_accounts refactored with the following changes:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants