From f04f6c842f39215ef81c95396874a17a84f20e47 Mon Sep 17 00:00:00 2001 From: mudkipscience Date: Mon, 20 Apr 2020 13:02:10 +1000 Subject: [PATCH] please stop stealing my code --- README.md | 2 +- commands/8ball.js | 2 ++ commands/emoji.js | 2 ++ commands/eval.js | 2 ++ commands/forceskip.js | 2 ++ commands/help.js | 2 ++ commands/invite.js | 2 ++ commands/level.js | 2 ++ commands/myprefix.js | 2 ++ commands/ping.js | 2 ++ commands/play.js | 2 ++ commands/prefix.js | 2 ++ commands/pride.js | 2 ++ commands/ship.js | 2 ++ commands/support.js | 2 ++ commands/volume.js | 2 ++ events/disconnect.js | 2 ++ events/error.js | 2 ++ events/guildCreate.js | 2 ++ events/guildDelete.js | 2 ++ events/message.js | 2 ++ events/ready.js | 2 ++ events/reconnecting.js | 2 ++ index.js | 13 ++++++++----- utils/_functions.js | 4 ++++ utils/botlists.js | 2 ++ utils/logger.js | 2 ++ utils/mongoose.js | 2 ++ utils/music.js | 2 ++ 29 files changed, 65 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4258f95..aaf00b8 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,6 @@ If you wish to use our code in your project, please credit us! We don't mind you ### License -Copyright (C) 2018-2020 **Emily J. / mudkipscience** +Copyright (C) 2018-2020 Emily J. / mudkipscience Copyrights licensed under the GNU AGPLv3 License, see the accompanying LICENSE file for details. \ No newline at end of file diff --git a/commands/8ball.js b/commands/8ball.js index 7ed2b35..467df90 100644 --- a/commands/8ball.js +++ b/commands/8ball.js @@ -1,3 +1,5 @@ +// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license. + exports.conf = { enabled: true, guildOnly: false, diff --git a/commands/emoji.js b/commands/emoji.js index 55306f3..7d861b2 100644 --- a/commands/emoji.js +++ b/commands/emoji.js @@ -1,3 +1,5 @@ +// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license. + exports.conf = { enabled: true, guildOnly: false, diff --git a/commands/eval.js b/commands/eval.js index 3fa78c5..768678c 100644 --- a/commands/eval.js +++ b/commands/eval.js @@ -1,3 +1,5 @@ +// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license. + /* eslint-disable no-eval */ exports.conf = { diff --git a/commands/forceskip.js b/commands/forceskip.js index 8c604b2..33e1715 100644 --- a/commands/forceskip.js +++ b/commands/forceskip.js @@ -1,3 +1,5 @@ +// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license. + exports.conf = { enabled: true, guildOnly: true, diff --git a/commands/help.js b/commands/help.js index 5bf42d1..efc11ac 100644 --- a/commands/help.js +++ b/commands/help.js @@ -1,3 +1,5 @@ +// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license. + exports.conf = { enabled: true, guildOnly: false, diff --git a/commands/invite.js b/commands/invite.js index 2d9b38f..fa11e74 100644 --- a/commands/invite.js +++ b/commands/invite.js @@ -1,3 +1,5 @@ +// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license. + exports.conf = { enabled: true, guildOnly: false, diff --git a/commands/level.js b/commands/level.js index 43135b3..6d19421 100644 --- a/commands/level.js +++ b/commands/level.js @@ -1,3 +1,5 @@ +// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license. + exports.conf = { enabled: true, guildOnly: false, diff --git a/commands/myprefix.js b/commands/myprefix.js index f54cc7b..7b8b390 100644 --- a/commands/myprefix.js +++ b/commands/myprefix.js @@ -1,3 +1,5 @@ +// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license. + exports.conf = { enabled: true, guildOnly: false, diff --git a/commands/ping.js b/commands/ping.js index e316e93..ee6967d 100644 --- a/commands/ping.js +++ b/commands/ping.js @@ -1,3 +1,5 @@ +// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license. + exports.conf = { enabled: true, guildOnly: false, diff --git a/commands/play.js b/commands/play.js index 0e640c3..56a6ba5 100644 --- a/commands/play.js +++ b/commands/play.js @@ -1,3 +1,5 @@ +// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license. + exports.conf = { enabled: true, guildOnly: true, diff --git a/commands/prefix.js b/commands/prefix.js index 10a1549..0c1da72 100644 --- a/commands/prefix.js +++ b/commands/prefix.js @@ -1,3 +1,5 @@ +// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license. + exports.conf = { enabled: true, guildOnly: false, diff --git a/commands/pride.js b/commands/pride.js index 0343596..9e05bfb 100644 --- a/commands/pride.js +++ b/commands/pride.js @@ -1,3 +1,5 @@ +// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license. + exports.conf = { enabled: true, guildOnly: false, diff --git a/commands/ship.js b/commands/ship.js index ee91729..0b35eaf 100644 --- a/commands/ship.js +++ b/commands/ship.js @@ -1,4 +1,6 @@ +// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license. + exports.conf = { enabled: true, guildOnly: false, diff --git a/commands/support.js b/commands/support.js index 57cb185..5db5378 100644 --- a/commands/support.js +++ b/commands/support.js @@ -1,3 +1,5 @@ +// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license. + exports.conf = { enabled: true, guildOnly: false, diff --git a/commands/volume.js b/commands/volume.js index d191d13..de93d23 100644 --- a/commands/volume.js +++ b/commands/volume.js @@ -1,3 +1,5 @@ +// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license. + exports.conf = { enabled: true, guildOnly: true, diff --git a/events/disconnect.js b/events/disconnect.js index 0e44cc0..2db41ac 100644 --- a/events/disconnect.js +++ b/events/disconnect.js @@ -1,3 +1,5 @@ +// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license. + module.exports = (client) => { client.logger.warn('Lost connection to Discord.') } diff --git a/events/error.js b/events/error.js index f1e3615..1ae89ce 100644 --- a/events/error.js +++ b/events/error.js @@ -1,3 +1,5 @@ +// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license. + module.exports = async (client, error) => { client.logger.error(JSON.stringify(error.stack)) } diff --git a/events/guildCreate.js b/events/guildCreate.js index 3eb2e46..71103f4 100644 --- a/events/guildCreate.js +++ b/events/guildCreate.js @@ -1,3 +1,5 @@ +// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license. + const Discord = require('discord.js') module.exports = async (client, guild) => { client.logger.info('Guild joined.') diff --git a/events/guildDelete.js b/events/guildDelete.js index 80bfa91..fa156fb 100644 --- a/events/guildDelete.js +++ b/events/guildDelete.js @@ -1,3 +1,5 @@ +// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license. + const Discord = require('discord.js') module.exports = async (client, guild) => { if (!guild.available) return diff --git a/events/message.js b/events/message.js index 8f225f9..261c0d8 100644 --- a/events/message.js +++ b/events/message.js @@ -1,3 +1,5 @@ +// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license. + module.exports = async (client, message) => { if (message.author.bot) return diff --git a/events/ready.js b/events/ready.js index 8ff65ac..3deb18e 100644 --- a/events/ready.js +++ b/events/ready.js @@ -1,3 +1,5 @@ +// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license. + const moment = require('moment') module.exports = (client) => { const timestamp = moment().format('YYYY-MM-DD HH:mm:ss') diff --git a/events/reconnecting.js b/events/reconnecting.js index 7178034..ef1f10a 100644 --- a/events/reconnecting.js +++ b/events/reconnecting.js @@ -1,3 +1,5 @@ +// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license. + module.exports = (client) => { client.logger.info('Reconnecting to Discord...') } diff --git a/index.js b/index.js index ec797e4..687ede4 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,8 @@ -// Woomy version 2 -// Copyright 2020 mudkipscience +/* Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license. + * You will find this message at the start of every file in woomy. Please + * keep in mind that I didn't do all the work, I just don't think the other + * developers would be comfortable providing their names :P + */ 'use strict' @@ -28,9 +31,9 @@ client.db = require('./utils/mongoose') client.logger = require('./utils/logger') require('./utils/_functions')(client) -if (typeof client.config.devmode !== 'undefined') { //Check if devmode is explicitly overridden - client.devmode = client.config.devmode; -} else { //Check if Woomy is running inside a Docker +if (typeof client.config.devmode !== 'undefined') { // Check if devmode is explicitly overridden + client.devmode = client.config.devmode +} else { // Check if Woomy is running inside a Docker if (isDocker() === false) { client.devmode = true } else { diff --git a/utils/_functions.js b/utils/_functions.js index eb569b9..bd2a9d4 100644 --- a/utils/_functions.js +++ b/utils/_functions.js @@ -1,3 +1,7 @@ +/* Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license. + * Some code found in this file has been taken from Guidebot, which is licensed under the MIT license. + */ + // Functions in this file are bound to the client object, and available basically anywhere. const { MessageEmbed } = require('discord.js') diff --git a/utils/botlists.js b/utils/botlists.js index 54307d6..92d6ac9 100644 --- a/utils/botlists.js +++ b/utils/botlists.js @@ -1,3 +1,5 @@ +// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license. + module.exports = client => { } diff --git a/utils/logger.js b/utils/logger.js index a220e45..c159ca0 100644 --- a/utils/logger.js +++ b/utils/logger.js @@ -1,3 +1,5 @@ +// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license. + 'use strict' const { colorConsole } = require('tracer') diff --git a/utils/mongoose.js b/utils/mongoose.js index 6db6564..08bdfce 100644 --- a/utils/mongoose.js +++ b/utils/mongoose.js @@ -1,3 +1,5 @@ +// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license. + const mongoose = require('mongoose') module.exports = { diff --git a/utils/music.js b/utils/music.js index b1b6b8d..ad8d1a5 100644 --- a/utils/music.js +++ b/utils/music.js @@ -1,3 +1,5 @@ +// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license. + const ytdl = require('ytdl-core-discord') const fetch = require('node-fetch') const { MessageEmbed } = require('discord.js')