Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
2cc3b87a35 | |||
fa67902c22 | |||
2032b97f7c |
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -180,7 +180,7 @@ checksum = "9ba43ea6f343b788c8764558649e08df62f86c6ef251fdaeb1ffd010a9ae50a2"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "bebot"
|
name = "bebot"
|
||||||
version = "0.2.0"
|
version = "0.2.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"chrono",
|
"chrono",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "bebot"
|
name = "bebot"
|
||||||
version = "0.2.0"
|
version = "0.2.1"
|
||||||
description = "Gitlab webhook bot that publishes events to Matrix"
|
description = "Gitlab webhook bot that publishes events to Matrix"
|
||||||
license = "GPL-3.0"
|
license = "GPL-3.0"
|
||||||
authors = [
|
authors = [
|
||||||
|
@ -162,7 +162,7 @@ async fn handle_list(
|
|||||||
for room in rooms {
|
for room in rooms {
|
||||||
for item in &items {
|
for item in &items {
|
||||||
let msg =
|
let msg =
|
||||||
RoomMessageEventContent::text_markdown(format!("\\[{}\\] [{}]({}]", list.name, item.title, item.link));
|
RoomMessageEventContent::text_markdown(format!("\\[{}\\] [{}]({})", list.name, item.title, item.link));
|
||||||
room.send(msg, None)
|
room.send(msg, None)
|
||||||
.await
|
.await
|
||||||
.with_context(|| format!("Failed to send message to room '{}'", room.room_id()))?;
|
.with_context(|| format!("Failed to send message to room '{}'", room.room_id()))?;
|
||||||
|
Reference in New Issue
Block a user