Смешнявка и достижения

This commit is contained in:
JonnyBro 2022-07-03 21:47:48 +05:00
parent c0ecde0168
commit 8887554cc8
4 changed files with 5 additions and 3 deletions

BIN
assets/img/b.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

View file

@ -51,6 +51,7 @@ class Rep extends Command {
if (userData.achievements.rep.progress.now >= userData.achievements.rep.progress.total) {
userData.achievements.rep.achieved = true;
message.channel.send({
content: `${user}`,
files: [{
name: "achievement_unlocked6.png",
attachment: "./assets/img/achievements/achievement_unlocked6.png"

View file

@ -101,7 +101,7 @@ class Slots extends Command {
data.userData.achievements.slots.progress.now += 1;
if (data.userData.achievements.slots.progress.now === data.userData.achievements.slots.progress.total) {
data.userData.achievements.slots.achieved = true;
message.channel.send({
message.reply({
files: [{
name: "achievement_unlocked4.png",
attachment: "./assets/img/achievements/achievement_unlocked4.png"
@ -142,7 +142,7 @@ class Slots extends Command {
data.userData.achievements.slots.progress.now += 1;
if (data.userData.achievements.slots.progress.now === data.userData.achievements.slots.progress.total) {
data.userData.achievements.slots.achieved = true;
message.channel.send({
message.reply({
files: [{
name: "achievement_unlocked4.png",
attachment: "./assets/img/achievements/achievement_unlocked4.png"

View file

@ -9,6 +9,7 @@ module.exports = class {
async run(message) {
if (message.guild && message.guild.id === "568120814776614924") return;
if (message.content.includes("no bitches")) message.reply({ files: [{ name: "b.png", attachment: "./assets/img/b.png" }] });
const data = {};
@ -182,7 +183,7 @@ module.exports = class {
data.userData.achievements.firstCommand.achieved = true;
data.userData.markModified("achievements.firstCommand");
await data.userData.save();
await message.channel.send({
await message.reply({
files: [{
name: "achievement_unlocked2.png",
attachment: "./assets/img/achievements/achievement_unlocked2.png"