Skip to content

Commit

Permalink
Add print function for showing results
Browse files Browse the repository at this point in the history
  • Loading branch information
alidehkhodaei committed Oct 31, 2023
1 parent 571dee8 commit c0aa33a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/kotlin/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ fun main(args: Array<String>) {
val connection = DriverManager.getConnection(JDBC_URL, "root", "")
val databaseManager = DatabaseManager(connection)
val data = databaseManager.fetchRandomWordFromDatabase()
println(data)

// Call api
api.sendToChannel(data!!, token)
val response=api.sendToChannel(data!!, token)

println(response)
}

0 comments on commit c0aa33a

Please sign in to comment.