Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Amir-78 authored Aug 22, 2020
1 parent 0c9509c commit 4374383
Showing 1 changed file with 33 additions and 18 deletions.
51 changes: 33 additions & 18 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
const Discord = require("discord.js");
const { RichEmbed, GuildMember, Message, MessageEmbed, version, Discord } = require("discord.js");
const { EventEmitter } = require('events');
var XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest;

function animeSearch() {
return {
search: () => {

/**
* Checks a message.
*
* @param {Message} message The message to check.
*
* @returns {Promise<boolean>} Whether the message has triggered a threshold.
*
* @example
* client.on('message', (msg) => {
* antiSpam.message(msg);
* });
*/

class animeSearch extends EventEmitter {

async message(message) {



if(!message.channel.guild)return;
Expand All @@ -13,7 +29,7 @@ function animeSearch() {



const embed = new Discord.RichEmbed()
const embed = new RichEmbed()
.setTitle("OkAnime || Search")
.setURL("https://www.okanime.com/")
.setDescription("**`اضغط على رياكشن نوع الانمي الذي تريد البحث عن (يتم اخذ انمي عشوائي في كل مرة).`**")
Expand Down Expand Up @@ -180,7 +196,7 @@ function animeSearch() {
}


let sembed = new Discord.RichEmbed()
let sembed = new RichEmbed()



Expand Down Expand Up @@ -309,7 +325,7 @@ function animeSearch() {
}


let sembed = new Discord.RichEmbed()
let sembed = new RichEmbed()



Expand Down Expand Up @@ -438,7 +454,7 @@ function animeSearch() {
}


let sembed = new Discord.RichEmbed()
let sembed = new RichEmbed()



Expand Down Expand Up @@ -567,7 +583,7 @@ function animeSearch() {
}


let sembed = new Discord.RichEmbed()
let sembed = new RichEmbed()



Expand Down Expand Up @@ -696,7 +712,7 @@ function animeSearch() {
}


let sembed = new Discord.RichEmbed()
let sembed = new RichEmbed()



Expand Down Expand Up @@ -825,7 +841,7 @@ function animeSearch() {
}


let sembed = new Discord.RichEmbed()
let sembed = new RichEmbed()



Expand Down Expand Up @@ -954,7 +970,7 @@ function animeSearch() {
}


let sembed = new Discord.RichEmbed()
let sembed = new RichEmbed()



Expand Down Expand Up @@ -1083,7 +1099,7 @@ function animeSearch() {
}


let sembed = new Discord.RichEmbed()
let sembed = new RichEmbed()



Expand Down Expand Up @@ -1213,7 +1229,7 @@ function animeSearch() {
}


let sembed = new Discord.RichEmbed()
let sembed = new RichEmbed()



Expand Down Expand Up @@ -1243,11 +1259,10 @@ function animeSearch() {
});

})




}
}
}


module.exports = animeSearch()
module.exports = new animeSearch();

0 comments on commit 4374383

Please sign in to comment.