Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

Commit

Permalink
Fix: Fix silly capitalization.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aceheliflyer committed Apr 6, 2018
1 parent c1f6d57 commit ee0ba7c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
12 changes: 6 additions & 6 deletions src/commands/development/staff.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module.exports = class StaffCommand extends Command {
var developerList = this.client.provider.get('global', 'developer', [])

/* **************************************************************************************************** *\
Staff
Staff
\* **************************************************************************************************** */
if (args.level === 'staff') {
/*
Expand All @@ -54,7 +54,7 @@ module.exports = class StaffCommand extends Command {
if (staffList.includes(args.user.id)) return message.say('That user is already a staff member.')
staffList.push(args.user.id)
this.client.provider.set('global', 'staff', staffList)
return message.reply(`Added **${escapeMarkdown(args.user.tag)}** as a staff member.`)
return message.reply(`added **${escapeMarkdown(args.user.tag)}** as a staff member.`)
/*
Remove
*/
Expand All @@ -68,10 +68,10 @@ module.exports = class StaffCommand extends Command {
} else {
this.client.provider.set('global', 'staff', staffList)
}
return message.reply(`Removed **${escapeMarkdown(args.user.tag)}** from staff.`)
return message.reply(`removed **${escapeMarkdown(args.user.tag)}** from staff.`)
}
/* **************************************************************************************************** *\
Developer
Developer
\* **************************************************************************************************** */
} else if (args.level === 'developer') {
/*
Expand All @@ -82,7 +82,7 @@ module.exports = class StaffCommand extends Command {
if (developerList.includes(args.user.id)) return message.say('That user is already a developer.')
developerList.push(args.user.id)
this.client.provider.set('global', 'developer', developerList)
return message.reply(`Added **${escapeMarkdown(args.user.tag)}** as a developer.`)
return message.reply(`added **${escapeMarkdown(args.user.tag)}** as a developer.`)
/*
Remove
*/
Expand All @@ -96,7 +96,7 @@ module.exports = class StaffCommand extends Command {
} else {
this.client.provider.set('global', 'developer', developerList)
}
return message.reply(`Removed **${escapeMarkdown(args.user.tag)}** from developer.`)
return message.reply(`removed **${escapeMarkdown(args.user.tag)}** from developer.`)
}
}
})
Expand Down
3 changes: 1 addition & 2 deletions src/commands/information/discordstatus.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@ module.exports = class DiscordStatsCommand extends Command {
}

run (message) {
// TODO: Redo this command using the StatusPage API.
request({ url: 'http://srhpyqt94yxb.statuspage.io/api/v2/summary.json', headers: { 'User-Agent': 'AceBot' } }, (error, response, body) => {
if (error) {
return message.reply('It appears there was an error pulling stats from Statuspage.')
return message.reply('it appears there was an error pulling stats from Statuspage.')
} else {
body = JSON.parse(body)
message.embed({
Expand Down
2 changes: 1 addition & 1 deletion src/commands/profile/clear.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module.exports = class ClearCommand extends Command {
this.client.provider.remove(message.author.id, args.query)
return message.reply(`successfully removed your \`${args.query}\`!`)
} catch (error) {
return message.reply(`There was an error processing your request: \`${error.name}: ${error.message}\``)
return message.reply(`there was an error processing your request: \`${error.name}: ${error.message}\``)
}
}
}

0 comments on commit ee0ba7c

Please sign in to comment.