tubeshowcase●1,071,671 videos♡ My collection 0
← Learn to Code

Learn to Code37:26

Coding Challenge 118: Mastodon Fractal Tree Bot

The Coding Train ↗

From the creator

In part 1 of this coding challenge, I create a node.js Mastodon bot that posts images (fractal trees) generated with Processing code. In part 2, I revise the node.js Mastodon bot to post images (fractal trees) in response to user mentions. Code: https://thecodingtrain.com/challenges/118-mastodon-fractal-tree-bot 💻 Github Repo: https://github.com/CodingTrain/Mastodon-Bot Other Parts of this Challenge: 📺 https://youtu.be/PUPWPjjkNqQ 🎥 Previous: https://youtu.be/MlRlgbrAVOs?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH 🎥 Next: https://youtu.be/meGcdIoTYgw?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH 🎥 All: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH References: 🔗 Lowpoly Bot: https://twitter.com/lowpolybot 🔗 Node.js: https://nodejs.org/en 🔗 Mastodon: https://mastodon.social/about 🔗 Mastodon API on npm: https://www.npmjs.com/package/mastodon-api 🎥 https://youtu.be/sKSxBd56H70 🔗 The 'procesing-java' command: https://github.com/processing/processing/wiki/Command-Line Related Coding Challenges: 🚂 https://youtu.be/UNkHditYGls 🚂 https://youtu.be/0jjeOYMjmDU 🚂 https://youtu.be/fcdNSZ9IzJM 🚂 https://youtu.be/JcopTKXt8L8 Timestamps: 0:00 Introduction 0:52 Inspiration for the challenge 1:06 Generate a random fractal tree image with Processing 2:48 How can Node.js and Processing communicate? 3:50 Calling a Processing sketch from the command line 6:10 Using Node.js to execute the sketch 9:00 Async with promises 11:57 Reading stdout value 13:50 Use `mastodon-api` to P

Published 2018-10-16 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code