Skip to content

Sourcery Starbot ⭐ refactored ajq2679/saltbot#1

Open
SourceryAI wants to merge 1 commit intoajq2679:mainfrom
SourceryAI:main
Open

Sourcery Starbot ⭐ refactored ajq2679/saltbot#1
SourceryAI wants to merge 1 commit intoajq2679:mainfrom
SourceryAI:main

Conversation

@SourceryAI
Copy link
Copy Markdown

Thanks for starring sourcery-ai/sourcery ✨ 🌟 ✨

Here's your pull request refactoring your most popular Python repo.

If you want Sourcery to refactor all your Python repos and incoming pull requests install our bot.

Review changes via command line

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

git fetch https://github.com/sourcery-ai-bot/saltbot main
git merge --ff-only FETCH_HEAD
git reset HEAD^

Comment thread saltbot.py
Comment on lines -26 to +32
if len(nickname) == 0:
if not nickname:
await ctx.channel.send("um what do you want me to change your name to again?")
return
# TODO: Implement error checking for permissions and send to channel if perms are insufficient
# Force everyone to be a Boi
separator = " "
newName = separator.join(nickname)
newName += " Boi"
newName = f"{separator.join(nickname)} Boi"
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Function nickname refactored with the following changes:

Comment thread saltbot.py
Comment on lines -44 to +43
await ctx.channel.send("pongus bongus, latency was " + str(saltBot.latency) + "ms")
await ctx.channel.send(f"pongus bongus, latency was {str(saltBot.latency)}ms")
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Function ping 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.

1 participant