Package org.openredstone.chad.commands

Types

Link copied to clipboard
abstract class Command(privateReply: Boolean, notAuthorized: String, authorizedRoles: List<String>?)
Link copied to clipboard
class CommandExecutor(commandChar: Char, commands: Commands)
Link copied to clipboard
data class CommandResponse(privateReply: Boolean, reply: String, reactions: List<String>)

The response of a command.

Link copied to clipboard
typealias Commands = Map<String, Command>
Link copied to clipboard
data class Sender(username: String, roles: List<String>)

Information about the sender of a command.

Functions

Link copied to clipboard
fun deleteCommand(authorizedRoles: List<String>, discordApi: DiscordApi, chadConfig: ChadConfig): Command
Link copied to clipboard
fun fractal(seed: String, fractalConfig: FractalConfig): BufferedImage
Link copied to clipboard
fun fractalCommand(authorizedRoles: List<String>, chadConfig: ChadConfig): Command
Link copied to clipboard
fun helpCommand(commands: Commands): Command
Link copied to clipboard
fun historyCommand(authorizedRoles: List<String>, sql: Sql): Command
Link copied to clipboard
fun insultCommand(insults: List<String>): Command
Link copied to clipboard
fun issueCommand(authorizedRoles: List<String>, discordApi: DiscordApi, chadConfig: ChadConfig, discordServer: Server): Command
Link copied to clipboard
fun piklCommand(authorizedRoles: List<String>, discordServer: Server, discordApi: DiscordApi): Command
Link copied to clipboard
fun shortConvertCommand(old: Int, new: Int): Command
Link copied to clipboard
fun staticCommand(message: String): Command

A command that always returns the same reply.

Properties

Link copied to clipboard
val applyCommand: Command
Link copied to clipboard
val convertCommand: Command
Link copied to clipboard
val lmgtfy: Command
Link copied to clipboard
val pollCommand: Command
Link copied to clipboard
val rngCommand: Command
Link copied to clipboard
val rollCommand: Command
Link copied to clipboard
val uuidCommand: Command