Skip to content

Discord bot for mathematics and symbolic computations

Notifications You must be signed in to change notification settings

FliiFe/cas-discord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.