diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 2e2cd56..4b61a9f 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,13 +4,18 @@
-
-
-
+
+
+
+
-
-
-
+
+
+
+
+
+
+
@@ -149,7 +154,14 @@
1642539309483
-
+
+ 1642551387709
+
+
+
+ 1642551387709
+
+
@@ -174,6 +186,8 @@
-
+
+
+
\ No newline at end of file
diff --git a/commands/anime/anime.js b/commands/anime/anime.js
index bc597cb..586f341 100644
--- a/commands/anime/anime.js
+++ b/commands/anime/anime.js
@@ -202,7 +202,7 @@ module.exports = {
if (asr === 0) {
return message.channel.send("That search returned no results! Try again?");
} else if (asr instanceof Pagination) {
- await asr.start({user: message.author.id, startPage: 1, endTime: 60000});
+ await asr.start({user: message.author.id, startPage: 0, endTime: 60000});
} else {
await message.channel.send({embeds: [asr.embed]});
}
@@ -220,7 +220,7 @@ module.exports = {
if (asr === 0) {
return message.channel.send("That search returned no results! Try again?");
} else if (asr instanceof Pagination) {
- await asr.start({user: message.author.id, startPage: 1, endTime: 60000});
+ await asr.start({user: message.author.id, startPage: 0, endTime: 60000});
} else {
await message.channel.send({embeds: [asr.embed]});
}
@@ -255,7 +255,7 @@ module.exports = {
if (asr === 0) {
return message.channel.send("That search returned no results! Try again?");
} else if (asr instanceof Pagination) {
- await asr.start({user: message.author.id, startPage: 1, endTime: 60000});
+ await asr.start({user: message.author.id, startPage: 0, endTime: 60000});
await asr.message.react('✅');
await message.channel.send("React with :white_check_mark: when you've found the anime you want!");
let arc;
@@ -298,7 +298,7 @@ module.exports = {
if (asr === 0) {
return message.channel.send("That search returned no results! Try again?");
} else if (asr instanceof Pagination) {
- await asr.start({user: message.author.id, startPage: 1, endTime: 60000});
+ await asr.start({user: message.author.id, startPage: 0, endTime: 60000});
await asr.message.react('✅');
await message.channel.send("React with :white_check_mark: when you've found the anime you want!");
let arc;
@@ -361,7 +361,7 @@ module.exports = {
if (asr === 0) {
return message.channel.send("That search returned no results! Try again?");
} else if (asr instanceof Pagination) {
- await asr.start({user: message.author.id, startPage: 1, endTime: 60000});
+ await asr.start({user: message.author.id, startPage: 0, endTime: 60000});
await asr.message.react('✅');
await message.channel.send("React with :white_check_mark: when you've found the anime you want!");
let arc;
diff --git a/commands/anime/animeimage.js b/commands/anime/animeimage.js
index e559db3..ecca16f 100644
--- a/commands/anime/animeimage.js
+++ b/commands/anime/animeimage.js
@@ -37,7 +37,7 @@ module.exports = {
if (asr === 0) {
return message.channel.send("That search returned no results! Try again?");
} else if (asr instanceof Pagination) {
- await asr.start({user: message.author.id, startPage: 1, endTime: 60000});
+ await asr.start({user: message.author.id, startPage: 0, endTime: 60000});
await asr.message.react('✅');
await message.channel.send("React with :white_check_mark: when you've found the anime you want!");
let arc;
diff --git a/commands/anime/animenick.js b/commands/anime/animenick.js
index c56c986..bb7e3d0 100644
--- a/commands/anime/animenick.js
+++ b/commands/anime/animenick.js
@@ -32,7 +32,7 @@ module.exports = {
if (asr === 0) {
return message.channel.send("That search returned no results! Try again?");
} else if (asr instanceof Pagination) {
- await asr.start({user: message.author.id, startPage: 1, endTime: 60000});
+ await asr.start({user: message.author.id, startPage: 0, endTime: 60000});
await asr.message.react('✅');
await message.channel.send("React with :white_check_mark: when you've found the anime you want!");
let arc;
diff --git a/commands/anime/char.js b/commands/anime/char.js
index c55f480..c28af48 100644
--- a/commands/anime/char.js
+++ b/commands/anime/char.js
@@ -83,7 +83,7 @@ module.exports = {
let asr = await ans(message, client, options.anime.trim().toLowerCase(), undefined, 0);
if (asr === 0) {return message.channel.send("That search returned no results! Try remaking the character?");}
else if (asr instanceof Pagination) {
- await asr.start({user: message.author.id, startPage: 1, endTime: 60000});
+ await asr.start({user: message.author.id, startPage: 0, endTime: 60000});
await asr.message.react('✅');
await message.channel.send("React with :white_check_mark: when you've found the anime you want!");
let arc;
@@ -129,7 +129,7 @@ module.exports = {
fn = options.anime;
}
} else if (asr instanceof Pagination) {
- await asr.start({user: message.author.id, startPage: 1, endTime: 60000});
+ await asr.start({user: message.author.id, startPage: 0, endTime: 60000});
await asr.message.react('✅');
await dmch.send("React with :white_check_mark: when you've found the anime you want!");
let arc;
@@ -256,7 +256,7 @@ module.exports = {
if (asr === 0) {
return message.channel.send("That search returned no results! Try again?");
} else if (asr instanceof Pagination) {
- await asr.start({user: message.author.id, startPage: 1, endTime: 60000});
+ await asr.start({user: message.author.id, startPage: 0, endTime: 60000});
} else {
await message.channel.send({embeds: [asr.embed]});
}
@@ -274,7 +274,7 @@ module.exports = {
if (asr === 0) {
return message.channel.send("That search returned no results! Try again?");
} else if (asr instanceof Pagination) {
- await asr.start({user: message.author.id, startPage: 1, endTime: 60000});
+ await asr.start({user: message.author.id, startPage: 0, endTime: 60000});
} else {
await message.channel.send({embeds: [asr.embed]});
}
@@ -309,7 +309,7 @@ module.exports = {
if (asr === 0) {
return message.channel.send("That search returned no results! Try again?");
} else if (asr instanceof Pagination) {
- await asr.start({user: message.author.id, startPage: 1, endTime: 60000});
+ await asr.start({user: message.author.id, startPage: 0, endTime: 60000});
await asr.message.react('✅');
let noticeDel = await message.channel.send("React with :white_check_mark: when you've found the character you want!");
let arc;
@@ -377,7 +377,7 @@ module.exports = {
if (asr === 0) {
return message.channel.send("That search returned no results! Try again?");
} else if (asr instanceof Pagination) {
- await asr.start({user: message.author.id, startPage: 1, endTime: 60000});
+ await asr.start({user: message.author.id, startPage: 0, endTime: 60000});
await asr.message.react('✅');
await message.channel.send("React with :white_check_mark: when you've found the character you want!");
let arc;
@@ -486,7 +486,7 @@ module.exports = {
if (asr === 0) {
return message.channel.send("That search returned no results! Try again?");
} else if (asr instanceof Pagination) {
- await asr.start({user: message.author.id, startPage: 1, endTime: 60000});
+ await asr.start({user: message.author.id, startPage: 0, endTime: 60000});
await asr.message.react('✅');
await message.channel.send("React with :white_check_mark: when you've found the anime you want!");
let arc;
@@ -542,7 +542,7 @@ module.exports = {
if (asr === 0) {
return message.channel.send("That search returned no results! Try again?");
} else if (asr instanceof Pagination) {
- await asr.start({user: message.author.id, startPage: 1, endTime: 60000});
+ await asr.start({user: message.author.id, startPage: 0, endTime: 60000});
await asr.message.react('✅');
await message.channel.send("React with :white_check_mark: when you've found the character you want!");
let arc;
diff --git a/commands/anime/charimage.js b/commands/anime/charimage.js
index 03bb712..00404ea 100644
--- a/commands/anime/charimage.js
+++ b/commands/anime/charimage.js
@@ -37,7 +37,7 @@ module.exports = {
if (asr === 0) {
return message.channel.send("That search returned no results! Try again?");
} else if (asr instanceof Pagination) {
- await asr.start({user: message.author.id, startPage: 1, endTime: 60000});
+ await asr.start({user: message.author.id, startPage: 0, endTime: 60000});
await asr.message.react('✅');
await message.channel.send("React with :white_check_mark: when you've found the character you want!");
let arc;
diff --git a/commands/anime/charnick.js b/commands/anime/charnick.js
index 67b30b0..3e9b42d 100644
--- a/commands/anime/charnick.js
+++ b/commands/anime/charnick.js
@@ -32,7 +32,7 @@ module.exports = {
if (asr === 0) {
return message.channel.send("That search returned no results! Try again?");
} else if (asr instanceof Pagination) {
- await asr.start({user: message.author.id, startPage: 1, endTime: 60000});
+ await asr.start({user: message.author.id, startPage: 0, endTime: 60000});
await asr.message.react('✅');
await message.channel.send("React with :white_check_mark: when you've found the character you want!");
let arc;
diff --git a/commands/anime/haswatched.js b/commands/anime/haswatched.js
index b39d25d..ddf13de 100644
--- a/commands/anime/haswatched.js
+++ b/commands/anime/haswatched.js
@@ -1,5 +1,3 @@
-const Discord = require('discord.js');
-
const AF = require("../../models/anifav");
const AniData = require('../../models/anime');
@@ -23,7 +21,7 @@ module.exports = {
help: "Check if you or another user has watched an anime with `{{p}}haswatched`",
async execute(message, msg, args, cmd, prefix, mention, client) {
let user;
- if (args[0] && args[0].match(/(?:<@\!?\d+>|\d+)/gm)) {
+ if (args[0] && args[0].match(/<@!?\d+>|\d+/gm)) {
user = message.guild ? (mention || client.users.cache.get(args[0])) : message.author;
if (!user) {return message.channel.send("Hmmm... for some reason I can't find the user you're looking for?");}
args.shift();
@@ -38,7 +36,7 @@ module.exports = {
if (asr === 0) {
return message.channel.send("That search returned no results! Try again?");
} else if (asr instanceof Pagination) {
- await asr.start({user: message.author.id, startPage: 1, endTime: 60000});
+ await asr.start({user: message.author.id, startPage: 0, endTime: 60000});
await asr.message.react('✅');
await message.channel.send("React with :white_check_mark: when you've found the anime you want!");
let arc;
diff --git a/commands/anime/highvalue.js b/commands/anime/highvalue.js
index dca6b84..f24cf62 100644
--- a/commands/anime/highvalue.js
+++ b/commands/anime/highvalue.js
@@ -1,5 +1,3 @@
-const Discord = require('discord.js');
-
const UserData = require('../../models/user');
const CharData = require('../../models/char');
@@ -30,7 +28,7 @@ module.exports = {
if (asr === 0) {
return message.channel.send("That search returned no results! Try again?");
} else if (asr instanceof Pagination) {
- await asr.start({user: message.author.id, startPage: 1, endTime: 60000});
+ await asr.start({user: message.author.id, startPage: 0, endTime: 60000});
await asr.message.react('✅');
let noticeDel = await message.channel.send("React with :white_check_mark: when you've found the character you want!");
let arc;
diff --git a/commands/anime/lovechar.js b/commands/anime/lovechar.js
index 7718f67..69a9a4f 100644
--- a/commands/anime/lovechar.js
+++ b/commands/anime/lovechar.js
@@ -46,11 +46,11 @@ module.exports = {
if (asr === 0) {
return message.channel.send("That search returned no results! Try again?");
} else if (asr instanceof Pagination) {
- await asr.start({user: message.author.id, startPage: 1, endTime: 60000});
+ await asr.start({user: message.author.id, startPage: 0, endTime: 60000});
await asr.message.react('✅');
let noticeDel = await message.channel.send("React with :white_check_mark: when you've found the character you want!");
let arc;
- try {arc = await asr.message.awaitReactions({filter: (r, u) => ['✅', '⏹'].includes(r.emoji.name), max: 1, errors: ['time']});}
+ try {arc = await asr.message.awaitReactions({filter: (r) => ['✅', '⏹'].includes(r.emoji.name), max: 1, errors: ['time']});}
catch {return message.reply("Looks like you didn't find the character you were looking for.");}
collected = arc.first().emoji.name;
if (collected === '✅') {
diff --git a/commands/anime/watched.js b/commands/anime/watched.js
index 9fe285d..00249ed 100644
--- a/commands/anime/watched.js
+++ b/commands/anime/watched.js
@@ -58,7 +58,7 @@ module.exports = {
if (asr === 0) {
return message.channel.send("That search returned no results! Try again?");
} else if (asr instanceof Pagination) {
- await asr.start({user: message.author.id, startPage: 1, endTime: 60000});
+ await asr.start({user: message.author.id, startPage: 0, endTime: 60000});
await asr.message.react('✅');
let noticeDel = await message.channel.send("React with :white_check_mark: when you've found the anime you want!");
let arc;
diff --git a/commands/anime/watchlist.js b/commands/anime/watchlist.js
index 2205bf5..73b0393 100644
--- a/commands/anime/watchlist.js
+++ b/commands/anime/watchlist.js
@@ -64,7 +64,7 @@ module.exports = {
if (asr === 0) {
return message.channel.send("That search returned no results! Try again?");
} else if (asr instanceof Pagination) {
- await asr.start({user: message.author.id, startPage: 1, endTime: 60000});
+ await asr.start({user: message.author.id, startPage: 0, endTime: 60000});
await asr.message.react('✅');
let noticeDel = await message.channel.send("React with :white_check_mark: when you've found the anime you want!");
let arc;
@@ -111,7 +111,7 @@ module.exports = {
if (asr === 0) {
return message.channel.send("That search returned no results! Try again?");
} else if (asr instanceof Pagination) {
- await asr.start({user: message.author.id, startPage: 1, endTime: 60000});
+ await asr.start({user: message.author.id, startPage: 0, endTime: 60000});
await asr.message.react('✅');
await message.channel.send("React with :white_check_mark: when you've found the anime you want!");
let arc;