Skip to content

Commit 6743adf

Browse files
committed
chore: eslint fix
1 parent ecdb535 commit 6743adf

File tree

9 files changed

+13
-16
lines changed

9 files changed

+13
-16
lines changed

commands/dev/blacklist.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class BlacklistCommand extends Command {
1212
}
1313

1414
async run (client, msg, query, locale) {
15-
if(['추가', 'add'].includes(query.args[0])) {
15+
if (['추가', 'add'].includes(query.args[0])) {
1616

1717
}
1818
}

commands/dev/eval.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class EvalCommand extends Command {
4444

4545
let bd
4646
let result = ''
47-
let error = { occured: false, obj: null }
47+
const error = { occured: false, obj: null }
4848
let useEmbed = canSendEmbed(client.user, msg.channel)
4949

5050
if (!isUnsafe) bd = this.hideToken()

commands/dev/maintenance.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ class MaintenanceCommand extends Command {
2323
// End maintenance
2424
client.onlineMode = true
2525
msg.reply(t('commands.maintenance.end', locale))
26-
} else msg.reply(t('commands.maintenance.status', locale, String(!client.onlineMode)) + '\n'
27-
+ t('commands.maintenance.usage', locale, query.prefix))
26+
} else {
27+
msg.reply(t('commands.maintenance.status', locale, String(!client.onlineMode)) + '\n' +
28+
t('commands.maintenance.usage', locale, query.prefix))
29+
}
2830
}
2931
}
3032

commands/game/typing.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const path = require('path')
2-
const { Collection, MessageCollector } = require('discord.js')
2+
const { MessageCollector } = require('discord.js')
33
const hangul = require('hangul-js')
44

55
const Command = require('../../classes/Command')
@@ -30,7 +30,6 @@ class TypingGameCommand extends Command {
3030
switch (query.args[0]) {
3131
case 'reload':
3232
case '리로드':
33-
3433
case 'ㄱ디ㅐㅁㅇ':
3534
case 'flfhem':
3635
if (!client.config.owner.includes(msg.author.id)) return msg.reply(t('commands.typing.error.noPermissionToReload', locale))
@@ -39,7 +38,6 @@ class TypingGameCommand extends Command {
3938

4039
case 'start':
4140
case '시작':
42-
4341
case 'ㄴㅅㅁㄱㅅ':
4442
case 'tlwkr': {
4543
// Check if the data is loaded
@@ -112,7 +110,6 @@ class TypingGameCommand extends Command {
112110
case '종료':
113111
case '정지':
114112
case '중지':
115-
116113
case 'ㄴ새ㅔ':
117114
case 'whdfy':
118115
case 'wjdwl':
@@ -122,7 +119,6 @@ class TypingGameCommand extends Command {
122119

123120
case '카테고리':
124121
case 'category':
125-
126122
case 'zkxprhfl':
127123
case 'ㅊㅁㅅㄷ해교':
128124
if (!query.args[1]) return msg.reply(t('commands.typing.emptyCategorySearchQuery', locale, query.prefix))

commands/info/serverinfo.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ class ServerInfoCommand extends Command {
7777
`**:busts_in_silhouette: ${tn('commands.serverinfo.memberCount.title', locale, guild.memberCount)}**\n${memberCountText}\n\n` +
7878
`**:tv: ${tn('commands.serverinfo.channelCount.title', locale, guild.channels.cache.size)}**\n${channelCountText}\n\n` +
7979
`**:birthday: ${t('commands.serverinfo.createdAt.title', locale)}**: ${createdAt}`
80-
8180
}
8281

8382
return msg.channel.send(data)

commands/info/uptime.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const { MessageEmbed } = require('discord.js')
2-
const moment = require('moment-timezone')
2+
// const moment = require('moment-timezone')
33

44
const Command = require('../../classes/Command')
55

commands/util/dice.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class DiceCommand extends Command {
1717
if (query.args.length > 0) {
1818
const input = query.args[0]
1919
if (
20-
!/^[0-9]+$/.test(input) ||
20+
!/^[0-9]+$/.test(input) ||
2121
parseInt(input) < 1
2222
) return msg.reply(t('commands.dice.error', locale))
2323
else sides = parseInt(input)

modules/parsePeriod.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = (periodText) => {
2-
// 1d2h3m4s
2+
// 1d2h3m4s
33

44
// days
55
const daysSplit = periodText.split('d')
@@ -56,7 +56,7 @@ module.exports = (periodText) => {
5656
}
5757
}
5858

59-
function parse(split) {
59+
function parse (split) {
6060
if (split.length === 1) return 0
6161
else if (split.length !== 2) return null
6262
const num = Number(split[0])

modules/tictactoe.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ function mark (channelid, player, position) {
4545
win = -1
4646
endGame(channelid)
4747
}
48-
48+
4949
return makeResultObj(true, {
5050
panel: session.board,
5151
collector: session.collector,
52-
win,
52+
win
5353
})
5454
}
5555

0 commit comments

Comments
 (0)