OptiBOT
Just a discord.js v13 bot for my discord server.
- if you plan to use this bot for your server, dont. This i made this bot just for learning js
💀
Setup
-
go to
/Structures/
fill theconfig.json.example
and rename it to config.json -
go to
/Events/Member
inguildMemberAdd.js
at line 13 - 14 edit this:
id: "", <--- put channel id for the bot to send a message whenever a member joins
token: "" <---- put webhook link for the bot to send the message
- for the
guildMemberRemove.js
at line 13 -14 edit:
id: "", // <--- put channel id for the bot to send a message whenever a member leaves
token: "" // <---- put webhook link for the bot to send the message
- go to
/Events/Message/
and editmessageCreate.js
the webhook url so the bot can send a message whenever it recives a dm. (with the dm content)
Commands:
-
embed: sends a custom embed (/embed help // /embed generate ) Perms: admin
-
emitt: emitts the guildMemberAdd / guildMemberRemove event (/emitt ) Perms: admin
-
8ball: answers all questions (/8ball ) Perms: none
-
image: image manipulation command (/image <@target> ) Perms: none
-
status: displays status of the bot and database connection (/status) Perms: none
-
giveaway: complete giveaway system (/giveaway )
Usage
Install dependencies
- open a command line in the
optibot
folder and type:npm i
Start the bot
- open a command line in the
optibot
folder and type:node main.js
To-do
-
/help command
-
moderation commands
-
xp system