Skip to content

Latest commit

 

History

History
24 lines (13 loc) · 781 Bytes

README.md

File metadata and controls

24 lines (13 loc) · 781 Bytes

cas-discord

This bot aims to integrate the giac computer algebra system into Discord.

Commands

@giac <input>

This is the main command: it runs giac with the specified input and returns stdout.

This can also be invoked by using @CAS (or mention whatever user the bot is running as). When interacting with the bot in a DM channel, you can ommit the prefix.

Sample output

zeros(x^2-x-2,x) czeros(x^2+x+1) texpand(cos(a+b)) tlin(sin(x)^3)

How does it work ?

I created a docker image that takes giac input and spits out the output as base64-encoded png images. The bot then decodes these images and sends them.