Skip to content
This repository has been archived by the owner on May 30, 2022. It is now read-only.

Commit

Permalink
Small update fix module
Browse files Browse the repository at this point in the history
  • Loading branch information
CatalizCS committed Jul 21, 2021
1 parent 621d22a commit c7fcf8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/events/joinNoti.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports.config = {
name: "joinNoti",
eventType: ["log:subscribe"],
version: "1.0.2",
version: "1.0.3",
credits: "Mirai Team",
description: "Thông báo bot hoặc người vào nhóm",
dependencies: {
Expand Down Expand Up @@ -34,8 +34,8 @@ module.exports.run = async function({ api, event, Users }) {
memLength.push(participantIDs.length - i++);

if (!global.data.allUserID.includes(id)) {
await Users.createData(senderID, { name: userName });
global.data.allUserID.push(senderID);
await Users.createData(id, { name: userName, data: {} });
global.data.allUserID.push(id);
logger(global.getText("handleCreateDatabase", "newUser", id), "[ DATABASE ]");
}
}
Expand Down

0 comments on commit c7fcf8a

Please sign in to comment.