Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ CRYPTO_NOTIFY_SATANG_API_SECRET=""
CRYPTO_NOTIFY_SATANG_API_USER_ID=""
CRYPTO_NOTIFY_TELEGRAM_BOT_TOKEN=""
CRYPTO_NOTIFY_TELEGRAM_CHAT_ID=""
CRYPTO_NOTIFY_LINE_NOTIFY_TOKEN=""
CRYPTO_NOTIFY_NOTIFY_CRON="0 0 */3 * * ? *" # optional
CRYPTO_NOTIFY_HEALTHCHECK_CRON="0 */1 * * * ? *" # optional
CRYPTO_NOTIFY_ETHERSCAN_API_KEY="" # optional
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# crypto-notify
Notify your current cryptocurrency balance from Satang Pro via Line Notify or Telegram. THB currency
Notify your current cryptocurrency balance from Satang Pro via Telegram. THB currency

## Supported Source

Expand Down
3 changes: 0 additions & 3 deletions src/main/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ satang {
apiSecret = ${?CRYPTO_NOTIFY_SATANG_API_SECRET}
userId = ${?CRYPTO_NOTIFY_SATANG_API_USER_ID}
}
line {
lineNotifyToken = ${?CRYPTO_NOTIFY_LINE_NOTIFY_TOKEN}
}
telegram {
botToken = ${?CRYPTO_NOTIFY_TELEGRAM_BOT_TOKEN}
chatId = ${?CRYPTO_NOTIFY_TELEGRAM_CHAT_ID}
Expand Down
10 changes: 0 additions & 10 deletions src/main/scala/commons/Configuration.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import scala.util.{Success, Try}

trait Configuration {
lazy val appConfig: AppConfig
lazy val lineConfig: Option[LineConfig]
lazy val telegramConfig: Option[TelegramConfig]
lazy val satangConfig: SatangConfig
lazy val akkaConfig: AkkaConfig
Expand All @@ -25,7 +24,6 @@ class ConfigurationImpl extends Configuration {
ConfigFactory.load("application.local").withFallback(baseConfig)
}
private val appSection = conf.getConfig("app")
private val lineSection = conf.getConfig("line")
private val satangSection = conf.getConfig("satang")
private val akkaSection = conf.getConfig("akka")
private val etherScanSection = conf.getConfig("etherScan")
Expand All @@ -40,14 +38,6 @@ class ConfigurationImpl extends Configuration {
appSection.getBoolean("useScheduler"),
appSection.getString("apiKey")
)
lazy val lineConfig: Option[LineConfig] = Try(
LineConfig(
lineSection.getString("lineNotifyToken")
)
) match {
case Success(v) => Some(v)
case _ => None
}
lazy val satangConfig: SatangConfig = SatangConfig(
satangSection.getString("apiKey"),
satangSection.getString("apiSecret"),
Expand Down
3 changes: 1 addition & 2 deletions src/main/scala/commons/Constant.scala
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ object Constant {
val terraUrl = "https://terra-classic-lcd.publicnode.com"
val twoPointOTerraUrl = "https://terra-lcd.publicnode.com"
val makerelUrl = "https://api.mackerelio.com"
val lineNotifyUrl = "https://notify-api.line.me/api/notify"
val telegramUrl = "https://api.telegram.org"
val blockStreamUrl = "https://blockstream.info/api"

Expand All @@ -23,5 +22,5 @@ object Constant {
case HmacSHA512, HmacSHA256

enum MessageProvider:
case Line, Telegram
case Telegram
}
3 changes: 0 additions & 3 deletions src/main/scala/models/configuration/LineConfig.scala

This file was deleted.

10 changes: 0 additions & 10 deletions src/main/scala/models/line/LineResponse.scala

This file was deleted.

38 changes: 0 additions & 38 deletions src/main/scala/services/notification/LineService.scala

This file was deleted.