All Projects → JesseCorbett → Diskord

JesseCorbett / Diskord

Licence: other
[Mirror of GitLab] A Kotlin client for Discord with a light wrapper on the REST APIs and a simple to use DSL for basic bots.

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Diskord

DPP
C++ Discord API Bot Library - D++ is Lightweight and scalable for small and huge bots!
Stars: ✭ 560 (+283.56%)
Mutual labels:  discord-api, discord-api-wrapper
gencord
A simple, beginner-friendly, and easy-to-use library for interacting with the Discord API, with minimal syntax.
Stars: ✭ 20 (-86.3%)
Mutual labels:  discord-api, discord-api-wrapper
Disqord
An asynchronous Discord API wrapper for .NET.
Stars: ✭ 155 (+6.16%)
Mutual labels:  discord-api, discord-api-wrapper
hata
Async Discord API wrapper.
Stars: ✭ 156 (+6.85%)
Mutual labels:  discord-api, discord-api-wrapper
Clamor
The Python Discord API Framework
Stars: ✭ 14 (-90.41%)
Mutual labels:  discord-api, discord-api-wrapper
discljord
A Clojure wrapper library for the Discord API, with full API coverage (except voice, for now), and high scalability
Stars: ✭ 179 (+22.6%)
Mutual labels:  discord-api, discord-api-wrapper
MaSH
A minimalistic Discord API wrapper made in Posix Shell
Stars: ✭ 22 (-84.93%)
Mutual labels:  discord-api, discord-api-wrapper
slash-commands
slash commands handler to make your bot support slash commands.
Stars: ✭ 59 (-59.59%)
Mutual labels:  discord-api
Spacebot
An open-source, multipurpose, configurable discord bot that does it all (that's the plan, at least)
Stars: ✭ 41 (-71.92%)
Mutual labels:  discord-api
DiscordBot-Template
A bot template with command , event , button , selectmenus , slashcommands handler and error handlers. Made in Discord.JS V13
Stars: ✭ 131 (-10.27%)
Mutual labels:  discord-api
drone-discord
Drone plugin for sending message to Discord channel using Webhook
Stars: ✭ 34 (-76.71%)
Mutual labels:  discord-api
Hurricano
An amazing open-source Discord bot using MongoDB with many features such as a customizable prefix, a reaction menu, music, role requirement giveaways and much more!
Stars: ✭ 97 (-33.56%)
Mutual labels:  discord-api
SkyBot
SkyBot is an LGBT-friendly discord bot with music and mod commands written in JDA
Stars: ✭ 37 (-74.66%)
Mutual labels:  discord-api
discord-super-utils
A modern python module including many useful features that make discord bot programming extremely easy.
Stars: ✭ 106 (-27.4%)
Mutual labels:  discord-api
library
🐍 A Python library for Discord.
Stars: ✭ 648 (+343.84%)
Mutual labels:  discord-api
Discord.CPP
Discord.CPP is a C++ library for interaction with the Discord API.
Stars: ✭ 46 (-68.49%)
Mutual labels:  discord-api
Luki
[Deprecated] The official repository for Luki the Discord bot
Stars: ✭ 21 (-85.62%)
Mutual labels:  discord-api
Discord-Presser-Server-Nuker
Nuke Discord Bot in Js (Beta has arrived)
Stars: ✭ 253 (+73.29%)
Mutual labels:  discord-api
Karuma
Karuma is a Discord Bot including Nukes, Raids, Mass DM and other features. Only for educational purposes 🥱🚀
Stars: ✭ 132 (-9.59%)
Mutual labels:  discord-api
Discord-Music-Turret-Bot
A standalone Discord music bot, made with DSharpPlus, using Lavalink.
Stars: ✭ 14 (-90.41%)
Mutual labels:  discord-api

Diskord - A Kotlin Discord SDK

Maven Central Discord

A multiplatform Kotlin client for Discord bots with a simple and concise DSL supporting JVM and NodeJS

Built as a lean client using coroutines that gets the intricacies of rate limits, async, and data models out of your way in a clean and easy to use SDK

Documentation available here

Using Diskord? Drop by our discord server

How do I import this?

It is strongly recommended to use Gradle version 6 or higher

// Kotlin build.gradle.kts
repositories {
    mavenCentral()
}

dependencies {
    implementation("com.jessecorbett:diskord-bot:2.1.1")
    // or, if you only want the low level implementation
    implementation("com.jessecorbett:diskord-core:2.1.1")
}

Note: The diskord-bot artifact bundles org.slf4j:slf4j-simple to provide basic logging to STDOUT with no configuration. This can be excluded in favor of your own slf4 logger using gradle exclusion:

// Kotlin build.gradle.kts
configurations {
  implementation {
    exclude("org.slf4j", "slf4j-simple")
  }
}

The library is packaged into two artifacts.

diskord-core is the low level implementation of the Discord API. Read more

diskord-bot provides an easier to use API for common bot functions. Read more

How do I use this?

Dokka documentation

For an example project you can easily clone to get started, look at the diskord-starter repo.

There are also a collection of examples in the diskord-examples repo.

Simple Example

import com.jessecorbett.diskord.bot.*

suspend fun main() {
    bot(TOKEN) {
        events {
            onGuildMemberAdd {
                channel(WELCOME_CHANNEL_ID).sendMessage("Welcome to the server, ${it.user?.username}!")
            }
        }
      
        classicCommands {
            command("ping") {
                it.respond("pong")
            }
        }
    }
}

FAQ

  • Does this support voice chat?
    • No, voice chat is not supported at this time. If you need it I recommend checking out another SDK
  • Is this library done?
    • Diskord is actively maintained, but the Discord API is always changing and there may be some lag between an API change and Diskord getting updated
    • If you want to speed things along, PRs are welcome and tickets appreciated
  • Can I contact you to ask a question/contribute to the project/report a bug?
  • What if I'm hip and cool, and I want to use a newer more unstable exciting version?
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].