partnered server

master
Kit Kasune 3 years ago
parent a447128c0e
commit e5ee3fd28b
  1. 1
      bot.js
  2. 1
      commands/utility/apply.js
  3. 2
      events/guildMemberAdd.js
  4. 2
      events/guildMemberRemove.js
  5. 982
      package-lock.json
  6. 1
      package.json

@ -28,6 +28,7 @@ client.misc = {
}, },
loggers: {}, loggers: {},
neptune: '782727129414500374', neptune: '782727129414500374',
alt: '845060238910291968',
queue: {}, queue: {},
attemptedQueue: [] attemptedQueue: []
}; };

@ -16,6 +16,7 @@ module.exports = {
}, },
help: "Apply for a moderation position here!", help: "Apply for a moderation position here!",
async execute(message, msg, args, cmd, prefix, mention, client) { async execute(message, msg, args, cmd, prefix, mention, client) {
if ((message.guild && message.guild.id === client.misc.alt) || !client.guilds.cache.get(client.misc.neptune).members.cache.has(message.author.id)) {return message.channel.send("That command isn't available in this server *yet*");}
let ma = await ModApp.findOne({gid: client.misc.neptune}) || new ModApp({gid: client.misc.neptune}); let ma = await ModApp.findOne({gid: client.misc.neptune}) || new ModApp({gid: client.misc.neptune});
if (!ma.enabled && !message.author.id === '330547934951112705') {return message.channel.send("Moderation applications are not currently open at this time! We'll announce when we're looking for mods, so keep your eyes peeled!");} if (!ma.enabled && !message.author.id === '330547934951112705') {return message.channel.send("Moderation applications are not currently open at this time! We'll announce when we're looking for mods, so keep your eyes peeled!");}
if (ma.apps[message.author.id]) {return message.channel.send("Looks like you already have an application made! If you need it to be removed for some reason, contact WubzyGD.");}; if (ma.apps[message.author.id]) {return message.channel.send("Looks like you already have an application made! If you need it to be removed for some reason, contact WubzyGD.");};

@ -21,6 +21,8 @@ module.exports = async (client, member) => {
try {member.guild.channels.cache.get(tg.wch).send(await sendResponse(member, member.guild.channels.cache.get(tg.wch), 'xdlol', client, tr.responses.get(tr.bindings.get('welcome'))));} catch {} try {member.guild.channels.cache.get(tg.wch).send(await sendResponse(member, member.guild.channels.cache.get(tg.wch), 'xdlol', client, tr.responses.get(tr.bindings.get('welcome'))));} catch {}
} }
if (member.guild.id === client.misc.alt) {return;}
member.guild.channels.cache.get('857097085915496468').send(new Discord.MessageEmbed() member.guild.channels.cache.get('857097085915496468').send(new Discord.MessageEmbed()
.setAuthor(member.displayName, client.users.cache.get(member.id).avatarURL()) .setAuthor(member.displayName, client.users.cache.get(member.id).avatarURL())
.setTitle("New User's Account Age") .setTitle("New User's Account Age")

@ -17,6 +17,8 @@ module.exports = async (client, member) => {
try {member.guild.channels.cache.get(tg.lch).send(await sendResponse(member, member.guild.channels.cache.get(tg.lch), 'xdlol', client, tr.responses.get(tr.bindings.get('leave'))));} catch {} try {member.guild.channels.cache.get(tg.lch).send(await sendResponse(member, member.guild.channels.cache.get(tg.lch), 'xdlol', client, tr.responses.get(tr.bindings.get('leave'))));} catch {}
} }
if (member.guild.id === client.misc.alt) {return;}
let cm = await Mute.findOne({uid: member.id}); let cm = await Mute.findOne({uid: member.id});
if (cm) { if (cm) {
member.guild.members.ban(member.id) member.guild.members.ban(member.id)

982
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -7,7 +7,6 @@
"dependencies": { "dependencies": {
"@lavacord/discord.js": "^0.0.7", "@lavacord/discord.js": "^0.0.7",
"axios": "^0.21.1", "axios": "^0.21.1",
"canvas": "^2.6.1",
"chalk": "^4.1.0", "chalk": "^4.1.0",
"dblapi.js": "^2.4.1", "dblapi.js": "^2.4.1",
"discord.io": "https://github.com/woor/discord.io/tarball/gateway_v6", "discord.io": "https://github.com/woor/discord.io/tarball/gateway_v6",

Loading…
Cancel
Save