λℵ
About
λℵ (pronounced
/'læm.də
'ɑlɛf/)
is an attempt at writing a
Discord
bot in 🐔 Scheme 4.
Status
At the moment, the program barely works, if at all.
- API implementation
- ❎ Websockets
- ❎ REST API
- ☑ Audit Log
- ☑ Channels
- ☑ Emoji
- ❎ Guild
- ☑ Invite
- ❎ User
- ☑ Voice
- ☑ Webhooks
- Design
- ❎ Interface
- ❎ Parsers and glue
- ❎ Event loop
Building & Running
After experimenting around with system
, Makefiles,
static linking, bundled shared libraries, and interpreted
scripts, I settled on include
ing everything in
main.scm
and compiling it to a single executable.
First, make sure you have the required eggs:
🥚 chicken-install -s http-client openssl uri-common medea
websockets args
🥚
(The latter two don't do much right now.)
To build the program, you simply need to
csc main.scm -o λℵ
and run
./λℵ -h
to see the help message, for instance.
However, you'll realise there's nothing in there other than an
ironically unhelpful message about calling --help
and --version
. This is because there isn't any
interface for any of the procedures in there so far (see the
status above). So, until I write a proper command line interface
you'll need to load main.scm
into csi
and call the procedures manually there. The imported modules
export all the necessary procedures anyway.