aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYarmo Mackenbach <yarmo@yarmo.eu>2022-04-06 11:28:35 +0200
committerYarmo Mackenbach <yarmo@yarmo.eu>2022-04-06 11:28:35 +0200
commitacdef4225795e7f441bac318764482d7be18de1c (patch)
tree16bfc389ba3dabb96b2cc40db53213ad505a3bbc
parent7318c847659ed968a5dddd54cfe89024c22d5284 (diff)
Run prettier
-rw-r--r--README.md2
-rw-r--r--src/db.js2
-rw-r--r--src/index.js4
3 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index 070f340..588743e 100644
--- a/README.md
+++ b/README.md
@@ -2,4 +2,4 @@
A Matrix bot written in NodeJS that handles shared expenses.
-## Usage \ No newline at end of file
+## Usage
diff --git a/src/db.js b/src/db.js
index f1d41fc..f97e9f0 100644
--- a/src/db.js
+++ b/src/db.js
@@ -112,7 +112,7 @@ const getBalance = async (roomId) => {
let balance = {
userIds: [],
}
-
+
data.rooms[roomHash] ||= { events: [] }
data.rooms[roomHash].events.forEach((event) => {
diff --git a/src/index.js b/src/index.js
index 13296e0..04170aa 100644
--- a/src/index.js
+++ b/src/index.js
@@ -112,8 +112,8 @@ matrixClient.on('Room.timeline', async (event, room, toStartOfTimeline) => {
)
sendMessage(
room.roomId,
- "!l: list the last 4 actions",
- "<b>!l</b>: list the last 4 actions"
+ '!l: list the last 4 actions',
+ '<b>!l</b>: list the last 4 actions'
)
sendMessage(
room.roomId,