Skip to content
This repository was archived by the owner on Apr 27, 2022. It is now read-only.

Conversation

@loxygenK
Copy link
Contributor

@loxygenK loxygenK commented Jun 8, 2020

いろいろガバってコミット履歴ぐっちゃぐちゃなのでRequest Change投げてくれたらRebaseして投げ直します
し  ん  ど  い

@loxygenK loxygenK requested a review from isso0424 June 8, 2020 11:58
@loxygenK
Copy link
Contributor Author

loxygenK commented Jun 8, 2020

どうして同じコミットが2つあるんですか?

Copy link
Member

@isso0424 isso0424 left a comment

Choose a reason for hiding this comment

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

よくない

""".replace(" ", "")


async def delete_notify(message: discord.Message):
Copy link
Member

Choose a reason for hiding this comment

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

delete_notifynotify_message_deleteでよくね

HORIZONTAL_LINE = "------------------------------\n"


async def edit_notify(
Copy link
Member

Choose a reason for hiding this comment

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

deleteと同様にnotify_message_editで良いと思う

after_lines: List[str]
):
raw_diff = list(difflib.Differ().compare(before_lines, after_lines))
modified_diff = [x for x in raw_diff if x[:1] in "+-"]
Copy link
Member

Choose a reason for hiding this comment

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

"+-"["+", "-"]で良いと思う

Copy link
Member

Choose a reason for hiding this comment

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

てか+, -をkeyとするdictにすればstepが要らなくなります

```
{}
```
""".replace(" ", "")
Copy link
Member

Choose a reason for hiding this comment

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

このインデントいる...?


async def on_guild_role_create(self, role):
pass

Copy link
Member

Choose a reason for hiding this comment

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

け す な

message.author.display_name,
message.content
)
)
Copy link
Member

Choose a reason for hiding this comment

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

世界なぜ改行しない

HORIZONTAL_LINE if (i * 2) != len(modified_diff) - 2 else ""
)

return generated_diff_text.strip()
Copy link
Member

Choose a reason for hiding this comment

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

世界なぜk(ry

}

generated_diff_text = ""
for i in range(len(modified_diff) // 2):
Copy link
Member

Choose a reason for hiding this comment

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

これはlen(diff_dict["+"])すればマジックナンバーが要らなくなる

after_lines: List[str]
):
raw_diff = list(difflib.Differ().compare(before_lines, after_lines))
modified_diff = [x for x in raw_diff if x[:1] in "+-"]
Copy link
Member

Choose a reason for hiding this comment

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

この変数いらなくね

generated_diff_text += DIFF_PAIR_TEMPLATE.format(
diff_dict["-"][i],
diff_dict["+"][i],
HORIZONTAL_LINE if (i * 2) != len(modified_diff) - 2 else ""
Copy link
Member

Choose a reason for hiding this comment

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

ここmodified_diffdiff_dict["+"]にすればi * 2である意味が無いと思われ

Copy link
Member

@isso0424 isso0424 left a comment

Choose a reason for hiding this comment

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

(多分)問題ない

@loxygenK
Copy link
Contributor Author

loxygenK commented Jun 9, 2020

やったぜ。
これ僕がマージ処理してええんか?
(していいならsquashするつもり)

@loxygenK loxygenK merged commit 50654ae into approvers:newHaracho Jun 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants