---
# System prepended metadata

title: How to define logic sequences easy AF

---

# How to define logic sequences easy AF

:::info 
Example on how to write **sequence** <i class="fa fa-arrow-down"></i>
:::
The great thing here is, that it's text based - you only focus on the logic.
*Graphviz* draws visualization of the sequence in realtime

---


```sequence
Seller->DiscordBot: Setup Bot via OAuth
Note left of DiscordBot: Add to server

Customer->Seller: Wants to ape in
Seller->Backend: Create some link
Note right of Seller: Create Order UUID
Backend->DiscordBot: 
```

---------


```sequence

Alice->Bob: Passive income ?
Note left of Bob: BoB Deploys his shill
Bob->Alice: Ezy! "STABLE" 20% APR!
Alice->Hopium: Alice FOMOd in
Note right of Alice: Ecosystem collapse
Hopium->Bob:[totalSupply==0]
Ecosystem -->Hopium: JUNO rescue fund??
Ecosystem-->Ecosystem: PLZ ./DUMPJUNO.js
Whales->Ecosystem: eZ, discount FTW
Note left of Whales:[ dumping bags ]
Note right of Hopium:[ price rekt ]
Hopium-->Alice: HAHA REKT! 
Alice->Cosmos: Alice mad, ranting on Twitter: *Juno scamcoin! No Value!*
Cosmos-->Hopium: HODL! $PEGDROP INCOMING ! 
Bob-->Cosmos: Bob creates snapshots for PEGDropDAO 
Bob->Alice: NO FUD!! $WAGE soon!
Note left of Bob: Uses DAODAO no-code candy
Note left of Hopium: $WAGE now 1337$
Cosmos->Alice: Madam - quit ur Job !
```

----

## OG code snippets immer archivieren via Code block

```sh!=1337
curl -q https://rpc.juno.pupmos.network/net_info \
| jq -cr '.result.peers[] | {moniker:.node_info.moniker, ip:.remote_ip}'
```


```flow
st=>start: Customer wants to get access to OG Discord Channels
condi=>condition: Yeye or Nah
pleb=>operation: Is the user a pleb?
op=>operation: My Operation
op2=>operation: lalala
cond=>condition: Yes or No?
e=>end: End

st->pleb->op->op2->cond
cond(yes)->e
cond(no)->op2
cond(yes)->e
cond(no)->op2


```
