master
Kit Kasune 4 years ago
parent 99dadc5b34
commit 4b6e61f066
  1. 20
      commands/fun/spotify.js
  2. 25
      commands/misc/commands.js
  3. 2
      commands/misc/help.js
  4. 10250
      package-lock.json
  5. 11
      package.json
  6. 2
      responses/wubzy.js
  7. 1
      util/response/parseresponse.js

@ -0,0 +1,20 @@
const Discord = require('discord.js');
const spotify = require('swwrap');
module.exports = {
name: "",
aliases: [],
meta: {
category: '',
description: "",
syntax: '` <>`',
extra: null
},
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}\``);}
}
};

@ -0,0 +1,25 @@
const Discord = require('discord.js');
module.exports = {
name: "commands",
aliases: ['cmds', 'commandlist', 'cmdlist'],
meta: {
category: 'Misc',
description: "Shows a list of my commands",
syntax: '`commands`',
extra: null
},
help: "Shows a list of all my commands",
async execute(message, msg, args, cmd, prefix, mention, client) {
let categories = [];
Array.from(client.commands.values()).forEach(c => {console.log(c); if (!categories.includes(c.meta ? c.meta.category : 'Uncategorized')) {categories.push(c.meta ? c.meta.category : 'Uncategorized');}});
let ce = new Discord.MessageEmbed()
.setTitle("Commands")
.setDescription(`You can use \`${prefix}help\` on any command to get more help on it.`)
.setColor('dc134c')
.setFooter("Natsuki", client.user.avatarURL())
.setTimestamp();
categories.forEach(category => ce.addField(category, Array.from(client.commands.values()).filter(command => command.meta ? command.meta.category === category : category === "Uncategorized").map(cmd => `\`${cmd.name}\``).join(', ')));
return message.channel.send(ce);
}
};

@ -5,7 +5,7 @@ const ask = require('../../util/ask');
module.exports = {
name: "help",
aliases: ["h", "commands", "cmds"],
aliases: ["h", "commands"],
help: 'you silly! What did you expect me to respond with?',
async execute(message, msg, args, cmd, prefix, mention, client) {
if (!args.length) {

10250
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -5,28 +5,19 @@
"main": "bot.js",
"author": "NatsukiDev",
"dependencies": {
"@discordjs/opus": "^0.3.2",
"canvas": "^2.6.1",
"chalk": "^4.1.0",
"dblapi.js": "^2.4.1",
"discord.io": "https://github.com/woor/discord.io/tarball/gateway_v6",
"discord.js": "^12.2.0",
"ffmpeg-static": "^4.2.7",
"gblapi.js": "^2.0.5",
"heroku": "^7.2.0",
"lavaqueue": "^3.1.6",
"manyitems": "^1.0.2",
"moment": "^2.28.0",
"mongoose": "^5.10.3",
"node-fetch": "^2.6.1",
"ora": "^5.3.0",
"sequelize": "^5.22.3",
"sqlite3": "^4.2.0",
"swwrap": "^1.0.0",
"winston": "^3.3.3",
"ws": "^7.4.2",
"ytdl-core": "^3.2.2",
"ytdl-core-discord": "^1.2.1"
"ws": "^7.4.2"
},
"engines": {
"node": "12.14.1"

@ -5,7 +5,7 @@ const UserData = require('../models/user');
const ask = require('../util/ask');
module.exports = {
name: "decide",
name: "wubzy",
help: new Discord.MessageEmbed()
.setTitle("Help -> ")
.setDescription("")

@ -28,6 +28,7 @@ module.exports = async (message, client, args) => {
}
}
if (options.embed) {
if (options.text && options.text.length && (options.text.includes(`@everyone`) || options.text.includes('@here')) && !message.member.permissions.has("MENTION_EVERYONE")) {message.reply("You don't have permissions to mention everyone!"); return null;}
if (options.fieldnames && options.fieldnames.length > 10) {message.reply("You can't have more than 10 fields!"); return null;}
if (options.color && options.color.length && (![3, 6].includes(options.color.length))) {message.reply("Your color must be a hex value 3 or 6 digits long."); return null;}
if (options.title && options.title.length > 65) {message.reply("Your title should be less than 65 characters, please :)"); return null;}

Loading…
Cancel
Save