Skip to content

Commit b087414

Browse files
committed
LeetCodeUpdateProcessor stub
1 parent 1167c97 commit b087414

File tree

7 files changed

+37
-0
lines changed

7 files changed

+37
-0
lines changed

README.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

1516
So, it just brings some fun and interactivity in our chat.
1617

leetcode/README.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
= LeetCode
2+
3+
This feature expands https://leetcode.com[LeetCode] links.

leetcode/build.gradle.kts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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+
}

runners/lambda/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
}

runners/lambda/src/main/kotlin/by/jprof/telegram/bot/runners/lambda/config/pipeline.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import by.jprof.telegram.bot.herald.processor.HeraldVoteUpdateProcessor
88
import by.jprof.telegram.bot.jep.JEPUpdateProcessor
99
import by.jprof.telegram.bot.jep.JsoupJEPSummary
1010
import by.jprof.telegram.bot.kotlin.KotlinMentionsUpdateProcessor
11+
import by.jprof.telegram.bot.leetcode.LeetCodeUpdateProcessor
1112
import by.jprof.telegram.bot.pins.PinCommandUpdateProcessor
1213
import by.jprof.telegram.bot.pins.PinReplyUpdateProcessor
1314
import 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
}

settings.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ include(":runners:lambda")
3232
include(":currencies")
3333
include(":herald")
3434
include(":herald:processor")
35+
include(":leetcode")

0 commit comments

Comments
 (0)