|
|
@ -83,7 +83,7 @@ module.exports = { |
|
|
|
let asr = await ans(message, client, options.anime.trim().toLowerCase(), undefined, 0); |
|
|
|
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?");} |
|
|
|
if (asr === 0) {return message.channel.send("That search returned no results! Try remaking the character?");} |
|
|
|
else if (asr instanceof Pagination) { |
|
|
|
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 asr.message.react('✅'); |
|
|
|
await message.channel.send("React with :white_check_mark: when you've found the anime you want!"); |
|
|
|
await message.channel.send("React with :white_check_mark: when you've found the anime you want!"); |
|
|
|
let arc; |
|
|
|
let arc; |
|
|
@ -129,7 +129,7 @@ module.exports = { |
|
|
|
fn = options.anime; |
|
|
|
fn = options.anime; |
|
|
|
} |
|
|
|
} |
|
|
|
} else if (asr instanceof Pagination) { |
|
|
|
} 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 asr.message.react('✅'); |
|
|
|
await dmch.send("React with :white_check_mark: when you've found the anime you want!"); |
|
|
|
await dmch.send("React with :white_check_mark: when you've found the anime you want!"); |
|
|
|
let arc; |
|
|
|
let arc; |
|
|
@ -256,7 +256,7 @@ module.exports = { |
|
|
|
if (asr === 0) { |
|
|
|
if (asr === 0) { |
|
|
|
return message.channel.send("That search returned no results! Try again?"); |
|
|
|
return message.channel.send("That search returned no results! Try again?"); |
|
|
|
} else if (asr instanceof Pagination) { |
|
|
|
} 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 { |
|
|
|
} else { |
|
|
|
await message.channel.send({embeds: [asr.embed]}); |
|
|
|
await message.channel.send({embeds: [asr.embed]}); |
|
|
|
} |
|
|
|
} |
|
|
@ -274,7 +274,7 @@ module.exports = { |
|
|
|
if (asr === 0) { |
|
|
|
if (asr === 0) { |
|
|
|
return message.channel.send("That search returned no results! Try again?"); |
|
|
|
return message.channel.send("That search returned no results! Try again?"); |
|
|
|
} else if (asr instanceof Pagination) { |
|
|
|
} 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 { |
|
|
|
} else { |
|
|
|
await message.channel.send({embeds: [asr.embed]}); |
|
|
|
await message.channel.send({embeds: [asr.embed]}); |
|
|
|
} |
|
|
|
} |
|
|
@ -309,7 +309,7 @@ module.exports = { |
|
|
|
if (asr === 0) { |
|
|
|
if (asr === 0) { |
|
|
|
return message.channel.send("That search returned no results! Try again?"); |
|
|
|
return message.channel.send("That search returned no results! Try again?"); |
|
|
|
} else if (asr instanceof Pagination) { |
|
|
|
} 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 asr.message.react('✅'); |
|
|
|
let noticeDel = await message.channel.send("React with :white_check_mark: when you've found the character you want!"); |
|
|
|
let noticeDel = await message.channel.send("React with :white_check_mark: when you've found the character you want!"); |
|
|
|
let arc; |
|
|
|
let arc; |
|
|
@ -377,7 +377,7 @@ module.exports = { |
|
|
|
if (asr === 0) { |
|
|
|
if (asr === 0) { |
|
|
|
return message.channel.send("That search returned no results! Try again?"); |
|
|
|
return message.channel.send("That search returned no results! Try again?"); |
|
|
|
} else if (asr instanceof Pagination) { |
|
|
|
} 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 asr.message.react('✅'); |
|
|
|
await message.channel.send("React with :white_check_mark: when you've found the character you want!"); |
|
|
|
await message.channel.send("React with :white_check_mark: when you've found the character you want!"); |
|
|
|
let arc; |
|
|
|
let arc; |
|
|
@ -486,7 +486,7 @@ module.exports = { |
|
|
|
if (asr === 0) { |
|
|
|
if (asr === 0) { |
|
|
|
return message.channel.send("That search returned no results! Try again?"); |
|
|
|
return message.channel.send("That search returned no results! Try again?"); |
|
|
|
} else if (asr instanceof Pagination) { |
|
|
|
} 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 asr.message.react('✅'); |
|
|
|
await message.channel.send("React with :white_check_mark: when you've found the anime you want!"); |
|
|
|
await message.channel.send("React with :white_check_mark: when you've found the anime you want!"); |
|
|
|
let arc; |
|
|
|
let arc; |
|
|
@ -542,7 +542,7 @@ module.exports = { |
|
|
|
if (asr === 0) { |
|
|
|
if (asr === 0) { |
|
|
|
return message.channel.send("That search returned no results! Try again?"); |
|
|
|
return message.channel.send("That search returned no results! Try again?"); |
|
|
|
} else if (asr instanceof Pagination) { |
|
|
|
} 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 asr.message.react('✅'); |
|
|
|
await message.channel.send("React with :white_check_mark: when you've found the character you want!"); |
|
|
|
await message.channel.send("React with :white_check_mark: when you've found the character you want!"); |
|
|
|
let arc; |
|
|
|
let arc; |
|
|
|