File tree Expand file tree Collapse file tree 7 files changed +37
-0
lines changed
src/main/kotlin/by/jprof/telegram/bot/leetcode
src/main/kotlin/by/jprof/telegram/bot/runners/lambda/config Expand file tree Collapse file tree 7 files changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ Official Telegram bot of Java Professionals BY community.
1111* Allows users to create polls with reply buttons (just like https://t.me/like[`@like`] bot)
1212* Converts some currencies to EUR and USD
1313* Posts scheduled messages from this repo's `posts` branch
14+ * Expand LeetCode links
1415
1516So, it just brings some fun and interactivity in our chat.
1617
Original file line number Diff line number Diff line change 1+ = LeetCode
2+
3+ This feature expands https://leetcode.com[LeetCode] links.
Original file line number Diff line number Diff line change 1+ plugins {
2+ kotlin(" jvm" )
3+ }
4+
5+ dependencies {
6+ api(project.projects.core)
7+ api(libs.tgbotapi.core)
8+ implementation(libs.tgbotapi.extensions.api)
9+ implementation(libs.log4j.api)
10+
11+ testImplementation(libs.junit.jupiter.api)
12+ testImplementation(libs.junit.jupiter.params)
13+ testImplementation(libs.mockk)
14+ testRuntimeOnly(libs.junit.jupiter.engine)
15+ testRuntimeOnly(libs.log4j.core)
16+ }
Original file line number Diff line number Diff line change 1+ package by.jprof.telegram.bot.leetcode
2+
3+ import by.jprof.telegram.bot.core.UpdateProcessor
4+ import dev.inmo.tgbotapi.types.update.abstracts.Update
5+
6+ class LeetCodeUpdateProcessor : UpdateProcessor {
7+ override suspend fun process (update : Update ) {
8+ }
9+ }
Original file line number Diff line number Diff line change @@ -21,4 +21,5 @@ dependencies {
2121 implementation(project.projects.pins.sfn)
2222 implementation(project.projects.currencies)
2323 implementation(project.projects.herald.processor)
24+ implementation(project.projects.leetcode)
2425}
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import by.jprof.telegram.bot.herald.processor.HeraldVoteUpdateProcessor
88import by.jprof.telegram.bot.jep.JEPUpdateProcessor
99import by.jprof.telegram.bot.jep.JsoupJEPSummary
1010import by.jprof.telegram.bot.kotlin.KotlinMentionsUpdateProcessor
11+ import by.jprof.telegram.bot.leetcode.LeetCodeUpdateProcessor
1112import by.jprof.telegram.bot.pins.PinCommandUpdateProcessor
1213import by.jprof.telegram.bot.pins.PinReplyUpdateProcessor
1314import by.jprof.telegram.bot.quizoji.QuizojiDoneCommandUpdateProcessor
@@ -130,4 +131,9 @@ val pipelineModule = module {
130131 bot = get(),
131132 )
132133 }
134+
135+ single<UpdateProcessor >(named(" LeetCodeUpdateProcessor" )) {
136+ LeetCodeUpdateProcessor (
137+ )
138+ }
133139}
Original file line number Diff line number Diff line change @@ -32,3 +32,4 @@ include(":runners:lambda")
3232include(" :currencies" )
3333include(" :herald" )
3434include(" :herald:processor" )
35+ include(" :leetcode" )
You can’t perform that action at this time.
0 commit comments