CASE STUDY

Giyu

Giyu listens to the orders collection and keeps one Discord message per order. Paid work goes to that client's paid channel. Pending and partial work stays in the pending channel. A graphics status channel gets the fuller card: item, notes, invoice, and the rupee split between amount, paid, and still due. When payment status changes, the old message is removed and a new one is posted in the right channel.

Giyu

01 / OVERVIEW

Giyu is an order board for a design studio, running inside Discord.

Each client has a paid channel, a pending channel, and a graphics status channel.

Firestore holds the order. Discord is the place the team actually watches.

02 / PROBLEM

Order updates lived in a database the design team did not keep open.

A paid order and a pending order belong in different rooms, and moving them by hand left duplicate posts.

Restarting a bot that posts on every read will announce the same order twice.

03 / SOLUTION

A live listener posts a message when an order appears, edits it when fields change, and deletes it when the order is removed.

Payment status picks the channel. Paid goes one place. Pending and partial stay together.

The message ids are written back onto the order, so a restart skips work that is already on Discord.

A banner is drawn for the client name on the order channels, and for the order number on the status card.

04 / FEATURES

  • Live Firestore listener for new, changed, and deleted orders
  • One Discord message per order, with the message ids saved on the document
  • Per client channels for paid, pending, and graphics status
  • Status card with item, type, notes, invoice, and the rupee split
  • Generated banner on the message
  • Channel move when payment status changes
  • Edit in place when the rest of the order changes
  • Restart guard so existing messages are not posted again

05 / TECH STACK

  • Node.js
  • Discord.js
  • Firebase

06 / The board

Paid orders and pending orders are short posts: order id, item, and the rupee split, with a banner of the client name.

The graphics status channel holds the longer card, including the description, the notes, and the invoice link.

07 / The move

When an order goes from pending to paid, Giyu deletes the pending message and posts a new one in the paid channel.

A note or a new amount changes the existing message instead of adding another.

08 / IMPACT

01

The team reads orders where they already work, instead of opening the database.

02

A payment update moves the post, so the pending channel does not keep a stale copy.

03

The short order line and the status card stay tied to the same Firestore document.

09 / LEARNINGS

  • 01

    Saving the message id next to the order is what makes edits and restarts safe.

  • 02

    Routing by payment status only works if each client document names its own channels.

  • 03

    A lock around rapid updates stops two events for the same order from posting twice.

NEXT PROJECT

Geeta Guide

View Case Studyarrow_forward