Package org.openredstone.chad

Types

Link copied to clipboard
data class AutomodConfig(enableBotAutomod: Boolean, automodChannelId: Long, regexes: List<String>)
Link copied to clipboard
data class ChadConfig(botToken: String, databaseFile: String, enableNotificationRoles: Boolean, notificationChannelId: Long, staffHelpChannelId: Long, removedContentChannelId: Long, welcomeChannelId: Long, gameChatChannelId: Long, statusChannelId: Long, serverId: Long, ingameBotRoleId: String, playingMessage: String, commandChar: Char, disableSpoilers: Boolean, notifications: List<NotificationRoleConfig>, fractalDeets: FractalConfig, authorizedDiscordRoles: List<String>, logging: LoggingConfig, botAutomod: AutomodConfig, greetings: List<String>, insults: List<String>)
Link copied to clipboard
object ChadSpec : ConfigSpec
Link copied to clipboard
data class FractalConfig(size: Int, maxIterations: Int, messiness: Int, zoom: Double)
Link copied to clipboard
data class HistoryItem(key: String, args: List<String>, response: String, time: Int, service: String, user: String)
Link copied to clipboard
data class LoggingConfig(defaultLevel: String, chadLevel: String, dateTimeFormat: String)
Link copied to clipboard
class NotificationManager(discordApi: DiscordApi, notificationChannelId: Long, notificationRoles: List<NotificationRoleConfig>)
Link copied to clipboard
data class NotificationRoleConfig(name: String, role: String, description: String)
Link copied to clipboard
class Sql(file: String, driver: String)
Link copied to clipboard
object SqlCommand : Table
Link copied to clipboard
object SqlHistory : Table

Functions

Link copied to clipboard
fun ServerTextChannel.deleteRecentMessagesByOthers()
Link copied to clipboard
fun main(args: Array<String>)

The main function.

Link copied to clipboard
fun startDiscordListeners(logger: KLogger, discordApi: DiscordApi, executor: CommandExecutor, disableSpoilers: Boolean, botAutomod: Boolean, automodChannelId: Long, automodRegexes: List<String>, welcomeChannel: Long, greetings: List<String>, ingameBotRole: String, gameChatChannelId: Long, sql: Sql, coroutineScope: CoroutineScope)
Link copied to clipboard
fun unixTime(): Int

Properties

Link copied to clipboard
val logger: KLogger

The global logger for Chad.

Link copied to clipboard
val ServerTextChannel.recentMessages: MessageSet
Link copied to clipboard
val spoilerLogger: KLogger