Advertisement
Guest User

Untitled

a guest
Mar 20th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.24 KB | None | 0 0
  1. const botSettings = require("./botsettings.json");
  2. const Discord = require("discord.js");
  3. const prefix = botSettings.prefix;
  4. function getRandomInt(max) {
  5. return Math.floor(Math.random() * Math.floor(max));
  6. }
  7. const bot = new Discord.Client({ disableEveryone: true });
  8. bot.on("ready", async () => {
  9. console.log(`Bot is on! ${bot.user.username}`);
  10.  
  11. bot.generateInvite(["ADMINISTRATOR"]).then(link => {
  12. console.log(link);
  13. }).catch(err => {
  14. console.log(err.stack);
  15. });
  16. await bot.generateInvite(["ADMINISTRATOR"]);
  17. bot.user.setActivity('Legit Hacking');
  18.  
  19. });
  20.  
  21. var fs = require("fs"),
  22. Steam = require("steam"),
  23. SteamID = require("steamid"),
  24. IntervalIntArray = {},
  25. readlineSync = require("readline-sync"),
  26. Protos = require("./protos/protos.js"),
  27. CountReports = 0,
  28. Long = require("long"),
  29. SteamClients = {},
  30. SteamUsers = {},
  31. SteamGCs = {},
  32. SteamFriends = {},
  33. process = require("process"),
  34. steamID;
  35. ClientHello = 4006,
  36. ClientWelcome = 4004;
  37. var accounts = [];
  38.  
  39. var arrayAccountsTxt = fs.readFileSync("accounts.txt").toString().split("\n");
  40. for (i in arrayAccountsTxt) {
  41. var accInfo = arrayAccountsTxt[i].toString().trim().split(":");
  42. var username = accInfo[0];
  43. var password = accInfo[1];
  44. accounts[i] = [];
  45. accounts[i].push({
  46. username: username,
  47. password: password
  48. });
  49. }
  50. function processSteamReport(element, indexElement, array) {
  51. if (element != "") {
  52. var account = element.toString().trim().split(":");
  53. var account_name = account[0];
  54. var password = account[1];
  55. SteamClients[indexElement] = new Steam.SteamClient();
  56. SteamUsers[indexElement] = new Steam.SteamUser(SteamClients[indexElement]);
  57. SteamGCs[indexElement] = new Steam.SteamGameCoordinator(SteamClients[indexElement], 730);
  58. SteamFriends[indexElement] = new Steam.SteamFriends(SteamClients[indexElement]);
  59.  
  60. SteamClients[indexElement].connect();
  61.  
  62. SteamClients[indexElement].on("connected", function () {
  63. SteamUsers[indexElement].logOn({
  64. account_name: account_name,
  65. password: password
  66. });
  67. });
  68.  
  69. SteamClients[indexElement].on("logOnResponse", function (res) {
  70. if (res.eresult !== Steam.EResult.OK) {
  71. if (res.eresult == Steam.EResult.ServiceUnavailable) {
  72. console.log("\n[STEAM CLIENT - " + account_name + "] Login failed - STEAM IS DOWN!");
  73. console.log(res);
  74. SteamClients[indexElement].disconnect();
  75. process.exit();
  76. } else {
  77. console.log("\n[STEAM CLIENT - " + account_name + "] Login failed!");
  78. console.log(res);
  79. SteamClients[indexElement].disconnect();
  80. SteamClients.splice(indexElement, 1);
  81. SteamFriends.splice(indexElement, 1);
  82. SteamGCs.splice(indexElement, 1);
  83. SteamUsers.splice(indexElement, 1);
  84. IntervalIntArray.splice(indexElement, 1);
  85. }
  86. } else {
  87. SteamFriends[indexElement].setPersonaState(Steam.EPersonaState.Offline);
  88.  
  89. SteamUsers[indexElement].gamesPlayed({
  90. games_played: [{
  91. game_id: 730
  92. }]
  93. });
  94.  
  95. if (SteamGCs[indexElement]) {
  96. IntervalIntArray[indexElement] = setInterval(function () {
  97. SteamGCs[indexElement].send({
  98. msg: ClientHello,
  99. proto: {}
  100. }, new Protos.CMsgClientHello({}).toBuffer());
  101. }, 2000);
  102. } else {
  103. SteamClients[indexElement].disconnect();
  104. SteamClients.splice(indexElement, 1);
  105. SteamFriends.splice(indexElement, 1);
  106. SteamGCs.splice(indexElement, 1);
  107. SteamUsers.splice(indexElement, 1);
  108. IntervalIntArray.splice(indexElement, 1);
  109. }
  110. }
  111. });
  112.  
  113. SteamClients[indexElement].on("error", function (err) {
  114. console.log("[STEAM CLIENT - " + account_name + "] Account is probably ingame! Logged out!");
  115. SteamClients[indexElement].disconnect();
  116. SteamClients.splice(indexElement, 1);
  117. SteamFriends.splice(indexElement, 1);
  118. SteamGCs.splice(indexElement, 1);
  119. SteamUsers.splice(indexElement, 1);
  120. IntervalIntArray.splice(indexElement, 1);
  121. });
  122.  
  123. SteamGCs[indexElement].on("message", function (header, buffer, callback) {
  124. switch (header.msg) {
  125. case ClientWelcome:
  126. clearInterval(IntervalIntArray[indexElement]);
  127. sendReport(SteamGCs[indexElement], SteamClients[indexElement], account_name, steamID);
  128. break;
  129. case Protos.ECsgoGCMsg.k_EMsgGCCStrike15_v2_MatchmakingGC2ClientHello:
  130. break;
  131. case Protos.ECsgoGCMsg.k_EMsgGCCStrike15_v2_ClientReportResponse:
  132. CountReports++;
  133. console.log("[GC - " + account_name + "] (" + CountReports + ") Report with confirmation ID: " + Protos.CMsgGCCStrike15_v2_ClientReportResponse.decode(buffer).confirmationId.toString() + " sent!");
  134. SteamClients[indexElement].disconnect();
  135. SteamClients.splice(indexElement, 1);
  136. SteamFriends.splice(indexElement, 1);
  137. SteamGCs.splice(indexElement, 1);
  138. SteamUsers.splice(indexElement, 1);
  139. IntervalIntArray.splice(indexElement, 1);
  140. break;
  141. default:
  142. console.log(header);
  143. break;
  144. }
  145. });
  146. }
  147. }
  148.  
  149. function sendReport(GC, Client, account_name) {
  150. var account_id = new SteamID(steamID).accountid;
  151. GC.send({
  152. msg: Protos.ECsgoGCMsg.k_EMsgGCCStrike15_v2_ClientReportPlayer,
  153. proto: {}
  154. }, new Protos.CMsgGCCStrike15_v2_ClientReportPlayer({
  155. accountId: account_id,
  156. matchId: 8,
  157. rptAimbot: 2,
  158. rptWallhack: 3,
  159. rptSpeedhack: 4,
  160. rptTeamharm: 5,
  161. rptTextabuse: 6,
  162. rptVoiceabuse: 7
  163. }).toBuffer());
  164. }
  165. bot.on('message', async message => {
  166. if (message.author.bot) return;
  167. if (message.channel.type === "dm") return;
  168.  
  169. let messageArray = message.content.split(" ");
  170. let command = messageArray[0];
  171. let var1 = messageArray[1];
  172. let args = messageArray.slice(1);
  173. if (command === `${prefix}ping`) {
  174. var kapi = getRandomInt(4);
  175. if (kapi === 0)
  176. message.channel.send('fock');
  177. if (kapi === 1)
  178. message.channel.send('NO');
  179. if (kapi === 2)
  180. message.channel.send('No, this is Patrik!');
  181. if (kapi === 3)
  182. message.channel.send('Nobody here');
  183.  
  184. }
  185. if (command === `OwO` || command === `owo`) {
  186. message.channel.send('**Kill it with fire**');
  187. }
  188. if (command === `${prefix}resolver`)
  189. {
  190. var chance = getRandomInt(10001);
  191. console.log(`Someone used the resolver command, got the number ${chance}`)
  192. if (chance === 0)
  193. message.channel.send("Don't tell anyone, but it's https://pastebin.com/02nB4Fie");
  194. else message.channel.send("void Resolver() { //removed for antipasta}");
  195. }
  196. if (command == `${prefix}8ball`)
  197. {
  198. var blob = getRandomInt(2);
  199. if (blob === 0)
  200. {
  201. console.log("Someone used 8ball, got a No response.");
  202. var joy = getRandomInt(3);
  203. if (joy === 0)
  204. message.channel.send('Nope');
  205. if (joy === 1)
  206. message.channel.send('Not in a million years!');
  207. if (joy === 2)
  208. message.channel.send('I hate to break it to you...but NO!');
  209. }
  210. if (blob === 1)
  211. {
  212. console.log("Someone used 8ball, got a Yes response.");
  213. var sob = getRandomInt(3);
  214. if (sob === 0)
  215. message.channel.send('Hell yea!');
  216. if (sob === 1)
  217. message.channel.send('Duh!');
  218. if (sob === 2)
  219. message.channel.send('Ye m8 ;)');
  220. }
  221. }
  222. if (command === `${prefix}roll`)
  223. {
  224. var roll = getRandomInt(6)
  225. if (roll === 0)
  226. message.channel.send('Rolled 1..bad luck m8');
  227. if (roll === 1)
  228. message.channel.send('Rolled 2..nothing good here');
  229. if (roll === 2)
  230. message.channel.send('Rolled 3..better luck next time');
  231. if (roll === 3)
  232. message.channel.send('Rolled 4..hittin p? almost');
  233. if (roll === 4)
  234. message.channel.send('Rolled 5..lucky af');
  235. if (roll === 5)
  236. message.channel.send('Rolled 6..p100');
  237.  
  238. }
  239. if (command === `${prefix}info`) {
  240. var thot = getRandomInt(6)
  241. let p100embed = new Discord.RichEmbed()
  242. .setAuthor(message.author.username)
  243. if(thot === 0)
  244. p100embed.setDescription(`"The problem with quotes from the internet is that they are often not true." - Abraham Lincoln`);
  245. if (thot === 1)
  246. p100embed.setDescription(`"Bitches ain't shit but hoes and tricks." - Gandhi`);
  247. if (thot === 2)
  248. p100embed.setDescription(`"Idk, info machine :b:roke." - Kapi Wulon`);
  249. if (thot === 3)
  250. p100embed.setDescription(`"Two things are infinite; the Universe and the Winrar 40 day trial, I'm not sure about the Universe." - Albert Einstein`);
  251. if (thot === 4)
  252. p100embed.setDescription(`"Behind every great man there stands a great woman. Behind every great woman is a great behind." - Bill Clinton `);
  253. if (thot === 5)
  254. p100embed.setDescription(`"I don't drink water because this is where fish reproduce. Miss me with that gay shit niBBa" - Steve Jobs`);
  255.  
  256.  
  257. console.log("Someone used the info command");
  258. message.channel.send(p100embed);
  259.  
  260. }
  261. if (command === `${prefix}flame`)
  262. {
  263. var oof = getRandomInt(10)
  264. if (oof === 0)
  265. message.channel.send('Bark more slum dogs');
  266. if (oof === 1)
  267. message.channel.send('Mad?');
  268. if (oof === 2)
  269. message.channel.send('1');
  270. if (oof === 3)
  271. message.channel.send('Nice baim u sell?');
  272. if (oof === 4)
  273. message.channel.send('Hit head due to spread?');
  274. if (oof === 5)
  275. message.channel.send('Raging irl');
  276. if (oof === 6)
  277. message.channel.send('Nice afghanistan.cc');
  278. if (oof === 7)
  279. message.channel.send('Pelvis fix p100?');
  280. if (oof === 8)
  281. message.channel.send('**NO U**');
  282. if (oof === 9)
  283. message.channel.send('Are you using Cash Me Outside? xdd');
  284.  
  285. }
  286. if (command === `oof`)
  287. message.channel.send("Get oof`d");
  288. if (command === `nhu`)
  289. message.channel.send("Ba dha!");
  290. if (command === `${prefix}kapi`)
  291. {
  292. console.log("Someone used the kapi command rawr xD");
  293. message.channel.send(`<:Bitcoin:419149329866162206> + <:kapithinker:419080441165905940> = :spy: :money_with_wings: quick maths`);
  294.  
  295. }
  296. if (command === `${prefix}dab`)
  297. {
  298. console.log("Someone actually used the dab command lol.");
  299. message.channel.send("The Dab or Dabbing, not to be confused with the recreational use of hash oil that goes by the same name, is a style of hip hop dance that involves dropping one’s head with one arm raised and resting the face inside the elbow of the other arm, which essentially resembles the gesture of a polite attempt at muffling a loud sneeze. Originating from the hip hop scene in Atlanta, Georgia, the dance became mainstream popular after numerous professional football players adopted it as a celebratory gesture during games in August 2015.While “The Dab” trend is generally believed to have originated from Atlanta, Georgia’s hip- hop scene sometime during the first half of 2015[1], the question of who invented the dance move remains in dispute among several Atlanta- based hip hop artists and collectives, many of whom are affiliated with the record label Quality Control Music, including Migos, OG Maco, Skippa Da Flippa and Rich The Kid.According to Migos’ member Quavo, the dance has been gaining traction in Atlanta’s local hip- hop scene since as early as 2013, although it didn’t reach the tipping point on Internet hip hop communities until the local rappers began releasing songs and music videos that either feature the dance or lyrical references to The Dab during the summer of 2015, most notably Skippa Da Flippa’s How Fast Can You Count It");
  300. }
  301. if (command === `${prefix}rzbd`)
  302. message.channel.send(":sob:<:angery:419080639623593985>");
  303.  
  304. if (command === `thu`)
  305. message.channel.send("Ehu?! Nhu!");
  306. if (command === "bleizi" || command === "Bleizi")
  307. {
  308. if (var1 === "rau" || var1 === "rhau" || var1 === "Rau" || var1 === "Rhau")
  309. {
  310. console.log("Somebody called Blazy bad!");
  311. message.channel.send(":frowning:");
  312. }
  313. if (var1 === "bun" || var1 === "Bun")
  314. {
  315. console.log("Somebody called Blazy good!");
  316. message.channel.send(":slight_smile: ");
  317. }
  318. if (var1 === "cyka" || var1 === "Cyka") {
  319. console.log("Somebody called Blazy cyka!");
  320. message.channel.send(`${message.author.username} cyka`);
  321. }
  322. }
  323. if (command === "blob")
  324. {
  325. if (var1 === "joy")
  326. {
  327. message.channel.send("<:blobjoy:421755071328681995>");
  328. }
  329. }
  330. if (message.content == "ma-ta" || message.content == "ma ta" || message.content == "mata")
  331. message.channel.send("m-ata*");
  332. if (message.content == "Iti iau vurul la futut")
  333. message.channel.send("**Mai bine te dai batut**");
  334. if (message.content == "Mai bine te dai batut")
  335. message.channel.send("**Ling in pizda si dau in gura**");
  336. if (message.content == "Ling in pizda si dau in gura")
  337. message.channel.send("**Si imi bag legale-n pula**");
  338. if (message.content == "Si imi bag legale-n pula")
  339. message.channel.send("**Mananc Chamo pe paine**");
  340.  
  341. if (message.content === `rofl`)
  342. {
  343. console.log("Someone is a kurka proasta");
  344. message.channel.send(":rofl: esti thu");
  345. }
  346. if (command === `${prefix}rand`)
  347. {
  348. var cunt = getRandomInt(var1);
  349. message.channel.send(`${cunt}`);
  350. }
  351. if (command === `${prefix}help`)
  352. message.channel.send("https://pastebin.com/Quku8wmE");
  353. if (message.content == "Rawr" || message.content == "rawr")
  354. message.channel.send("ecks dee");
  355. if (message.content == "your mom gay" || message.content == "you're mom gay" || message.content == "ur mom gay")
  356. message.channel.send("no u");
  357. if (command === `${prefix}reportbot`)
  358. {
  359. steamID = var1;
  360. arrayAccountsTxt.forEach(processSteamReport);
  361. }
  362. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement