forked from nypi/learnit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
53 changed files
with
2,516 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.6/apache-maven-3.8.6-bin.zip | ||
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar | ||
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,35 @@ | ||
# Телеграм чат-бот 🤖 | ||
# Телеграм чат-бот (LearnItTesterBot) 🤖 | ||
|
||
*Автор - [Дронов Егор](https://github.com/dSofarts)* | ||
*Автор - **[Дронов Егор](https://github.com/dSofarts)*** | ||
|
||
Данный микросервис реализует работу телеграм чат-бота, который помогает в изучении английского | ||
языка. В данном чат-боте можно проходить тесты на знания слов. | ||
|
||
## Возможности | ||
Telegram бот [расположен по ссылке](https://t.me/LearnItTesterBot): | ||
|
||
Данный раздел еще не написан | ||
https://t.me/LearnItTesterBot | ||
|
||
## Руководство по запуску | ||
|
||
Данный раздел еще не написан | ||
Для запуска данного микросервиса Вам необходимо [скачать **.jar** файл](https://github.com/nypi/learnit/blob/main/chatbot/chatbot-0.0.1-SNAPSHOT.jar?raw=true) расположенный по адресу: | ||
|
||
https://github.com/nypi/learnit/blob/main/chatbot/chatbot-0.0.1-SNAPSHOT.jar | ||
|
||
После загрузки файла вам нужно открыть консоль на вашей OC (терминал), в которой вам нужно ввести: | ||
|
||
java -jar chatbot-0.0.1-SNAPSHOT.jar | ||
|
||
Или ссылку на файл, например: | ||
|
||
java -jar /Users/User/Downloads/chatbot-0.0.1-SNAPSHOT.jar | ||
|
||
## Возможности | ||
|
||
* На данный момент в чат-боте реализован один вариант тестов: **выбрать правильный перевод слова**. При этом реализована возможность для добавления новых тестов. | ||
* Вся статистика решеных тестов сохраняется в базе данных. Вопросы для тестов беруться от туда же. | ||
* На данный момент в базе данных 40 вопросов, которые могут легко дополняться. | ||
* Все реализованные команды чат-бота: | ||
|
||
/statistics - Моя статистика | ||
/quiz - Запустить тест | ||
/help - Помощь |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package ru.croc.chatbot.quizzes; | ||
|
||
public interface Question { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package ru.croc.chatbot.quizzes; | ||
|
||
import org.telegram.telegrambots.meta.exceptions.TelegramApiException; | ||
import ru.croc.chatbot.quizzes.translation.TranslationQuestion; | ||
|
||
public interface Quiz { | ||
void start(long chatId, TranslationQuestion translationQuestion) throws TelegramApiException; | ||
int getResult(); | ||
} |
Oops, something went wrong.