forked from embee/woomy
		
	please stop stealing my code
This commit is contained in:
		
							parent
							
								
									3e8c73f90a
								
							
						
					
					
						commit
						f04f6c842f
					
				
					 29 changed files with 65 additions and 6 deletions
				
			
		| 
						 | 
					@ -32,6 +32,6 @@ If you wish to use our code in your project, please credit us! We don't mind you
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### License
 | 
					### 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.
 | 
					Copyrights licensed under the GNU AGPLv3 License, see the accompanying LICENSE file for details.
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,5 @@
 | 
				
			||||||
 | 
					// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
exports.conf = {
 | 
					exports.conf = {
 | 
				
			||||||
  enabled: true,
 | 
					  enabled: true,
 | 
				
			||||||
  guildOnly: false,
 | 
					  guildOnly: false,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,5 @@
 | 
				
			||||||
 | 
					// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
exports.conf = {
 | 
					exports.conf = {
 | 
				
			||||||
  enabled: true,
 | 
					  enabled: true,
 | 
				
			||||||
  guildOnly: false,
 | 
					  guildOnly: false,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,5 @@
 | 
				
			||||||
 | 
					// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* eslint-disable no-eval */
 | 
					/* eslint-disable no-eval */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
exports.conf = {
 | 
					exports.conf = {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,5 @@
 | 
				
			||||||
 | 
					// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
exports.conf = {
 | 
					exports.conf = {
 | 
				
			||||||
  enabled: true,
 | 
					  enabled: true,
 | 
				
			||||||
  guildOnly: true,
 | 
					  guildOnly: true,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,5 @@
 | 
				
			||||||
 | 
					// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
exports.conf = {
 | 
					exports.conf = {
 | 
				
			||||||
  enabled: true,
 | 
					  enabled: true,
 | 
				
			||||||
  guildOnly: false,
 | 
					  guildOnly: false,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,5 @@
 | 
				
			||||||
 | 
					// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
exports.conf = {
 | 
					exports.conf = {
 | 
				
			||||||
  enabled: true,
 | 
					  enabled: true,
 | 
				
			||||||
  guildOnly: false,
 | 
					  guildOnly: false,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,5 @@
 | 
				
			||||||
 | 
					// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
exports.conf = {
 | 
					exports.conf = {
 | 
				
			||||||
  enabled: true,
 | 
					  enabled: true,
 | 
				
			||||||
  guildOnly: false,
 | 
					  guildOnly: false,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,5 @@
 | 
				
			||||||
 | 
					// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
exports.conf = {
 | 
					exports.conf = {
 | 
				
			||||||
  enabled: true,
 | 
					  enabled: true,
 | 
				
			||||||
  guildOnly: false,
 | 
					  guildOnly: false,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,5 @@
 | 
				
			||||||
 | 
					// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
exports.conf = {
 | 
					exports.conf = {
 | 
				
			||||||
  enabled: true,
 | 
					  enabled: true,
 | 
				
			||||||
  guildOnly: false,
 | 
					  guildOnly: false,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,5 @@
 | 
				
			||||||
 | 
					// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
exports.conf = {
 | 
					exports.conf = {
 | 
				
			||||||
  enabled: true,
 | 
					  enabled: true,
 | 
				
			||||||
  guildOnly: true,
 | 
					  guildOnly: true,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,5 @@
 | 
				
			||||||
 | 
					// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
exports.conf = {
 | 
					exports.conf = {
 | 
				
			||||||
  enabled: true,
 | 
					  enabled: true,
 | 
				
			||||||
  guildOnly: false,
 | 
					  guildOnly: false,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,5 @@
 | 
				
			||||||
 | 
					// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
exports.conf = {
 | 
					exports.conf = {
 | 
				
			||||||
  enabled: true,
 | 
					  enabled: true,
 | 
				
			||||||
  guildOnly: false,
 | 
					  guildOnly: false,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,4 +1,6 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
exports.conf = {
 | 
					exports.conf = {
 | 
				
			||||||
  enabled: true,
 | 
					  enabled: true,
 | 
				
			||||||
  guildOnly: false,
 | 
					  guildOnly: false,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,5 @@
 | 
				
			||||||
 | 
					// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
exports.conf = {
 | 
					exports.conf = {
 | 
				
			||||||
  enabled: true,
 | 
					  enabled: true,
 | 
				
			||||||
  guildOnly: false,
 | 
					  guildOnly: false,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,5 @@
 | 
				
			||||||
 | 
					// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
exports.conf = {
 | 
					exports.conf = {
 | 
				
			||||||
  enabled: true,
 | 
					  enabled: true,
 | 
				
			||||||
  guildOnly: true,
 | 
					  guildOnly: true,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,5 @@
 | 
				
			||||||
 | 
					// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
module.exports = (client) => {
 | 
					module.exports = (client) => {
 | 
				
			||||||
  client.logger.warn('Lost connection to Discord.')
 | 
					  client.logger.warn('Lost connection to Discord.')
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,5 @@
 | 
				
			||||||
 | 
					// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
module.exports = async (client, error) => {
 | 
					module.exports = async (client, error) => {
 | 
				
			||||||
  client.logger.error(JSON.stringify(error.stack))
 | 
					  client.logger.error(JSON.stringify(error.stack))
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,5 @@
 | 
				
			||||||
 | 
					// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const Discord = require('discord.js')
 | 
					const Discord = require('discord.js')
 | 
				
			||||||
module.exports = async (client, guild) => {
 | 
					module.exports = async (client, guild) => {
 | 
				
			||||||
  client.logger.info('Guild joined.')
 | 
					  client.logger.info('Guild joined.')
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,5 @@
 | 
				
			||||||
 | 
					// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const Discord = require('discord.js')
 | 
					const Discord = require('discord.js')
 | 
				
			||||||
module.exports = async (client, guild) => {
 | 
					module.exports = async (client, guild) => {
 | 
				
			||||||
  if (!guild.available) return
 | 
					  if (!guild.available) return
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,5 @@
 | 
				
			||||||
 | 
					// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
module.exports = async (client, message) => {
 | 
					module.exports = async (client, message) => {
 | 
				
			||||||
  if (message.author.bot) return
 | 
					  if (message.author.bot) return
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,5 @@
 | 
				
			||||||
 | 
					// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const moment = require('moment')
 | 
					const moment = require('moment')
 | 
				
			||||||
module.exports = (client) => {
 | 
					module.exports = (client) => {
 | 
				
			||||||
  const timestamp = moment().format('YYYY-MM-DD HH:mm:ss')
 | 
					  const timestamp = moment().format('YYYY-MM-DD HH:mm:ss')
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,5 @@
 | 
				
			||||||
 | 
					// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
module.exports = (client) => {
 | 
					module.exports = (client) => {
 | 
				
			||||||
  client.logger.info('Reconnecting to Discord...')
 | 
					  client.logger.info('Reconnecting to Discord...')
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										9
									
								
								index.js
									
										
									
									
									
								
							
							
						
						
									
										9
									
								
								index.js
									
										
									
									
									
								
							| 
						 | 
					@ -1,5 +1,8 @@
 | 
				
			||||||
// Woomy version 2
 | 
					/* Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
 | 
				
			||||||
// Copyright 2020 mudkipscience
 | 
					 * 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'
 | 
					'use strict'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -29,7 +32,7 @@ client.logger = require('./utils/logger')
 | 
				
			||||||
require('./utils/_functions')(client)
 | 
					require('./utils/_functions')(client)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if (typeof client.config.devmode !== 'undefined') { // Check if devmode is explicitly overridden
 | 
					if (typeof client.config.devmode !== 'undefined') { // Check if devmode is explicitly overridden
 | 
				
			||||||
  client.devmode = client.config.devmode;
 | 
					  client.devmode = client.config.devmode
 | 
				
			||||||
} else { // Check if Woomy is running inside a Docker
 | 
					} else { // Check if Woomy is running inside a Docker
 | 
				
			||||||
  if (isDocker() === false) {
 | 
					  if (isDocker() === false) {
 | 
				
			||||||
    client.devmode = true
 | 
					    client.devmode = true
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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.
 | 
					// Functions in this file are bound to the client object, and available basically anywhere.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const { MessageEmbed } = require('discord.js')
 | 
					const { MessageEmbed } = require('discord.js')
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,5 @@
 | 
				
			||||||
 | 
					// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
module.exports = client => {
 | 
					module.exports = client => {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,5 @@
 | 
				
			||||||
 | 
					// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
'use strict'
 | 
					'use strict'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const { colorConsole } = require('tracer')
 | 
					const { colorConsole } = require('tracer')
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,5 @@
 | 
				
			||||||
 | 
					// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const mongoose = require('mongoose')
 | 
					const mongoose = require('mongoose')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
module.exports = {
 | 
					module.exports = {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,5 @@
 | 
				
			||||||
 | 
					// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const ytdl = require('ytdl-core-discord')
 | 
					const ytdl = require('ytdl-core-discord')
 | 
				
			||||||
const fetch = require('node-fetch')
 | 
					const fetch = require('node-fetch')
 | 
				
			||||||
const { MessageEmbed } = require('discord.js')
 | 
					const { MessageEmbed } = require('discord.js')
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue