skopa/events/messageCreate.js

13 lines
294 B
JavaScript
Raw Normal View History

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);
}
},
}