generated from array-in-a-matrix/matrix-bot-template
hopefully fix undefined counts
This commit is contained in:
parent
358961d790
commit
56e32226e3
2
index.js
2
index.js
|
@ -33,7 +33,7 @@ const lbCommand = async (roomId, message) => {
|
|||
};
|
||||
|
||||
const countCommand = async (roomId, message) => {
|
||||
client.replyNotice(roomId, message, `You said linux ${data.count[message["sender"]]} times!`)
|
||||
client.replyNotice(roomId, message, `You said linux ${parseInt(data.count[message["sender"]])} times!`)
|
||||
};
|
||||
|
||||
const addCount = async (roomId, message) => {
|
||||
|
|
Loading…
Reference in a new issue