13 lines
294 B
JavaScript
13 lines
294 B
JavaScript
|
const { Events } = require('discord.js');
|
||
|
const helpers = require('../helpers.js');
|
||
|
|
||
|
module.exports = {
|
||
|
name: Events.MessageCreate,
|
||
|
async execute(message) {
|
||
|
if (message.author.bot) return;
|
||
|
if (Math.floor(Math.random() * 11) == 10) {
|
||
|
helpers.addBalance(message.author.id, 1);
|
||
|
}
|
||
|
},
|
||
|
}
|