Discord’s update included blinding userBots/selfBots; they stopped them from executing certain functions/calls such as fetchAllMembers, .fetchMembers(), .fetchMember(), .on(“guildMemberAdd”) (onJoin detection), etc et
A Simple Anti-Spoofing Discord bot for PokemonGo
EXAMPLE:
Alerts are triggered (with image) when
- someone joins your server while in a spoofing server, or
- someone joins a spoofing server while being in your server.
-I am NO a ["javascript","discord.js","node.js"] expert so I bet there are people out there that can make something better.
See it in action at my Discord server: https://discord.gg/fJvqFGP
Or simply click here: https://github.com/JennerPalacios/SimpleSpoofNinja/wiki
-
Node.js (https://nodejs.org/en/download/
ver 8.4+
) -
Discord.js (
npm install discord.js
« should bever 11.2+
) -
File-System (
npm install fs
) -
SQLite (
npm install sqlite
) -
Request (
npm install request
) -
A Discord dummy account
-
A dedicated Discord channel in your server (IE: #modlog/#mod-log/#spoofers/#noobs)
-
A Discord webhook url, for the channel above
-
User permisions to read messages, for the dummy account, to the channel above.
-
Moderator Bot Token, don't have one, create one: https://discordapp.com/developers/applications/me
-
And assign bot access to your server with Moderation rights (kick, ban at least): https://finitereality.github.io/permissions/?v=0
-
MAKE SURE YOU MEET THE REQUIREMENTS ABOVE
-
Change IP-address (using proxy or vpn) in order to:
- Log into your dummy account, and set your status/visibility to: INVISIBLE
- Join all the spoofing servers using the invite codes in
servers.json
- most spoofing servers will have your IP banned already, they don't like mappers, but they like to scrape mapper's data - and if you try to join their server you will be wasting the new dummy account and will need another
- if any of the code say "INVITE EXPIRED" you might be banned already - your proxy or ipaddress didnt work
- EDITED PRIVATE MESSAGE ME HERE OR DISCORD FOR INVITE CODES, IT APPEARS SPOOFINGSERVER-OWNERS ARE DELETING THE INVITE CODES AND KICK/BANNING PEOPLE USING THEM.
- GET the Dummy Account's Token, which will be required for the script to run (check users
onJoin
andcommands
)- This is not a UserBot nor DiscordApp; this is an actual discord [
dummy/alternate
] account - specifically created and used by this script; DiscordApps, even when UserBot (akaApp Bot User
) is enabled it DOES NOT work, as they have to independently invited by the admins at each spoofing server - in other words: impossible to use. - HOW TO GET TOKEN?:
- Using your browser or discord, while logged into the dummy account, do the shortcut key combination:
[
CTRL
]+[SHIFT
]+[I
] - this should open Developer's Console Application and follow screenshot below in order to get the Token:
- This is not a UserBot nor DiscordApp; this is an actual discord [
-
Logout of the dummy account
-
Go back to your regular connection or IP-address
-
Modify
config.json
-
LAUNCH THE SCRIPT
- Using command prompt or bash:
node spoofninja.js
- The dummy account will not get banned as long as you DO NOT log into it using Discord app or browser
- If you close that window, the bot connection will be terminated
- Optional: you can install PM2 in order to have it running in the background (instructions below)
- Using command prompt or bash:
-
!check <@mention/member_id>
- use a@mention
ormember_id
, ie:!check @JennerPalacios
!check 237597448032354304
-
!check server
- to check entire server!- all registered users; active, invisible, etc
-
!check wlRoles
- to check roles being WhiteListed!- the bot will ignore people with these roles
-
!check wlMembers
- to check members being WhiteListed!- the bot will ignore people in this list
-
!addMember/!delMember <@mention/member_id>
- to add/delete member to WhiteList- modify your member's whitelist
-
!addRole/!delRole <roleName>
- to check entire server!- modify your role's whitelist
-
!onSpoofer <action>
- to toggle actions once spoofer is found!- available options: nothing, warning, kick, ban, instaKick, instaBan
-
!bug
- to report a bug or issue... ie:!bug not reading my messages
-
!feedback
- to offer feedback, comments, concerns, etc... ie:feedback not bad you noOb, but you can do better
-
!help
- to get the list of available commands
PM2 allows you to run scripts in the background, you can access PM2 from anywhere (any folder, using cmd
prompt),
but for the first launch, the command needs to be run from the folder where the files are located.
npm install pm2 -g
pm2 start spoofninja.js
pm2 log
-If you would like to modify the file and keep it up-to-date while it's running - instead of stopping the bot, and restarting it again...
» you can start/restart a process/script using "--watch
"
pm2 start spoofninja.js --watch
pm2 list
(display a list of running processes)
pm2 stop <NAME/ID>
(stops the process)
pm2 kill
(stops pm2)