mirror of
https://github.com/SkyfallWasTaken/arcade-monitor.git
synced 2024-11-25 10:23:41 +00:00
Added title formatting
This commit is contained in:
parent
ded273b12c
commit
9f8cf78b53
1 changed files with 8 additions and 0 deletions
|
@ -106,6 +106,14 @@ pub fn format_deleted_item(item: &ShopItem) -> String {
|
||||||
|
|
||||||
pub fn get_slack_body(diffs: &Vec<String>) -> serde_json::Value {
|
pub fn get_slack_body(diffs: &Vec<String>) -> serde_json::Value {
|
||||||
let mut blocks_vec = vec![];
|
let mut blocks_vec = vec![];
|
||||||
|
blocks_vec.push(json!({
|
||||||
|
"type": "header",
|
||||||
|
"text": {
|
||||||
|
"type": "plain_text",
|
||||||
|
"text": "Changes detected in the shop",
|
||||||
|
"emoji": true
|
||||||
|
}
|
||||||
|
}));
|
||||||
for diff in diffs {
|
for diff in diffs {
|
||||||
blocks_vec.push(json!({
|
blocks_vec.push(json!({
|
||||||
"type": "section",
|
"type": "section",
|
||||||
|
|
Loading…
Reference in a new issue