Skip to content

Commit

Permalink
fix some
Browse files Browse the repository at this point in the history
  • Loading branch information
Nurutomo committed Jan 4, 2021
1 parent e08f8e7 commit b1412b4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,13 @@ conn.handler = async function (m) {
}

m.isCommand = true
m.exp += plugin.exp ? plugin.exp : 9
await plugin(m, { usedPrefix, args, command, conn: this }).catch(e => this.reply(m.chat, util.format(e), m))
break
}
}
} finally {
global.DATABASE.data.users[m.sender].exp += 9
global.DATABASE.data.users[m.sender].exp += m.exp
try {
require('./lib/print')(m, this)
} catch (e) {
Expand Down
1 change: 1 addition & 0 deletions plugins/leaderboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ handler.admin = false
handler.botAdmin = false

handler.fail = null
handler.exp = 0

module.exports = handler

1 change: 1 addition & 0 deletions plugins/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ handler.admin = false
handler.botAdmin = false

handler.fail = null
handler.exp = 0

module.exports = handler

0 comments on commit b1412b4

Please sign in to comment.