-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ba216f
commit 6cffdf4
Showing
9 changed files
with
173 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
125 changes: 0 additions & 125 deletions
125
src/main/kotlin/org/kraftwerk28/spigot_tg_bridge/Bot.kt
This file was deleted.
Oops, something went wrong.
62 changes: 31 additions & 31 deletions
62
src/main/kotlin/org/kraftwerk28/spigot_tg_bridge/Constants.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,48 @@ | ||
package org.kraftwerk28.spigot_tg_bridge | ||
|
||
object Constants { | ||
val configFilename = "config.yml" | ||
const val configFilename = "config.yml" | ||
// Config field names | ||
object FIELDS { | ||
val BOT_TOKEN = "botToken" | ||
val BOT_USERNAME = "botUsername" | ||
val ALLOWED_CHATS = "chats" | ||
val LOG_FROM_MC_TO_TG = "logFromMCtoTG" | ||
val LOG_FROM_TG_TO_MC = "logFromTGtoMC" | ||
val SERVER_START_MSG = "serverStartMessage" | ||
val SERVER_STOP_MSG = "serverStopMessage" | ||
val LOG_JOIN_LEAVE = "logJoinLeave" | ||
val LOG_PLAYER_DEATH = "logPlayerDeath" | ||
val LOG_PLAYER_ASLEEP = "logPlayerAsleep" | ||
const val BOT_TOKEN = "botToken" | ||
const val BOT_USERNAME = "botUsername" | ||
const val ALLOWED_CHATS = "chats" | ||
const val LOG_FROM_MC_TO_TG = "logFromMCtoTG" | ||
const val LOG_FROM_TG_TO_MC = "logFromTGtoMC" | ||
const val SERVER_START_MSG = "serverStartMessage" | ||
const val SERVER_STOP_MSG = "serverStopMessage" | ||
const val LOG_JOIN_LEAVE = "logJoinLeave" | ||
const val LOG_PLAYER_DEATH = "logPlayerDeath" | ||
const val LOG_PLAYER_ASLEEP = "logPlayerAsleep" | ||
object STRINGS { | ||
val ONLINE = "strings.online" | ||
val OFFLINE = "strings.offline" | ||
val JOINED = "strings.joined" | ||
val LEFT = "strings.left" | ||
const val ONLINE = "strings.online" | ||
const val OFFLINE = "strings.offline" | ||
const val JOINED = "strings.joined" | ||
const val LEFT = "strings.left" | ||
} | ||
object COMMANDS { | ||
val TIME = "commands.time" | ||
val ONLINE = "commands.online" | ||
const val TIME = "commands.time" | ||
const val ONLINE = "commands.online" | ||
} | ||
} | ||
object DEFS { | ||
val logFromMCtoTG = false | ||
val logFromTGtoMC = false | ||
val logJoinLeave = false | ||
val logPlayerDeath = false | ||
val logPlayerAsleep = false | ||
const val logFromMCtoTG = false | ||
const val logFromTGtoMC = false | ||
const val logJoinLeave = false | ||
const val logPlayerDeath = false | ||
const val logPlayerAsleep = false | ||
object COMMANDS { | ||
val TIME = "/time" | ||
val ONLINE = "/online" | ||
const val TIME = "time" | ||
const val ONLINE = "online" | ||
} | ||
val playersOnline = "Online" | ||
val nobodyOnline = "Nobody online" | ||
val playerJoined = "joined" | ||
val playerLeft = "left" | ||
const val playersOnline = "Online" | ||
const val nobodyOnline = "Nobody online" | ||
const val playerJoined = "joined" | ||
const val playerLeft = "left" | ||
} | ||
object WARN { | ||
val noConfigWarning = "No config file found! Writing default config to config.yml." | ||
val noToken = "Bot token must be defined." | ||
val noUsername = "Bot username must be defined." | ||
const val noConfigWarning = "No config file found! Writing default config to config.yml." | ||
const val noToken = "Bot token must be defined." | ||
const val noUsername = "Bot username must be defined." | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.