bot_discord_multicast 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of bot_discord_multicast might be problematic. Click here for more details.
- package/README.md +48 -0
- package/index.js +1 -0
- package/package.json +30 -0
- package/test.js +14 -0
package/README.md
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
## What is bot multicast ?
|
2
|
+
|
3
|
+
It is a package that helps you send messages to all server users with ease by placing bot tokens and entering them into the server, specifying the message and time, and it will take care of the rest..
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
```
|
8
|
+
npm i bot_discord_multicast
|
9
|
+
```
|
10
|
+
|
11
|
+
```
|
12
|
+
npm i discord.js@13.6.0
|
13
|
+
```
|
14
|
+
|
15
|
+
## Usage
|
16
|
+
|
17
|
+
```js
|
18
|
+
const munticast = require("bot_discord_multicast");
|
19
|
+
let tokens = ["token1", "token2", "token3", "token4"];
|
20
|
+
async function run() {
|
21
|
+
await munticast({
|
22
|
+
tokens: tokens,
|
23
|
+
message: "hi ._.sasa",
|
24
|
+
guildid: "1265972021217595474",
|
25
|
+
members: 20,
|
26
|
+
Timeout: 2000,
|
27
|
+
});
|
28
|
+
}
|
29
|
+
|
30
|
+
run();
|
31
|
+
```
|
32
|
+
|
33
|
+
## Opject
|
34
|
+
|
35
|
+
```js
|
36
|
+
await munticast({
|
37
|
+
tokens: tokens, //Required Here you put the views that contain the tokens.
|
38
|
+
message: "hi ._.sasa", //Required Here is the message to be sent
|
39
|
+
guildid: "1265972021217595474", //Required guild id server
|
40
|
+
members: 20, // not Required You can specify a specific number to whom the message will be sent, or leave it to be sent to everyone.
|
41
|
+
Timeout: 2000, //Required It is preferable to make it 1000 or more to avoid getting banned by bots.
|
42
|
+
status: "online", // not Required You can specify the number of members to whom the message is sent or left.
|
43
|
+
});
|
44
|
+
```
|
45
|
+
|
46
|
+
## Links
|
47
|
+
|
48
|
+
[Support Server](https://discord.gg/unk-team)
|
package/index.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
function _0x1f00(){const _0x1d65ee=['r1vjterFv0vcse9ps1m','ChjLC2vUy2u','yM90','token','2227YDchbR','GUILD_EMOJIS_AND_STICKERS','dnd','CNvUvg9Rzw5Z','FLAGS','length','ndbHBfbWt3m','mZaWmdryrKr5wxi','DIRECT_MESSAGE_TYPING','Timeout','client','r1vjterFvK9jq0vFu1rbvevt','r1vjterFtuvnqKvsuW','B25SAw5L','odi0mZfLuhfRvfa','user','ndy4mtG4EfPXBwzS','idle','mJi4mZyWExPVr0PW','bot','presence','status','rxjYB3iGBg9Nz2LUzYbPBIb3AxrOihrVA2vUoIa','DIRECT_MESSAGE_REACTIONS','Bg9NAw4','igXVz2DLzc4','zgvZDhjVEq','filter','GUILDS','message','CgXZigLUDgvYihrVA2vUCYbPBIbHCNjHEsbBiNrVA2vUmsiSiNrVA2vUmIjDid8U','y2vPBa','r1vjterFu0nirurvtevex0vwru5uuW','zMv0y2G','discord.js','DxnLCNm','DMfSDwvZ','q2XPzw50igLZig5VDcbPBML0AwfSAxPLzce','Bg9N','rKXbr1m','mtqWtezzEhHu','r1vjterFqKfouW','468188xZqmfl','GUILD_MESSAGE_REACTIONS','40alPpOs','DIRECT_MESSAGES','zMLSDgvY','20VysvXd','r1vjterFufjfu0voq0vt','zg5K','2232048hqQJwq','error','qM90ihDPDgGGDg9Rzw4G','r1vjterFsu5uruDsqvrjt05t','C2vUza','GUILD_SCHEDULED_EVENTS','GUILD_VOICE_STATES','BwvZC2fNzsa/lG','82431ePqkTP','ChvZAa','C3rHDhvZ','igXVz2DLzcaU','z2v0','GUILD_PRESENCES','runTokens','GUILD_WEBHOOKS','reLsrunux01fu1nbr0vt','ndu2mdiWzMnlqKXW','online','No\x20valid\x20tokens!','guilds','vgLTzw91Da','GUILD_MESSAGE_TYPING','Dg9Rzw5Zid8U','vgLTzw91Dca/lG','GUILD_BANS','fetch','r1vjtert','slice','r1vjterFtuvtu0fhrv9uwvbjtKC','BwfW','GUILD_MESSAGES','reLsrunux01fu1nbr0vFuKvbq1rjt05t','from','log','C2vUzg1LC3nHz2vZ','r1vjterFru1psKLtx0forf9tveLds0vsuW','Dg9Rzw4','r1vjterFtuvtu0fhrvm','BgvUz3rO','Token\x20failed:\x20','zxHWB3j0CW','reLsrunux01fu1nbr0vFvfLqsu5h','y2XPzw50','cache','offline','BwvTyMvYCW','C2XPy2u','159mcdFGx','GUILD_INVITES','members'];_0x1f00=function(){return _0x1d65ee;};return _0x1f00();}const _0x1d76d2=_0x35bf,_0x623421=_0x4674;function _0x4674(_0x38faaf,_0x4e9802){const _0x1f00c9=_0x1f00();return _0x4674=function(_0x4674ec,_0x49fe8c){_0x4674ec=_0x4674ec-0x1c7;let _0x937356=_0x1f00c9[_0x4674ec];return _0x937356;},_0x4674(_0x38faaf,_0x4e9802);}(function(_0x1ccfdb,_0x5364dc){const _0x51f865=_0x35bf,_0xce7502=_0x4674,_0x3337fa=_0x1ccfdb();while(!![]){try{const _0x359aab=parseInt(_0xce7502('0x1e7'))/0x1*(-parseInt(_0x51f865(0x20f))/0x2)+parseInt(_0xce7502(0x1e0))/0x3*(-parseInt(_0x51f865(0x1ee))/0x4)+parseInt(_0x51f865(0x22a))/0x5+parseInt(_0xce7502(0x219))/0x6+-parseInt(_0xce7502(0x211))/0x7*(-parseInt(_0x51f865('0x1ed'))/0x8)+-parseInt(_0x51f865('0x1f5'))/0x9+parseInt(_0xce7502('0x216'))/0xa*(parseInt(_0x51f865('0x1f9'))/0xb);if(_0x359aab===_0x5364dc)break;else _0x3337fa['push'](_0x3337fa['shift']());}catch(_0x31c80e){_0x3337fa['push'](_0x3337fa['shift']());}}}(_0x1f00,0x43846));const {Client,Intents}=require(_0x623421('0x209')),sleep=async _0x51bbbe=>new Promise(_0x589b7b=>setTimeout(_0x589b7b,_0x51bbbe));class Run{constructor(_0x7559d2,_0xa88792,_0x33c7c5,_0x4c5b76,_0x4aa842){const _0x3673d1=_0x35bf,_0x1b5dd5=_0x623421;this[_0x1b5dd5('0x1e6')]=_0x7559d2,this[_0x1b5dd5(0x1e2)]=_0xa88792,this[_0x3673d1('0x22e')]=_0x33c7c5,this[_0x1b5dd5('0x204')]=_0x4c5b76,this['status']=_0x4aa842,this[_0x3673d1('0x1db')]=null;}async[_0x1d76d2('0x1ea')](){const _0x3e8872=_0x1d76d2,_0x451381=_0x623421,_0xd6d555=new Client({'intents':[Intents['FLAGS']['GUILDS'],Intents[_0x451381('0x1eb')][_0x3e8872(0x1f3)],Intents[_0x3e8872('0x20e')][_0x3e8872('0x1d4')],Intents[_0x3e8872('0x20e')][_0x451381(0x1c9)],Intents[_0x3e8872(0x20e)][_0x3e8872(0x21c)],Intents[_0x451381(0x1eb)][_0x3e8872(0x1e3)],Intents[_0x3e8872('0x20e')][_0x451381('0x1e1')],Intents[_0x3e8872(0x20e)][_0x451381('0x1cf')],Intents[_0x451381('0x1eb')]['GUILD_MESSAGE_REACTIONS'],Intents['FLAGS'][_0x451381(0x22f)],Intents[_0x3e8872('0x20e')][_0x451381('0x214')],Intents['FLAGS'][_0x3e8872(0x1d0)],Intents[_0x451381(0x1eb)][_0x451381('0x1ef')],Intents[_0x451381(0x1eb)][_0x3e8872('0x1f2')],Intents[_0x451381('0x1eb')][_0x451381(0x21e)],Intents['FLAGS'][_0x3e8872('0x217')]]});try{await _0xd6d555['login'](this[_0x451381('0x1e6')]),this['client']=_0xd6d555,await this[_0x3e8872('0x1d3')](this['message'],this[_0x3e8872(0x1de)],this[_0x451381(0x1f0)]);}catch(_0x501855){console[_0x451381('0x21a')](_0x3e8872(0x1fd)+this[_0x3e8872(0x1d5)],_0x501855);}finally{_0xd6d555[_0x3e8872('0x201')](),console[_0x451381('0x1d2')](_0x3e8872('0x21b')+this[_0x3e8872(0x1d5)]+_0x3e8872(0x224));}}async[_0x1d76d2('0x1d3')](_0x5c68e5,_0x2446d6,_0x233c1c){const _0x46a654=_0x1d76d2,_0x5bc70c=_0x623421;if(!this[_0x5bc70c('0x1f1')]){console[_0x46a654(0x20d)](_0x46a654('0x20c'));return;}for(const _0x49f958 of _0x2446d6){await sleep(_0x233c1c);try{let _0x2a8dd2=await this[_0x5bc70c(0x1f1)][_0x46a654('0x20a')][_0x46a654('0x208')](_0x49f958['id']);await _0x2a8dd2[_0x46a654('0x21d')](_0x5c68e5);}catch(_0x2c93f6){}}}}function _0x35bf(_0x38faaf,_0x4e9802){const _0x1f00c9=_0x1f00();return _0x35bf=function(_0x4674ec,_0x49fe8c){_0x4674ec=_0x4674ec-0x1c7;let _0x937356=_0x1f00c9[_0x4674ec];if(_0x35bf['DypkMr']===undefined){var _0xdc21fe=function(_0x35bf94){const _0x581aeb='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3c53b8='',_0x2a7555='';for(let _0x3c0bce=0x0,_0x3fc935,_0x12104e,_0x51bbbe=0x0;_0x12104e=_0x35bf94['charAt'](_0x51bbbe++);~_0x12104e&&(_0x3fc935=_0x3c0bce%0x4?_0x3fc935*0x40+_0x12104e:_0x12104e,_0x3c0bce++%0x4)?_0x3c53b8+=String['fromCharCode'](0xff&_0x3fc935>>(-0x2*_0x3c0bce&0x6)):0x0){_0x12104e=_0x581aeb['indexOf'](_0x12104e);}for(let _0x589b7b=0x0,_0x7559d2=_0x3c53b8['length'];_0x589b7b<_0x7559d2;_0x589b7b++){_0x2a7555+='%'+('00'+_0x3c53b8['charCodeAt'](_0x589b7b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2a7555);};_0x35bf['DdtEAV']=_0xdc21fe,_0x38faaf=arguments,_0x35bf['DypkMr']=!![];}const _0xd99707=_0x1f00c9[0x0],_0x5bb350=_0x4674ec+_0xd99707,_0x50df93=_0x38faaf[_0x5bb350];return!_0x50df93?(_0x937356=_0x35bf['DdtEAV'](_0x937356),_0x38faaf[_0x5bb350]=_0x937356):_0x937356=_0x50df93,_0x937356;},_0x35bf(_0x38faaf,_0x4e9802);}async function check_token(_0x4a77e5){const _0x45dcce=_0x1d76d2,_0x554cd1=[];return await Promise['all'](_0x4a77e5[_0x45dcce('0x1ce')](async _0x19c563=>{const _0x1bcf6c=_0x4674,_0x1423c8=_0x45dcce,_0x3a173c=new Client({'intents':[Intents[_0x1423c8('0x20e')][_0x1423c8(0x1cb)],Intents[_0x1bcf6c(0x1eb)]['GUILD_MEMBERS'],Intents['FLAGS'][_0x1423c8(0x1d4)],Intents[_0x1bcf6c('0x1eb')][_0x1bcf6c('0x1c9')],Intents[_0x1bcf6c(0x1eb)]['GUILD_INTEGRATIONS'],Intents['FLAGS'][_0x1bcf6c('0x228')],Intents[_0x1bcf6c('0x1eb')]['GUILD_INVITES'],Intents[_0x1bcf6c(0x1eb)][_0x1423c8(0x1d6)],Intents[_0x1423c8(0x20e)][_0x1bcf6c(0x212)],Intents[_0x1bcf6c(0x1eb)][_0x1423c8('0x1cd')],Intents[_0x1423c8(0x20e)][_0x1423c8('0x229')],Intents[_0x1423c8(0x20e)][_0x1423c8(0x1d0)],Intents[_0x1423c8('0x20e')]['DIRECT_MESSAGE_TYPING'],Intents['FLAGS'][_0x1bcf6c(0x21f)],Intents['FLAGS'][_0x1423c8('0x207')],Intents[_0x1423c8('0x20e')][_0x1bcf6c(0x226)]]});try{await _0x3a173c['login'](_0x19c563),_0x554cd1[_0x1423c8(0x222)](_0x19c563),console[_0x1423c8(0x20d)]('Bot\x20with\x20token\x20'+_0x19c563+_0x1423c8(0x200));}catch(_0x5003e1){console[_0x1423c8(0x20d)](_0x1bcf6c('0x1d8')+_0x19c563);}})),_0x554cd1;}async function on(_0x438862,_0x3cb865,_0x4f3dcf,_0xcd9bfa){const _0x2e7862=_0x623421,_0x5130d5=_0x1d76d2,_0x1447a7=new Client({'intents':[Intents[_0x5130d5('0x20e')][_0x2e7862('0x203')],Intents[_0x2e7862('0x1eb')][_0x5130d5(0x1f3)],Intents['FLAGS'][_0x2e7862('0x1e8')],Intents[_0x5130d5(0x20e)][_0x5130d5(0x210)],Intents[_0x2e7862('0x1eb')][_0x5130d5(0x21c)],Intents[_0x2e7862(0x1eb)][_0x5130d5('0x1e3')],Intents[_0x5130d5(0x20e)][_0x2e7862(0x1e1)],Intents[_0x5130d5('0x20e')][_0x5130d5(0x1d6)],Intents[_0x2e7862(0x1eb)][_0x2e7862(0x212)],Intents[_0x2e7862('0x1eb')][_0x5130d5(0x1cd)],Intents['FLAGS'][_0x2e7862(0x214)],Intents[_0x5130d5(0x20e)][_0x2e7862('0x1fe')],Intents[_0x2e7862(0x1eb)][_0x5130d5(0x1da)],Intents['FLAGS'][_0x5130d5(0x1f2)],Intents['FLAGS'][_0x2e7862(0x21e)],Intents['FLAGS'][_0x2e7862(0x226)]]});await _0x1447a7[_0x5130d5('0x1ff')](_0x438862)['catch'](_0x36de2b=>{const _0x11e5d8=_0x5130d5;console[_0x11e5d8('0x20d')](_0x36de2b);});const _0x1af2b5=await _0x1447a7[_0x2e7862(0x22d)][_0x2e7862('0x1dc')][_0x5130d5('0x225')](_0xcd9bfa);if(!_0x1af2b5){throw new RangeError('Guild\x20not\x20found!');return[];}let _0xeed9fd=await _0x1af2b5[_0x5130d5(0x1de)][_0x2e7862(0x1ca)]({'withPresences':!![]}),_0x57f984;if(_0x3cb865===_0x2e7862('0x1dd'))_0x57f984=_0xeed9fd[_0x5130d5('0x215')](_0x39d499=>!_0x39d499[_0x2e7862(0x1f6)][_0x2e7862(0x1fa)]&&_0x39d499[_0x2e7862('0x1fb')]?.[_0x5130d5(0x223)]!==_0x5130d5(0x1f4)&&_0x39d499[_0x2e7862(0x1fb)]?.['status']!==_0x2e7862('0x1e9')&&_0x39d499[_0x5130d5(0x1e4)]?.[_0x2e7862(0x1fc)]!==_0x2e7862('0x1f8'));else _0x3cb865===_0x2e7862(0x22b)?_0x57f984=_0xeed9fd[_0x2e7862(0x202)](_0x272ef8=>!_0x272ef8[_0x2e7862(0x1f6)][_0x5130d5('0x1e5')]&&(_0x272ef8[_0x5130d5(0x1e4)]?.[_0x2e7862('0x1fc')]===_0x2e7862('0x22b')||_0x272ef8[_0x5130d5(0x1e4)]?.[_0x5130d5(0x223)]===_0x5130d5('0x218')||_0x272ef8['presence']?.[_0x2e7862('0x1fc')]===_0x2e7862('0x1f8'))):_0x57f984=_0xeed9fd[_0x2e7862('0x202')](_0x25e536=>!_0x25e536[_0x2e7862('0x1f6')][_0x5130d5(0x1e5)]);if(!_0x4f3dcf||_0x4f3dcf<=0x0)return _0x57f984;return Array[_0x2e7862(0x1d1)](_0x57f984[_0x5130d5('0x20b')]())[_0x2e7862('0x1cc')](0x0,_0x4f3dcf);}module[_0x1d76d2('0x1d9')]=async function multicast({tokens:_0x4e82e8,members:_0x36c55b,Timeout:_0x55d433,message:_0x5b9499,status:_0x593c30,guildid:_0x275e61}){const _0x169700=_0x623421,_0x271761=_0x1d76d2;if(!_0x4e82e8)throw new TypeError(_0x271761('0x1c7'));if(!Array['isArray'](_0x4e82e8)||!_0x4e82e8[_0x271761('0x1d7')])throw new TypeError(_0x271761('0x205'));if(!_0x55d433)_0x55d433=0x3e8;if(!_0x5b9499)throw new TypeError(_0x271761('0x220'));if(!_0x275e61)throw new TypeError('guildid\x20?.');if(!_0x55d433)throw new TypeError(_0x271761(0x1c8));_0x4e82e8=await check_token(_0x4e82e8);if(_0x4e82e8[_0x271761(0x1d7)]==0x0){throw new RangeError(_0x169700('0x22c'));return;}let _0x1bc14a=await on(_0x4e82e8[0x0],_0x593c30,_0x36c55b,_0x275e61),_0x55b681=Array['from'](_0x1bc14a[_0x271761('0x20b')]()),_0x1dfe56=Math[_0x271761(0x206)](_0x55b681[_0x271761(0x1d7)]/_0x4e82e8[_0x271761('0x1d7')]);for(let _0x2c0d0e=0x0;_0x2c0d0e<_0x4e82e8[_0x169700(0x1ec)];_0x2c0d0e++){let _0x4d66d1=_0x55b681[_0x271761('0x1df')](_0x2c0d0e*_0x1dfe56,(_0x2c0d0e+0x1)*_0x1dfe56);if(_0x4d66d1[_0x271761(0x1d7)]===0x0)continue;let _0xe3b13d=new Run(_0x4e82e8[_0x2c0d0e],_0x4d66d1,_0x55d433,_0x5b9499);_0xe3b13d[_0x169700(0x227)](),await sleep(0x3e8);}};
|
package/package.json
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
{
|
2
|
+
"name": "bot_discord_multicast",
|
3
|
+
"version": "1.0.2",
|
4
|
+
"description": "for runs bots brodcast for all users in server",
|
5
|
+
"main": "index.js",
|
6
|
+
"private": false,
|
7
|
+
"scripts": {
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
9
|
+
},
|
10
|
+
"author": "._.sasa",
|
11
|
+
"license": "ISC",
|
12
|
+
"repository": {
|
13
|
+
"type": "git",
|
14
|
+
"url": "git+https://github.com/mostafaelwazzany/Bot_Multicast_discord.git"
|
15
|
+
},
|
16
|
+
"keywords": [
|
17
|
+
"bot_discord_multicast",
|
18
|
+
"discord multicast",
|
19
|
+
"multicast",
|
20
|
+
"bot multicast",
|
21
|
+
"bot discord multicast"
|
22
|
+
],
|
23
|
+
"bugs": {
|
24
|
+
"url": "https://github.com/mostafaelwazzany/Bot_Multicast_discord/issues"
|
25
|
+
},
|
26
|
+
"homepage": "https://github.com/mostafaelwazzany/Bot_Multicast_discord#readme",
|
27
|
+
"dependencies": {
|
28
|
+
"discord.js": "^13.6.0"
|
29
|
+
}
|
30
|
+
}
|
package/test.js
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
const munticast = require("./index")
|
2
|
+
let tokens = ["token1","token2","token3"]
|
3
|
+
async function run() {
|
4
|
+
await munticast({
|
5
|
+
tokens:tokens,
|
6
|
+
message:"hi ._.sasa",
|
7
|
+
guildid:"1265972021217595474",
|
8
|
+
members:20,
|
9
|
+
Timeout:2000
|
10
|
+
})
|
11
|
+
}
|
12
|
+
|
13
|
+
run()
|
14
|
+
|