GithubHelp home page GithubHelp logo

theracinglion / discord-selfbot Goto Github PK

View Code? Open in Web Editor NEW
140.0 17.0 105.0 75 KB

A javascript discord selfbot that is setup and ready to go in less than 5 min.

License: MIT License

JavaScript 97.78% Batchfile 2.22%
discord bot discord-selfbot mention-logger eris-selfbot avatar-rotator keyword-notifier selfbot

discord-selfbot's Issues

cannot connect...

I was having another issue but actually it worked but now it says that it cant connect to discord and says its disconnected... it was working earlier but now it doesn't. I have a proper config file and stuff. tell me if u need logs

I get the clock error a lot but I'm not sure if I can fix it

I keep on getting this error:

[21:54:07] Bot Error
Error: Your clock is 5554ms behind Discord's server clock. Please check your connection and system time.
    at ClientRequest.req.once (C:\Users\LordKarma88\AppData\Roaming\discordptb\Selfbot\TheRacingLion\node_modules\eris\lib\rest\RequestHandler.js:166:56)
    at ClientRequest.g (events.js:292:16)
    at emitOne (events.js:96:13)
    at ClientRequest.emit (events.js:188:7)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:473:21)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)
    at TLSSocket.socketOnData (_http_client.js:362:20)
    at emitOne (events.js:96:13)
    at TLSSocket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)

The problem is, I'm not too sure how to fix that. I know that computer clocks aren't very precise, and they don't check with the world time very often, and thus it makes sense to me that my system clock is a bit off.
Does anybody have a way to fix it, and if not, is there anyway I can prevent that error from flooding my log?

Error: Request timed out

Does your bot support http proxy? I got this error when trying to use bot:

[10:33:40] Bot Error
Error: Request timed out (>15000ms) on GET /gateway
at ClientRequest. (Discord-SelfBot\node_modules\eris\lib\rest\RequestHandler.js:256:32)
at Object.onceWrapper (events.js:293:19)
at emitNone (events.js:86:13)
at ClientRequest.emit (events.js:188:7)
at TLSSocket.emitTimeout (_http_client.js:679:10)
at Object.onceWrapper (events.js:293:19)
at emitNone (events.js:86:13)
at TLSSocket.emit (events.js:188:7)
at TLSSocket.Socket._onTimeout (net.js:351:8)
at ontimeout (timers.js:386:14)

400 Bad request when using mention stalker

(removed webhook token) I receive this error when being mentioned or have a keyword mentioned

[16:08:10] Promise was rejected but there was no error handler Error
Error: 400 BAD REQUEST on POST `/webhooks/301921879885873153/0b_f5u0

{"embeds": ["0"]}
at IncomingMessage._respStream.on.once (C:\Users\ellis\Documents\Discord\Discord-SelfBot\node_modules\eris\lib\rest\RequestHandler.js:232:39)
at Object.onceWrapper (events.js:314:30)
at emitNone (events.js:110:20)
at IncomingMessage.emit (events.js:207:7)
at endReadableNT (_stream_readable.js:1047:12)
at _combinedTickCallback (internal/process/next_tick.js:102:11)
at process._tickCallback (internal/process/next_tick.js:161:9)

[16:08:10] Promise was rejected but there was no error handler Error
Error: 400 BAD REQUEST on POST /webhooks/301921879885873153/0b7QpnD06MVqc

{"embeds": ["0"]}
at IncomingMessage._respStream.on.once (C:\Users\ellis\Documents\Discord\Discord-SelfBot\node_modules\eris\lib\rest\RequestHandler.js:232:39)
at Object.onceWrapper (events.js:314:30)
at emitNone (events.js:110:20)
at IncomingMessage.emit (events.js:207:7)
at endReadableNT (_stream_readable.js:1047:12)
at _combinedTickCallback (internal/process/next_tick.js:102:11)
at process._tickCallback (internal/process/next_tick.js:161:9)

Embedding Message Question

How can I do a rich text form for embed messages? I want a footer, rich text format, icon of server and multiple lines (fields). Please get to me asap. Thanks!

Apperently ᴏᴡɴᴇʀ and ᴇxᴘʟɪᴄɪᴛCᴏɴᴛᴇɴᴛFɪʟᴛᴇʀ will not work.

If I use msg.channel.guild.owner or msg.channel.guild.explicitContentFilter , it just shows undefined. Everything else like msg.channel.guild.ownerID and msg.channel.guild.verificationLevel works just fine.

Edit: msg.channel.guild.createdTimestamp also doesn't work.
Edit x2: self.user.createdTimestamp also doesn't work.

Edit x3: Just realized that those don't exist in Eris, just discord.js. Not sure what I was thinking there.

Can't seem to get `noPms: true` to work.

As the name suggests, I've been trying to get noPms: true to work for me, but doesn't seem to want to work, if you need my code here it is.

(I assume this is an error on my part since it works with the ban and kick command flawlessly.)

404 Error When Using Prune Command

[18:39:58] Promise was rejected but there was no error handler Error
Error: 404 NOT FOUND on DELETE /channels/247946179650912256/messages/307284761695748096

{"code": 10008, "message": "Unknown Message"}
    at IncomingMessage.resp.once (C:\Users\acehe_000\Desktop\Discord-SelfBot\node_modules\eris\lib\rest\RequestHandler.js:198:39)
    at IncomingMessage.g (events.js:292:16)
    at emitNone (events.js:91:20)
    at IncomingMessage.emit (events.js:185:7)
    at endReadableNT (_stream_readable.js:974:12)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)

I've tried to fix it, but I haven't figured it out. I even did a clean install on my second computer to see if it would fix the problem, however it did not.

Good Bye message logging

2.4 End User Data.
“End User Data” means all data associated with the content within the functionality enabled by the API or SDK, including but not limited to message content, message metadata, voice data and voice metadata. You acknowledge and agree that Discord and its end users, as applicable, retain all worldwide right, title and interest in and to the End User Data. If you have access to End User Data, you shall ensure that your Applications do not collect, use and/or disclose End User Data except (a) as necessary to exercise your rights under this Agreement, (b) as expressly permitted by the End Users, and (c) in accordance with Discord’s Privacy Policy. You shall not sell, license or otherwise commercialize any End User Data. You may not use End User Data to target End Users for marketing or advertising purposes. You may not disclose End User Data to any ad network, data broker or other advertising or monetization related service. You shall permanently delete all End User Data upon Discord’s or the End User’s request and within seven (7) days following the End User’s termination of the End User’s account. You may only retain chat logs as necessary for the operation of your Applications. Discord’s offering of an API or SDK that allows you to reproduce or display End User message content is not an express or implied license to such content from Discord. You must seek permission from End Users.
This means that any bot that logs messages or even stores user IDs now breaks the terms of service, unless it explicitly asks the user it's logging for permission. This outlaws logging bots, bots with features like temp ban, bots which reassign roles when rejoining, etc.
Source: The New TOS

Hey, I just want to know why this isn't working.

I ran the installer after putting my discord # and token, and when I run "run", this shows up

Error: Cannot find module 'eris'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (C:\Users\Hanmin\Desktop\Discord-SelfBot-master\self.js:7:14)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)

Embeds dont have authors

I'm doing -me hello and it turns out as:
screen shot 2017-07-14 at 7 46 02 pm

If I do -me @bob hello it says:
screen shot 2017-07-14 at 7 47 06 pm
(theres nobody called bob, but when I do that with a real tag its the same, but they are tagged)

I don't even know what -me @bob @joe does

Throw Err Module.js:591

ted token
in JSON at position 109
at JSON.parse ()
at Object.Module._extensions..json (module.js:588:27)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object.

Unexpected token } in JSON at position 907

So I had the bot running a while back. But I was logging a word I didn't want, and after failing to find out how to restart the bot with a command, I closed cmd and restarted it.

But now it gives me this error:

module.js:590
    throw err;
    ^

SyntaxError: C:\Users\LordKarma88\AppData\Roaming\discordptb\Selfbot\TheRacingLion\config\config.json: Unexpected token } in JSON at position 907
    at Object.parse (native)
    at Object.Module._extensions..json (module.js:587:27)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Users\LordKarma88\AppData\Roaming\discordptb\Selfbot\TheRacingLion\self.js:15:16)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)

Yes, I am sure the token is right: "token": "MjI1ODEyNDg1whatever",

Also, there isn't any position 907 in config.json. Any idea what's wrong?

HELP!

[email protected] start /home/rick/Discord-SelfBot
node self.js

sh: 1: node: not found

npm ERR! [email protected] start: node self.js
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is most likely a problem with the Discord_Selfbot package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node self.js
npm ERR! You can get their info via:
npm ERR! npm owner ls Discord_Selfbot
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.16.0-4-amd64
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! cwd /home/rick/Discord-SelfBot
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/rick/Discord-SelfBot/npm-debug.log
npm ERR! not ok code 0

Selfbot registers commands from others

Commands like nick sent by non-selfbot users are evaluated with an unhandled Promise exception, basically letting others change our nickname at will if they know the prefix.
I'm guessing the problem might be in the defaultCommandOptions.

Command messages auto deleting, the command line and the message that's posted

Hello again, so I'm using the me command to post custom announcements and it'll post the me command delete the "/me text" then it'll delete the new message that just says "text" with the side border, etc etc after a few seconds. This didn't happen previously in other builds with less going on in the config file.

When "npm start" is run

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info prestart [email protected]
6 info start [email protected]
7 verbose unsafe-perm in lifecycle true
8 info [email protected] Failed to exec start script
9 verbose stack Error: [email protected] start: node self.js
9 verbose stack Exit status 1
9 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:214:16)
9 verbose stack at emitTwo (events.js:87:13)
9 verbose stack at EventEmitter.emit (events.js:172:7)
9 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)
9 verbose stack at emitTwo (events.js:87:13)
9 verbose stack at ChildProcess.emit (events.js:172:7)
9 verbose stack at maybeClose (internal/child_process.js:821:16)
9 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
10 verbose pkgid [email protected]
11 verbose cwd /Users/***********/Downloads/Discord-SelfBot-master
12 error Darwin 16.3.0
13 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
14 error node v4.3.0
15 error npm v2.14.12
16 error code ELIFECYCLE
17 error [email protected] start: node self.js
17 error Exit status 1
18 error Failed at the [email protected] start script 'node self.js'.
18 error This is most likely a problem with the Discord_Selfbot package,
18 error not with npm itself.
18 error Tell the author that this fails on your system:
18 error node self.js
18 error You can get their info via:
18 error npm owner ls Discord_Selfbot
18 error There is likely additional logging output above.
19 verbose exit [ 1, true ]

run.bat error

whenever I try to open run.bat I get a repeated error

Checking Config File...
Config is valid. Starting bot...
Loading 12 command files...
Finished
Unclean WS close: 4004: authentication failed.
Disconnected from discord

Can you please tell me whats happening or what i did wrong

Receiving mobile notifications

I love your selfbot but ever since using it, I havnt been receiving mobile notifications from discord. I believe it has to do with Discord thinking that I'm active and not afk. Is there something I can do to enable mobile notifications?

Commands other than "me" aren't working

So I had some issues with adding my own paste command (lenny face) and the console made a booboo so I did everything from scratch and all was good with defaults until I tried to use the paste and ping commands that only displayed the trigger for the command and didn't replace the text.

suggestion

IK this isn't the right section but I didn't know where to place else.
Is it possible to let the selfbot type >payday every 5 minutes or give updates every 5 minutes.

Paste error

Whenever I try to add my own paste into the config, I get an error for an unexpected string. And it's not even in the new paste I added, it's in a previously existing one.

Eval commands

Alright I see in the commands for eval is me(eval self
me( is my prefix
I do me(eval self and it gives a error in the console that it is longer then 2000 words and I wanted to see what it does. Also I was wondering what other eval commands I can do

[Enhancement] MentionStalker activates upon Role Mention

Perhaps the Mention Stalker should also check if the user is mentioned through a role, or by a global ping (@everyone or @here).

Example code that I use in my customized version of the bot:

function checkForMention(self,msg) {
  if(msg.mentionEveryone) return "@everyone";
  for(var i=0;i<msg.mentions.length;i++) {
    if(msg.mentions[i].id==self.user.id) return "@"+self.user.username+"#"+self.user.discriminator;
  }
  var myRoles = msg.channel.guild.members.find((mem)=>{
    return mem.user.id==self.user.id;
  }).roles;
  
  var mArr = _.intersection(myRoles,msg.roleMentions);
  
  if(mArr.length>0) {
    return "@"+msg.channel.guild.roles.find(role=>{return role.id==mArr[0]}).name;
  }
  
  return false;
}

No idea if it's the best. But it gets the job done for me.

Note that I use this instead of the ~msg.content.indexOf(self.user.id) section, and check it against false, and if it's not false, use the returned value instead of "you" in the notification.

Help!

When i type - streaming Burger
nothin happens ;-;

Not working

oem@1337 ~/Desktop/Discord-SelfBot-master $ sudo node self.js
[sudo] password for oem:
/home/oem/Desktop/Discord-SelfBot-master/self.js:25
let isReady = false
^^^

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:442:10)
at startup (node.js:136:18)
at node.js:966:3

Refusing ID

{
"token": "????????????????????????????????????????????????????????????",
"ownerID": "331011619452878859",
"prefix": "-",
"rotatePlayingGame": true,
"rotatePlayingGameTime" : 150000,
"rotatePlayingGameInStreamingStatus": false,
"rotateAvatarImage": true,
"rotateAvatarImageTime" : 600000,
"defaultStatus": "idle",
"mentionNotificator": {
"inConsole": true,
"inNotificationChannel": true,
"logBlockedUsers": false,
"ignoredServers": ["SERVER ID"]
},
"keywordNotificator": {
"inConsole": true,
"inNotificationChannel": true,
"logBlockedUsers": false,
"caseInsensitive": true,
"ignoredServers": ["SERVER ID"]
},
"eventNotificator": {
"inConsole": true,
"inNotificationChannel": false
},
"notificationChannelID": "Notification channel ID if you set 'inNotificationChannel' to true at least once",
"defaultEmbedColor": "#117ea6",
"deleteCommandMessages": true,
"deleteCommandMessagesTime": 15000
}

results in:

SyntaxError: /Users/Alzter/Desktop/Discord-SelfBot-master/config/games.json: Unexpected token
in JSON at position 91
at JSON.parse ()
at Object.Module._extensions..json (module.js:588:27)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object. (/Users/Alzter/Desktop/Discord-SelfBot-master/self.js:16:15)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node self.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/Alzter/.npm/_logs/2017-07-05T06_10_27_070Z-debug.log

(Each character of the token is replaced with question marks)

Fix this.

Wont start

Everytime I try starting the bot I keep getting this
screenshot_1

Problem when running npm start

I have installed everything, npm i worked well.

I get this issue:
screen shot 2017-07-14 at 3 55 14 pm

Heres part of the config file, hopefully without identifying information.
screen shot 2017-07-14 at 3 57 22 pm

Thanks

Mention logging

I run into this anytime someone mentions me, it doesn't log to a channel

TypeError: Cannot read property 'id' of undefined
    at CommandClient.self.on (/Users/ellistonjames/Documents/bots/Discord-SelfBot/utils/mentionStalker.js:12:88)
    at emitOne (events.js:101:20)
    at CommandClient.emit (events.js:188:7)
    at Shard.wsEvent (/Users/ellistonjames/Documents/bots/Discord-SelfBot/node_modules/eris/lib/gateway/Shard.js:394:33)
    at WebSocket.ws.onmessage (/Users/ellistonjames/Documents/bots/Discord-SelfBot/node_modules/eris/lib/gateway/Shard.js:1425:34)
    at WebSocket.onMessage (/Users/ellistonjames/Documents/bots/Discord-SelfBot/node_modules/ws/lib/WebSocket.js:442:14)
    at emitTwo (events.js:106:13)
    at WebSocket.emit (events.js:191:7)
    at Receiver.ontext (/Users/ellistonjames/Documents/bots/Discord-SelfBot/node_modules/ws/lib/WebSocket.js:841:10)
    at /Users/ellistonjames/Documents/bots/Discord-SelfBot/node_modules/ws/lib/Receiver.js:536:18```

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.