Skip to content

eslachance/dithcord

Repository files navigation

 

 

Dithcord is a WORK IN PROGRESS library for Discord Bots. And by WIP I mean, it's fairly useless right now and is in heavy development. In other words, don't download it.

If you're wondering about the name, it's because Dithcord is built on Clojure, which is a lisp. Yes, I think it's a clever pun. No, I don't think it's ableist to joke about lisps. No more than the fact that the word itself is pronounced lithp if you have it.

Installation

Leiningen dependency information:

This is a placeholder. I'm not on clojars.

 [dithcord "0.0.8"]

Example

Ping/Pong example (pong doesn't work yet, yay)

(ns dtbot.core
  (:require [dithcord.core :as dithcord]))

(defn handle-message [session message]
  (if (= (message :content) "!ping")
    (dithcord/send-message session "pong!" (message :channel_id))))

(defn on-ready [session]
  (prn "Dithcord Tetht is ready to serve!"))

(def handlers {:MESSAGE_CREATE [handle-message]
               :READY          [on-ready]})

(def session (dithcord/connect
                 {:token "YOUR TOKEN HERE"
                  :handlers handlers
                  }))

Documentation

To be done

Credits

  • @Jagrosh#4824 : For coming up with the name "Dithcord".
  • @vaalha for this awesome new logo
  • My trusted allies on Discord for pushing me to succeed

About

A WIP Library for the Discord API, in Clojure

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published