Skip to content

Add initial DiscordBot class and JDA dependencies#1

Open
TheKing-OfTime wants to merge 2 commits intomasterfrom
impl_of_DisocrdBot_Class
Open

Add initial DiscordBot class and JDA dependencies#1
TheKing-OfTime wants to merge 2 commits intomasterfrom
impl_of_DisocrdBot_Class

Conversation

@TheKing-OfTime
Copy link
Collaborator

Задача выполнена:
https://tracker.yandex.ru/DA-2

@TheKing-OfTime TheKing-OfTime requested a review from ruskotwo July 4, 2023 16:53
Copy link
Collaborator

@ruskotwo ruskotwo left a comment

Choose a reason for hiding this comment

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

Опять алкогольный кодстайл.

И я вижу, что ты не тестил. Где запускается бот?

В рамках текущей задачи, бот должен успешно ловить сообщение из лс и выводить его в консоль.

Ты уверен, что задача выполнена?

public static JDA bot;

public static void init() throws LoginException {

Copy link
Collaborator

Choose a reason for hiding this comment

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

Что это за отступ? Что отделяет этот отступ? Начало метода от начала метода?


@Override
public void onReady(@NotNull ReadyEvent event) {
Bukkit.getLogger().info("==Bot ready==");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Не самый лучший текст. Ты тестил? Ты вообще знаешь, куда будет идти эта запись в консоль?
Лучше просто "Discord bot ready"

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Как по мне нормально выглядит
image

@@ -0,0 +1,53 @@
package su.igc.discordauth;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Я не понимаю, ты вообще ни секунды не оглядываешь код, который ты публикуешь?
Сколько ты потратил на этот код? 14 секунд? Ты просто налепил как можно быстрее и закоммитил?

Тут должен быть отступ блять.

@TheKing-OfTime TheKing-OfTime requested a review from ruskotwo July 6, 2023 19:29
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.

2 participants