Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.
/ mse Public archive

A discord bot with the Javacord library.

License

Notifications You must be signed in to change notification settings

kszi2/mse

Repository files navigation

MSE

GitHub Workflow Status (with event) GitHub release (with filter) GitHub

A kinda reasonable discord bot with unique features, written in kotlin

Note: this project heavily uses the Javacord library.

Repo stats

Progress Code
GitHub issues GitHub commit activity (branch)
GitHub pull requests GitHub top language
GitHub contributors GitHub code size in bytes

Example usage

fun main() {
    bot("Your bot token") {
        // Now you'll have a reference for the Discord Api gateway
        println(createBotInvite().toString())

        // Add a listener which answers with "Pong!" if someone writes "!ping"
        addMessageCreateListener { event ->
            if (event.getMessageContent().equalsIgnoreCase("!ping")) {
                event.getChannel().sendMessage("Pong!")
            }
        }
    }
}