HackBot
Zielino | 27-09-2021
HackBot - Discord Bot with Network commands such as Redirect checking
Includes
-
Database
-
Logging
- Debug, Warns, and Errors in pretty style
- Events logging: guildCreate and guildDelete
- Commands logging: Format: [UserName#ID] in `[serverName]`: {prefix}[command]
Examples:
If someone tries to use the ownerOnly command:
2021-10-10 16:08:54 - warn [index.js]: 0h_P10t3r#3743 in `Zielino's Sever`: Tried to use *ownerOnly* command: ;eval
If it is a normal command:
2021-10-10 16:14:33 - warn [index.js]: Zielino#7342 in `Zielino's Sever`: ;redirect
Requirements
- Node.js v16.11.0 or higher (Node.js v16.11.x should work as well)
- Yarn v1.22.15 or higher (Yarn v1.22.x should work as well)
Installing & running
- At first you need to clone the repo. To do this open your terminal/cmd and use this command.
$ git clone https://github.com/Zielin0/HackBot.git
- Install all required dependencies.
$ yarn
- Edit config.json (in root directory).
{
"name": "HackBot",
"token": "YOUR_TOKEN",
"prefix": ";",
"ownerId": "YOUR_ID"
}
-
Add db.sqlite file to data/ folder in root directory
-
Run the bot.
$ yarn start
Issues
If you encounter any issues, please open an ISSUE.
No known issues at the moment.
Commands table
Name | Category | Usage | Examples |
---|---|---|---|
Eval | Owner | ;eval [code ] |
;eval console.log('Hello, HackBot!') |
GuildBan | Owner | ;guildban [guildId ] |
;guildban 694865553835163648 |
Invite | Owner | ;invite [guildId ] |
;invite 694865553835163648 |
LeaveGuild | Owner | ;leaveguild [guildId ] |
;leaveguild 694865553835163648 |
Neofetch | Owner | ;neofetch | ;neofetch |
Servers | Owner | ;servers | ;servers |
Shutdown | Owner | ;shutdown | ;shutdown |
UnGuildBan | Owner | ;unguildban [guildId ] |
;unguildban 694865553835163648 |
Whois | Hack | ;whois [domain ] |
;whois zielinus.gq |
Redirect | Hack | ;redirect [url ] |
;redirect https://dc.zielinus.gq |
PingIp | Hack | ;pingip [ip ] |
;pingip 8.8.8.8 |
GenBotInvite | Hack | ;genbotinvite [botId ] |
;genbotinvite 886585147573555210 |
License
This project is under the MIT license.
TODO
-
Logging[27-09-2021] -
Emojis -
Implementing ownerOnly property for commands[28-09-2021] -
Implementing Database (better-sqlite3)[30-09-2021] -
Owne Commands[12-10-2021]-
Eval[28-09-2021] -
Shutdown[28-09-2021] -
Servers[28-09-2021] -
Invite[28-09-2021] -
LeaveGuild[28-09-2021] -
ServerBan[29-09-2021] -
Neofetch[29-09-2021]
-
-
Hack Commands[09-10-2021]-
Whois command[09-10-2021] -
Redirect command[09-10-2021] -
Ping command[09-10-2021]
-
Contributors
Zielin0 |
Zuzia16 |
0h_P10t3r |
Heros1011 |
Others
Feel free to star and fork the repo.
You can also join my discord server here.