Began logs, deathnote; added command templates

master
Kit Kasune 4 years ago
parent dda37b7893
commit 564d80f203
  1. 22
      commands/deathnote.js
  2. 2
      commands/help.js
  3. 17
      commands/logs.js
  4. 2
      commands/vip.js
  5. 28
      models/log.js
  6. 26
      template.js

@ -0,0 +1,22 @@
const Discord = require('discord.js');
const deaths = [
"Watching too much anime", "Overdose of waifus", "Hypotakunemia", "Trying to self-isekai",
"Bass.", "Cranked the music just a little too loud", "Tried to swim in lava", "Unknown",
"Despacito"
]; // a list of preset death methods that can occur
module.exports = {
name: "deathnote",
aliases: ['dn'],
help: new Discord.MessageEmbed()
.setTitle("Help -> Death Note")
.setDescription("Congratulations! You've picked up a death note. Write someone's name in it, and see for yourself if it's the real deal...")
.addField("Syntax", "\`deathnote <@member> [method of death]\`"),
async execute(message, msg, args, cmd, prefix, mention, client) {
if (!args.length) {return message.channel.send(`Syntax: \`${prefix}deathnote <@member> [method of death]\``);}
if (args[0] == "kill" || args[0] == "k") {args.shift();} // if someone adds in 'kill' it'll remove it and act like it wasn't there, proceeding as normal.
if (!mention) {return message.reply("You have to write their name down in order to kill them! (In other words, please mention the user whose name you wish to write.)");}
}
};

@ -6,7 +6,7 @@ module.exports = {
help: 'you silly! What did you expect me to respond with?',
execute(message, msg, args, cmd, prefix, mention, client) {
if (!args.length) {
// !!! this is where the base help command goes, like n?help without specifying a command.
} else {
var command;
if (client.commands.has(args[0])) {command = client.commands.get(args[0]);}

@ -0,0 +1,17 @@
const Discord = require("discord.js");
module.exports = {
name: "logs",
aliases: ["log", "l", "modlog", "modlogs"],
help: new Discord.MessageEmbed()
.setTitle("Help -> Server Logs")
.setDescription("Comfigure your server's log settings.\n\nLogs will update you on what ")
.addField("Syntax", "`vip <add|remove|check>`")
.addField("Notice", "This command is **developer-only**."),
async execute(message, msg, args, cmd, prefix, mention, client) {
if (!message.guild) {return message.reply("This command is server-only!");}
if (!args.length) {return message.channel.send(`Syntax: \`${prefix}vip <add|remove|check>\``);}
const GuildSettings = require('../models/guild');
}
};

@ -5,7 +5,7 @@ module.exports = {
aliases: ["premium"],
help: new Discord.MessageEmbed()
.setTitle("Help -> VIP")
.setDescription("Toggle a server as VIP. This allows ")
.setDescription("Toggle a server as VIP. This grants a few small bonuses to your server that you can't get anywhere else!\n\nWant to become a VIP? Support the bot by [joining the support server](), donating to the bot's creators, or promoting/spreading the bot to other servers.")
.addField("Syntax", "`vip <add|remove|check>`")
.addField("Notice", "This command is **developer-only**."),
async execute(message, msg, args, cmd, prefix, mention, client) {

@ -0,0 +1,28 @@
const mongoose = require('mongoose');
const logSchema = new mongoose.Schema({
gid: {type: String, unique: true},
mdelete: {type: Boolean, default: true},
medit: {type: Boolean, default: true},
chnew: {type: Boolean, default: true},
chedit: {type: Boolean, default: true},
chdelete: {type: Boolean, default: true},
vcjoin: {type: Boolean, default: false},
vcleave: {type: Boolean, default: false},
servervcmute: {type: Boolean, default: true},
servervcdeafen: {type: Boolean, default: true},
kick: {type: Boolean, default: true},
ban: {type: Boolean, default: true},
mute: {type: Boolean, default: true},
warn: {type: Boolean, default: true},
giverole: {type: Boolean, default: true},
takerole: {type: Boolean, default: true},
addrole: {type: Boolean, default: true},
editrole: {type: Boolean, default: true},
deleterole: {type: Boolean, default: true},
serverjoin: {type: Boolean, default: false},
serverleave: {type: Boolean, default: false},
nickname: {type: Boolean, default: true},
username: {type: Boolean, default: false},
avatar: {type: Boolean, default: false},
});

@ -0,0 +1,26 @@
const Discord = require('discord.js');
module.exports = {
name: "",
aliases: [],
help: new Discord.MessageEmbed()
.setTitle("Help -> ")
.setDescription("")
.addField("Syntax", ""),
async execute(message, msg, args, cmd, prefix, mention, client) {
if (!args.length) {return message.channel.send(`Syntax: \`${prefix}\``);}
}
};
//OR
const Discord = require('discord.js');
module.exports = {
name: "",
aliases: [],
help: "",
async execute(message, msg, args, cmd, prefix, mention, client) {
if (!args.length) {return message.channel.send(`Syntax: \`${prefix}\``);}
}
};
Loading…
Cancel
Save