Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard20181 committed Aug 4, 2023
1 parent bbb5304 commit 231fa3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@ suspend fun main(vararg args: String) {
for (i in 1..passwordLength-1) {
start *= 10;
}
val password = Random.nextLong(start, (start * 10) - 1)
val password = Random.nextLong(start, (start * 10) - 1).toString()
val secret = "20221209"
val fakepassword = XXTEA.encrypt(password.toString(), secret)
val fakepassword = XXTEA.encrypt(password, secret)
val encodedPassword: String = Base64.getEncoder().encodeToString(fakepassword)
bot.sendMessage(it.from.id, model.problem.replace("[PASSWORD]", encodedPassword))
map[it.from.id] = JoinRequest(it.chat.id, password)
Expand Down

0 comments on commit 231fa3f

Please sign in to comment.