diff --git a/commands/deathnote.js b/commands/deathnote.js new file mode 100644 index 0000000..581ef25 --- /dev/null +++ b/commands/deathnote.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.)");} + + } +}; \ No newline at end of file diff --git a/commands/help.js b/commands/help.js index 5cda9db..2939d31 100644 --- a/commands/help.js +++ b/commands/help.js @@ -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]);} diff --git a/commands/logs.js b/commands/logs.js new file mode 100644 index 0000000..042fe2e --- /dev/null +++ b/commands/logs.js @@ -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 `") + .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 \``);} + const GuildSettings = require('../models/guild'); + + } +}; \ No newline at end of file diff --git a/commands/vip.js b/commands/vip.js index 3d7aa3a..55cc1a8 100644 --- a/commands/vip.js +++ b/commands/vip.js @@ -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 `") .addField("Notice", "This command is **developer-only**."), async execute(message, msg, args, cmd, prefix, mention, client) { diff --git a/models/log.js b/models/log.js new file mode 100644 index 0000000..7425e29 --- /dev/null +++ b/models/log.js @@ -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}, +}); \ No newline at end of file diff --git a/template.js b/template.js new file mode 100644 index 0000000..07ca6b2 --- /dev/null +++ b/template.js @@ -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}\``);} + } +}; \ No newline at end of file