Tomi Chen

screenshot of scriscord

scriscord

May 2020 Source Live on the web

Web Discord Miscellaneous Archived

Scriscord is a Scratch 3.0 extension that added blocks to allow you to program a Discord bot using Scratch. It was a just-for-fun two day project done mainly as a joke, but it worked! Here’s a video demo as well as a live playground hosted on GitHub Pages.

I made this project after a one-off comment about writing a Discord bot in Scratch. I thought it would be interesting to actually try it, and knew it might be feasible. Scratch is open source and lets you create your own extensions and custom blocks in Javascript, so I made some blocks that interfaced with discord.js.

The main challenge was figuring out how the Scratch project worked and how all the pieces fit together, since there was a lack of documentation on adding custom extensions/blocks. I relied heavily on some other projects I found extending Scratch’s functionality, as well as some discussions on Scratch’s forums. Meshing Scratch’s code structure with discord.js was also not straightforward. Although it was a struggle, the feeling I got when the first message was sent successfully was unlike anything I ever felt. I learned a lot about reading through source code and figuring out how things work, which is an extremely useful skill.