-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
Conversation
список каналов вывел дикшинэрис и оттуда импортирую в index файле.
при команде ?profile выдает профиль юзера.
…t_to_another_file # Conflicts: # src/repositories/ratingHistoryRepository.ts
…профиль. также когда нельзя было вызвать свои профиль.
# Conflicts: # src/chat/public/index.ts # src/index.ts
src/index.ts
Outdated
link_preview_options: {is_disabled: true}, | ||
}); | ||
}); | ||
bot.command("map", (ctx: Context) => { |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Эта функция должна быть в mapHandler
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
И называться mapHandler
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bot.command("map", mapHandler);
There was a problem hiding this comment.
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()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Зачем этот свич, если у нас всё прописано в messageFunctionMap?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
потому кто :)
No description provided.