things are done

master
Kit Kasune 4 years ago
parent 843f171008
commit 0019147407
  1. 6
      commands/dev/reload.js
  2. 2
      commands/leveling/stats.js
  3. 1
      commands/social/afk.js
  4. 1
      commands/social/dnd.js
  5. 2
      util/lxp/gainxp.js

@ -38,7 +38,7 @@ module.exports = {
if (command.aliases) {command.aliases.forEach(a => client.aliases.set(a, command.name));}
}
cmdspinner.stop(); cmdspinner.clear();
console.log(`${chalk.gray('[LOG]')} >> ${chalk.blue('Loaded all Commands')}`);
console.log(`${chalk.gray('[PROC]')} >> ${chalk.blue('Loaded all Commands')}`);
let eventspinner = ora(chalk.blue('Loading Events')).start();
let eventFilter = fs.readdirSync('./events/').filter(x => x.endsWith('.js'));
@ -50,7 +50,7 @@ module.exports = {
client.on(evtName, evt.bind(null, client));
}
eventspinner.stop(); eventspinner.clear();
console.log(`${chalk.gray('[LOG]')} >> ${chalk.blue('Loaded all Events')}`);
console.log(`${chalk.gray('[PROC]')} >> ${chalk.blue('Loaded all Events')}`);
let rspspinner = ora(chalk.blue('Loading Commands')).start();
let responses = fs.readdirSync('./responses').filter(file => file.endsWith('.js'));
@ -62,7 +62,7 @@ module.exports = {
client.responses.commands.set(response.name, response);
}
rspspinner.stop(); rspspinner.clear();
console.log(`${chalk.gray('[LOG]')} >> ${chalk.blue('Loaded all Responses')}`);
console.log(`${chalk.gray('[PROC]')} >> ${chalk.blue('Loaded all Responses')}`);
console.log(`\n${chalk.gray('[INFO]')} >> ${chalk.hex('ff4fd0')(`Client refresh successful`)}\n`);

@ -31,7 +31,7 @@ module.exports = {
.setTitle(`${u.displayName}${u.displayName.toLowerCase().endsWith('s') ? "'" : "'s"} Stats`)
.setDescription("Local leveling stats")
.addField("Level", xp.level, true)
.addField("XP", `**${xp.xp}** of **${Math.ceil(100 + (((xp.level / 3) ** 2) * 2))}** needed to level up`, true)
.addField("XP", `**${xp.xp}** of **${Math.ceil(100 + (((x / 2.85) ** 2.2) * 2.5))}** needed to level up`, true)
.setThumbnail(client.users.cache.get(u.id).avatarURL({size: 2048}))
.setColor("328ba8")
.setFooter("Luno")

@ -30,6 +30,7 @@ module.exports = {
if (!args.length) {return message.channel.send(`Syntax: \`${prefix}afk [clearMode] <reason>\``);}
let reason = args.join(" ");
if (reason.length > 150) {return message.reply("That status a bit long; keep it under 150 characters.");}
if (reason.match(/<@&\d+>|@everyone/gm)) {return message.reply("I won't ping any roles or @ everyone!");}
tu.statustype = 'afk';
tu.statusmsg = reason.trim();
tu.statussetat = new Date();

@ -28,6 +28,7 @@ module.exports = {
if (!args.length) {return message.channel.send(`Syntax: \`${prefix}afk [clearMode] <reason>\``);}
let reason = args.join(" ");
if (reason.length > 150) {return message.reply("That status a bit long; keep it under 150 characters.");}
if (reason.match(/<@&\d+>|@everyone/gm)) {return message.reply("I won't ping any roles or @ everyone!");}
tu.statustype = 'dnd';
tu.statusmsg = reason.trim();
tu.statussetat = new Date();

@ -6,7 +6,7 @@ module.exports = async (client, member, channel) => {
client.misc.cache.lxp.xp[channel.guild.id][member].xp += 10;
let x = client.misc.cache.lxp.xp[channel.guild.id][member].level;
let max = Math.ceil(100 + (((x / 3) ** 2) * 2));
let max = Math.ceil(100 + (((x / 2.85) ** 2.2) * 2.5));
if (client.misc.cache.lxp.xp[channel.guild.id][member].xp > max) {
client.misc.cache.lxp.xp[channel.guild.id][member].xp -= max;

Loading…
Cancel
Save