please stop stealing my code

This commit is contained in:
Emily 2020-04-20 13:02:10 +10:00
parent 3e8c73f90a
commit f04f6c842f
29 changed files with 65 additions and 6 deletions

View file

@ -1,3 +1,5 @@
// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
module.exports = (client) => {
client.logger.warn('Lost connection to Discord.')
}

View file

@ -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))
}

View file

@ -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.')

View file

@ -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

View file

@ -1,3 +1,5 @@
// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
module.exports = async (client, message) => {
if (message.author.bot) return

View file

@ -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')

View file

@ -1,3 +1,5 @@
// Copyright 2020 Emily J. / mudkipscience. Subject to the AGPLv3 license.
module.exports = (client) => {
client.logger.info('Reconnecting to Discord...')
}