[Chartjs]-ChartJS and DiscordJS implementation question

3👍

Based on Androz2091 comment:

I used ChartJS Canva Node to render to ChartJS graph as picture which will be used to create Discord.MessageAttachment object. Then I reply with a MessageEmbed to server.

The following gist should represent the previous workflow: ChartJs – DiscordJs – Node Canva

I used this code in my first discord bot and it’s working well, here the bot response look like:
A bit messy to see what's going on but my bot is still in progress ^^

A bit messy to see what’s going on but my bot is still in progress ^^

Hope this will be usefull in the future, feel free to ask for more informations.

Leave a comment