Reverted back
parent
e6f9453b47
commit
79b65e43e5
@ -1,12 +0,0 @@
|
|||||||
module.exports = (client) => {
|
|
||||||
console.log(`${guild.name}\n${guild.memberCount} users\nOwner: ${guild.owner}`);
|
|
||||||
const channel = client.channels.get(statsChannel);
|
|
||||||
const addEmbed = {
|
|
||||||
color: 0x008000,
|
|
||||||
title: 'Someone added the bot! :D YAY',
|
|
||||||
description: `${guild.name}\n${guild.memberCount} users\nOwner: ${guild.owner}`,
|
|
||||||
timestamp: new Date(),
|
|
||||||
};
|
|
||||||
|
|
||||||
channel.send({ embed: addEmbed });
|
|
||||||
};
|
|
@ -1,12 +0,0 @@
|
|||||||
module.exports = (client) => {
|
|
||||||
console.log(`***BOT KICKED***\n${guild.name}\n${guild.memberCount} users\nOwner: ${guild.owner}\n***BOT KICKED***`);
|
|
||||||
const channel = client.channels.get(statsChannel);
|
|
||||||
const kickEmbed = {
|
|
||||||
color: 0xFF0000,
|
|
||||||
title: 'Someone removed the bot :(',
|
|
||||||
description: `${guild.name}\n${guild.memberCount} users\nOwner: ${guild.owner}`,
|
|
||||||
timestamp: new Date(),
|
|
||||||
};
|
|
||||||
|
|
||||||
channel.send({ embed: kickEmbed });
|
|
||||||
};
|
|
@ -1,15 +0,0 @@
|
|||||||
const responseObject = require("../reply.json");
|
|
||||||
const { Permissions } = require('discord.js');
|
|
||||||
const flags = [
|
|
||||||
'SEND_MESSAGES'
|
|
||||||
];
|
|
||||||
const permissions = new Permissions(flags);
|
|
||||||
|
|
||||||
module.exports = (client, message) => {
|
|
||||||
// Auto respond to messages
|
|
||||||
let message_content = message.content.toLowerCase();
|
|
||||||
if(responseObject[message_content]) {
|
|
||||||
message.channel.send(responseObject[message_content]);
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
@ -1,12 +0,0 @@
|
|||||||
module.exports = (client) => {
|
|
||||||
const { botID, statsChannel } = require('../config.json');
|
|
||||||
// Send stats to the console
|
|
||||||
console.log(`Logged in as ${client.user.tag}! (${client.user.id})`);
|
|
||||||
console.log(`Ready to serve in ${client.channels.size} channels on ${client.guilds.size} servers, for a total of ${client.users.size} users. ${client.readyAt}`);
|
|
||||||
// Send stats to the "stats" channel in the support server if its not the test bot
|
|
||||||
if (client.user.id == botID) {
|
|
||||||
const channel = client.channels.get(statsChannel);
|
|
||||||
channel.send(`Ready to serve in ${client.channels.size} channels on ${client.guilds.size} servers, for a total of ${client.users.size} users. ${client.readyAt}`);
|
|
||||||
}
|
|
||||||
client.user.setActivity('"haha help" or "@me help" for help');
|
|
||||||
}
|
|
Loading…
Reference in New Issue