banhammerbanhammerbanhammerbanhammerbanhammer
Clone the repository with git clone https://github.com/pollovolante/BanFromDiscord
or download and extract the zip file.
Note: You need NodeJS installed on your system.
Install dependencies by running npm i
in your terminal.
You first need to create a Discord bot and then copy the bot token. Do so by following this guide here.
Duplicate .env.example
and rename it as .env
. Not .env.txt
, just .env
.
Now put the bot token into .env
.
If you want you can also change the bot prefix in the same file.
Replace ip
with your backend server's IP address on line 17 of BanFromDiscord.lua
.
Then create a webhook into a log channel to receive info from the Roblox server and copy the webhook URL.
Now paste the webhook URL at line 16 of BanFromDiscord.lua
.
Finally, select everything and paste it into a script inside ServerScriptService.
Now you only have to start up the backend server and Discord bot.
Run npm start
in your terminal and that's it!
Time to destroy players from Discord >:D
Actual duration | Passed argument |
---|---|
30 minutes | 30m |
2 hours | 2h |
10 days | 10d |
3 weeks | 3w |
§temp
- Temporary Ban
Usage: §temp robloxUsername banDuration reason
Example 2 day ban: §temp polloarrosto01 2d using exploits
§gameban
- Permanent Ban
Usage: §gameban robloxUsername reason
Example permanent ban: §gameban polloarrosto01 exploiting noob
§unban
- Unban
Usage: §unban robloxUsername reason
Example unban: §unban polloarrosto01 because yes