Skip to content

Commit

Permalink
Merge pull request #10 from maisans-maid/master
Browse files Browse the repository at this point in the history
Update
  • Loading branch information
maisans-maid authored Sep 23, 2020
2 parents 8559771 + 7daa076 commit 61f78c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const mai = new Client({
, 'quiz'
, 'xp'
]
, prefix: ','
, prefix: 'm!'
, uploadchannel: '728866550207086642'
, owners: ['545427431662682112']
, mongoPassword: process.env.MONGO
Expand Down
4 changes: 2 additions & 2 deletions utilities/Add XP.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ module.exports = (guildID, userID, xp) => {
return new Promise((resolve,reject)=>{
xpSchema.findOne({ guildID, userID }, async (err,data) => {

if (err) reject('Unable to connecto to database')
if (err) return reject('Unable to connecto to database')

if (!data) data = await new xpSchema({ guildID, userID }).save().catch(()=>null)

if (!data) reject('Unable to save new document')
if (!data) return reject('Unable to save new document')

let cap = 150 * (data.level * 2)
let next = cap * data.level
Expand Down
2 changes: 1 addition & 1 deletion utilities/Anilist Schedule.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ require('moment-duration-format');
const { duration } = require('moment');
const { MessageEmbed } = require('discord.js')
const guildWatchlistSchema = require('../models/guildWatchlistSchema')
const query = require('./AniList Query')
const query = require('./Anilist Query')
const schedule = require('require-text')('../assets/graphql/Schedule.graphql', require)
let queuedNotifications = [];

Expand Down

0 comments on commit 61f78c8

Please sign in to comment.