Package-level declarations

Types

Link copied to clipboard
class ChannelRespondingOutputChannel(channel: <Error class: unknown class>) : OutputChannel

OutputChannel that responds in a Discord channel, updating a progress message as needed.

Link copied to clipboard
class ChatbotSessionEventListener(discordSessionService: DiscordSessionService, chatbot: Chatbot, asyncer: Asyncer, discordConfigProperties: DiscordConfigProperties)

Discord SessionEventListener that uses an Embabel Chatbot

Link copied to clipboard
class DelegatingDiscordUserInfo(val discordUser: <Error class: unknown class>, isDirectMessage: Boolean = false) : DiscordUserInfo
Link copied to clipboard
data class DiscordConfigProperties(val token: String? = null)
Link copied to clipboard

Adds all event listeners defined in the context to JDA builder and starts the bot if token is provided.

Link copied to clipboard
Link copied to clipboard

Service to manage Discord user sessions.

Link copied to clipboard
interface DiscordUser : User

Embabel User associated with a Discord user.

Link copied to clipboard
data class DiscordUserImpl(val id: String, val discordUser: DiscordUserInfo) : DiscordUser
Link copied to clipboard
interface DiscordUserInfo

Our own representation of a Discord user. An interface so that it a concrete class can be persisted with JPA, OGM etc.

Link copied to clipboard
data class DiscordUserSession(val user: DiscordUser, val isDirectMessage: Boolean, val channelId: String, val serverId: String? = null, val serverName: String? = null, val createdAt: LocalDateTime = LocalDateTime.now(), var lastActivity: LocalDateTime = LocalDateTime.now(), val sessionData: MutableMap<String, Any> = mutableMapOf())

Properties

Link copied to clipboard
const val TOKEN_KEY: String