aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/commands/owner/eval.ts14
-rw-r--r--src/lib/extensions/BotClient.ts2
-rw-r--r--src/lib/extensions/BotTask.ts2
-rw-r--r--src/tasks/Unban.ts14
4 files changed, 16 insertions, 16 deletions
diff --git a/src/commands/owner/eval.ts b/src/commands/owner/eval.ts
index 0b793c9..a63b977 100644
--- a/src/commands/owner/eval.ts
+++ b/src/commands/owner/eval.ts
@@ -81,14 +81,14 @@ export default class EvalCommand extends BotCommand {
'📥 Input',
code.length > 1012
? 'Too large to display. Hastebin: ' +
- (await this.client.util.haste(code))
+ (await this.client.util.haste(code))
: '```js\n' + code + '```'
)
.addField(
'📤 Output',
output.length > 1012
? 'Too large to display. Hastebin: ' +
- (await this.client.util.haste(output))
+ (await this.client.util.haste(output))
: '```js\n' + output + '```'
)
.setColor('#66FF00')
@@ -104,18 +104,18 @@ export default class EvalCommand extends BotCommand {
'📥 Input',
code.length > 1012
? 'Too large to display. Hastebin: ' +
- (await this.client.util.haste(code))
+ (await this.client.util.haste(code))
: '```js\n' + code + '```'
)
.addField(
'📤 Output',
e.length > 1012
? 'Too large to display. Hastebin: ' +
- (await this.client.util.haste(e))
+ (await this.client.util.haste(e))
: '```js\n' +
- e +
- '```Full stack:' +
- (await this.client.util.haste(e.stack))
+ e +
+ '```Full stack:' +
+ (await this.client.util.haste(e.stack))
)
.setColor('#FF0000')
.setFooter(
diff --git a/src/lib/extensions/BotClient.ts b/src/lib/extensions/BotClient.ts
index 0b59675..c98f50d 100644
--- a/src/lib/extensions/BotClient.ts
+++ b/src/lib/extensions/BotClient.ts
@@ -60,7 +60,7 @@ export class BotClient extends AkairoClient {
// Create task handler
this.taskHandler = new TaskHandler(this, {
- directory: path.join(__dirname, "..", "..", "tasks"),
+ directory: path.join(__dirname, '..', '..', 'tasks')
});
// Create command handler
diff --git a/src/lib/extensions/BotTask.ts b/src/lib/extensions/BotTask.ts
index c0da5d3..4d5cdcd 100644
--- a/src/lib/extensions/BotTask.ts
+++ b/src/lib/extensions/BotTask.ts
@@ -3,4 +3,4 @@ import { BotClient } from './BotClient';
export class BotTask extends Task {
public client: BotClient;
-} \ No newline at end of file
+}
diff --git a/src/tasks/Unban.ts b/src/tasks/Unban.ts
index a59933a..c6f9a01 100644
--- a/src/tasks/Unban.ts
+++ b/src/tasks/Unban.ts
@@ -1,15 +1,15 @@
-import chalk from "chalk";
-import { DiscordAPIError } from "discord.js";
-import { Op } from "sequelize";
-import { BotTask } from "../lib/extensions/BotTask"
-import { Ban } from "../lib/models";
+import chalk from 'chalk';
+import { DiscordAPIError } from 'discord.js';
+import { Op } from 'sequelize';
+import { BotTask } from '../lib/extensions/BotTask';
+import { Ban } from '../lib/models';
export default class UnbanTask extends BotTask {
constructor() {
super('unban', {
delay: 30_000, // 1/2 min
runOnStart: true
- })
+ });
}
async exec(): Promise<void> {
const rows = await Ban.findAll({
@@ -46,4 +46,4 @@ export default class UnbanTask extends BotTask {
this.client.logger.verbose(chalk.cyan('Unbanned user'));
}
}
-} \ No newline at end of file
+}