This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-06-13
Channels
- # babashka (7)
- # babashka-sci-dev (3)
- # beginners (29)
- # biff (16)
- # calva (2)
- # clojars (1)
- # clojure (50)
- # clojure-austin (5)
- # clojure-europe (29)
- # clojure-france (8)
- # clojure-nl (3)
- # clojure-uk (3)
- # clojured (10)
- # clojurescript (19)
- # code-reviews (3)
- # core-async (22)
- # cursive (5)
- # data-science (11)
- # datalevin (1)
- # datomic (10)
- # eastwood (4)
- # helix (4)
- # introduce-yourself (2)
- # jobs (1)
- # jobs-discuss (1)
- # joyride (6)
- # leiningen (4)
- # london-clojurians (2)
- # lsp (82)
- # malli (7)
- # meander (12)
- # minecraft (3)
- # nbb (14)
- # off-topic (52)
- # podcasts (3)
- # portal (3)
- # re-frame (32)
- # reagent (9)
- # releases (2)
- # shadow-cljs (95)
- # tools-deps (14)
ssh2 example: https://github.com/babashka/nbb/blob/main/examples/ssh2/example.cljs
I'm wondering whether neil dep add ...
should return an error if the library is not found on clojars / maven - rather than silently insert :mvn/version nil
in deps.edn.
I just ran neil dep add nextjournal/clerk
. No errors, but what :mvn/version nil
in deps.edn.
Another option is adding fallback - clojars -> maven -> git (similar to :latest-sha behavior). Running neil dep add nextjournal/clerk :latest-sha
caused the effect I wanted.
:thinking_face:
Realized that I meant to post this in #babashka. Well, now we have an even better channel!
yes, I think it should error or fall back. Perhaps we should create a neil channel Done: #babashka-neil
So nbb is kinda like lumo? Is there some big difference? Since Lumo is not maintained anymore it's nice to see a replacement
@jkr.sw It's similar in that they both target Node.js, but some main differences are: ⢠nbb is just an npm library which runs with the Node.js you already have installed, lumo required its own customized Node.js version for startup time reasons ⢠macros are more similar to Clojure JVM (can be defined in .cljs files without surprises) ⢠lumo is based on self-hosted ClojureScript compiler and in nbb clojure is evaluated using SCI (interpreter) which supports a large subset of Clojure, but not all of it ⢠nbb supports loading ES6 modules, lumo doesn't
Looking forward to the next cool thing you build with #nbb! Maybe a slackbot or a voice assistant? š
Cool. If you come across links for either of those, feel free to share as it would be fun to build those type of apps
I have a Discord bot on a private repo. Will think about how to contribute it back as an example. :thinking_face:
It's actually super trivial to post to Discord using a webhook.
(def discord-webhook-url (env-required "DISCORD_WEBHOOK"))
(defn send-discord-message [msg]
(let [content {:username "Friendly Bot"
:avatar_url "https://..../robot.jpg"
:content msg}]
(fetch discord-webhook-url
(clj->js {:method :POST
:headers {:content-type "application/json"}
:body (js/JSON.stringify (clj->js content))}))))