mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-08-07 21:01:14 +00:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
779604d21e | ||
|
83791fe59b |
@@ -1,3 +1,3 @@
|
|||||||
# maybe_chzzk_bot_kotlin
|
# maybe_chzzk_bot_kotlin
|
||||||
|
|
||||||
[discord](https://discord.gg/up8ANZegmy)
|
[](https://discord.gg/up8ANZegmy) [](https://teamcity.mori.space/project/NabotChzzkBot)
|
@@ -118,7 +118,6 @@ fun getFollowDate(chatID: String, userId: String) : IData<IFollowContent> {
|
|||||||
try {
|
try {
|
||||||
if(!response.isSuccessful) throw IOException("Unexpected code ${response.code}")
|
if(!response.isSuccessful) throw IOException("Unexpected code ${response.code}")
|
||||||
val body = response.body?.string()
|
val body = response.body?.string()
|
||||||
println(body)
|
|
||||||
val follow = gson.fromJson(body, object: TypeToken<IData<IFollowContent>>() {})
|
val follow = gson.fromJson(body, object: TypeToken<IData<IFollowContent>>() {})
|
||||||
|
|
||||||
return follow
|
return follow
|
||||||
|
@@ -81,8 +81,6 @@ object CounterService {
|
|||||||
(DailyCounters.name eq name) and (DailyCounters.userId eq userId) and (DailyCounters.user eq user.id)
|
(DailyCounters.name eq name) and (DailyCounters.userId eq userId) and (DailyCounters.user eq user.id)
|
||||||
}.singleOrNull()
|
}.singleOrNull()
|
||||||
|
|
||||||
println("$counter")
|
|
||||||
|
|
||||||
if(counter == null) {
|
if(counter == null) {
|
||||||
val newCounter = DailyCounter.new {
|
val newCounter = DailyCounter.new {
|
||||||
this.name = name
|
this.name = name
|
||||||
|
Reference in New Issue
Block a user