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
|
||||
|
||||
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.
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
|
||||
|
||||
exports.conf = {
|
||||
enabled: true,
|
||||
guildOnly: false,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
|
||||
|
||||
exports.conf = {
|
||||
enabled: true,
|
||||
guildOnly: false,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
|
||||
|
||||
/* eslint-disable no-eval */
|
||||
|
||||
exports.conf = {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
|
||||
|
||||
exports.conf = {
|
||||
enabled: true,
|
||||
guildOnly: true,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
|
||||
|
||||
exports.conf = {
|
||||
enabled: true,
|
||||
guildOnly: false,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
|
||||
|
||||
exports.conf = {
|
||||
enabled: true,
|
||||
guildOnly: false,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
|
||||
|
||||
exports.conf = {
|
||||
enabled: true,
|
||||
guildOnly: false,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
|
||||
|
||||
exports.conf = {
|
||||
enabled: true,
|
||||
guildOnly: false,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
|
||||
|
||||
exports.conf = {
|
||||
enabled: true,
|
||||
guildOnly: false,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
|
||||
|
||||
exports.conf = {
|
||||
enabled: true,
|
||||
guildOnly: true,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
|
||||
|
||||
exports.conf = {
|
||||
enabled: true,
|
||||
guildOnly: false,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
|
||||
|
||||
exports.conf = {
|
||||
enabled: true,
|
||||
guildOnly: false,
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
|
||||
// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
|
||||
|
||||
exports.conf = {
|
||||
enabled: true,
|
||||
guildOnly: false,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
|
||||
|
||||
exports.conf = {
|
||||
enabled: true,
|
||||
guildOnly: false,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
|
||||
|
||||
exports.conf = {
|
||||
enabled: true,
|
||||
guildOnly: true,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
|
||||
|
||||
module.exports = (client) => {
|
||||
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) => {
|
||||
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')
|
||||
module.exports = async (client, guild) => {
|
||||
client.logger.info('Guild joined.')
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
|
||||
|
||||
module.exports = async (client, message) => {
|
||||
if (message.author.bot) return
|
||||
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
|
||||
|
||||
module.exports = (client) => {
|
||||
client.logger.info('Reconnecting to Discord...')
|
||||
}
|
||||
|
|
13
index.js
13
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 {
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
|
||||
|
||||
module.exports = client => {
|
||||
|
||||
}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
|
||||
|
||||
'use strict'
|
||||
|
||||
const { colorConsole } = require('tracer')
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
|
||||
|
||||
const mongoose = require('mongoose')
|
||||
|
||||
module.exports = {
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue