Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor architecture #6

Open
wants to merge 34 commits into
base: main
Choose a base branch
from
Open

Conversation

abashidze-giorgi
Copy link
Collaborator

No description provided.

gfavaz added 18 commits April 23, 2024 10:29
список каналов вывел дикшинэрис и оттуда импортирую в index файле.
при команде ?profile выдает  профиль юзера.
…t_to_another_file

# Conflicts:
#	src/repositories/ratingHistoryRepository.ts
…профиль.

также когда нельзя было вызвать свои профиль.
# Conflicts:
#	src/chat/public/index.ts
#	src/index.ts
@abashidze-giorgi abashidze-giorgi self-assigned this Apr 30, 2024
src/index.ts Outdated
link_preview_options: {is_disabled: true},
});
});
bot.command("map", (ctx: Context) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Должно быть так: bot.command("map", replyMap)

link_preview_options: {is_disabled: true},
});
});
function replyMap(ctx: Context) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Эта функция должна быть в mapHandler

Copy link
Contributor

Choose a reason for hiding this comment

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

И называться mapHandler

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed

});
}

bot.command("map", replyMap);
Copy link
Contributor

Choose a reason for hiding this comment

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

bot.command("map", mapHandler);

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed


await messageFunctionMap[msg.toLowerCase().trim()](ctx);

switch (msg.toLowerCase().trim()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Зачем этот свич, если у нас всё прописано в messageFunctionMap?

Copy link
Contributor

Choose a reason for hiding this comment

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

Почему этот класс называется src/repositories/balanceRepository/balanceRepository.ts, а внутри код для recordRatingChange?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

потому кто :)

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