As of writing this...it has been almost an year since the previous update was done. A lot of code of the bot may be outdated as well as is missing features that could make it well like better like buttons and slash commands. A few errors have also been reported so i guess the bot doesn't work as intended anymore... Also, I haven't coded for a while. Hence, I'll be leaving this code here for a while until I either return to coding or just want to do this for no reason at all. I'll be still seeing issues and pull requests fell free to contribute as always. Won't be archiving this just yet as well. I've met up with a lot of people since the start of 2021 and want to spend time with them as well for now. mmm yeah thats all i think ive to say here even if noone's gonna read it.
Thanks for Everything. Happy New Year
ByeBye! ヾ(^ ∇ ^)
This is a simple gen-bot made with discord.js. This works with discordjs v12. It uses a command handler making it is easier to edit parts of the bot. This only uses one package which is discord.js!
Go through the entire bots code before using it. It is very easy to use it. Just read up all the things given. Here are a few things you should keep in mind while going through the code:
.setThumbnail("HERE ADD YOUR LINK")
.git clone https://github.com/badRyuk/GenBot
. You must have git installed for this step .env
FILE. Rename .env.example
TO .env
. PLACE YOUR TOKEN IN THE SPACE PROVIDED WITHOUT ANY QUOTES.config.json
file.coownerId
is optional. If you don't have a co-owner simply leave it blankconfig.json file
prefix
> Fill it with your desired letter/symbol, etc. This is used before command name. Current value is -
however you can change it to anything like ; or ! or g! or pls
serverId
> Certain Commands with myServerOnly value as true
only can be used by members of your server. Add your server id here. Google on how to get the Server ID if you don't know.ownerId
> Certain commands such as the reload command have the ownerOnly value as true
. This restricts the command to the bot owner only. Add your id here. Google to user ids if you don't know.coownerId
> Certain commands such as the reload command have the ownerOnly value as true
. This restricts the command to the bot owners and coowners only. Leave it blank if none or add co owners id. Google to get user id's if you don't know.genchannelOnly
> Certain commands are restricted to certain channels only. These commands have the genChannelOnly value as true
. Google to get channel Id's if you don't know
If this is your first time ever making a discord.js bot I highly recomend you to watch a video on how to set up a discord.js. Also view up the Discord.JS Guide and Discord.js Docs. If you don't know Javascript learn it first. Copying randomly won't help you with anything at all.
Refer to the test.js
file. It explains everything you need to do in setting up.
npm init
. You will have a bunch of questions just fill it or click enter without seeing anything (It won't make any difference. If you want you can change them afterwards in package-lock.json
file.). FInally now install the discord.js package using npm i discord.js
and finally run node index.js
.
If this is your first time ever making a discord.js bot I highly recomend you to watch a video on how to set up a discord.js. Also view up the Discord.JS Guide and Discord.js Docs.
DO NOT OVER KEEP YOUR DISCORD TOKEN OR API KEYS PUBLIC!
If your Discord token is public people may use your bot to do whatever they want. From massbanning members, deleting channels, etc. Your can regenerate your token if you ever think that it has been leaked out in the public. Then change the old token in the .env
file with the new token!
Feel free to contribute to the repoistry by forking the repoistry and creating a pull request! If you have any issues open an issue!
Update 2.0
- Updated On 11th January 2021 Changes/Fixes
- [x] Changed Command Handler
- [x] Added Dynamic Help Command
- [x] Reload Command Added
- [x] Command Usages, Aliases, Cooldowns, Guild Only, Gen Channel Only, Specific Server Only Commands Added
- [x] Added
config.json
file and more info on how to install, run, create commands toREADME.MD
file.- [x] Further bug fixes and minor changes.
- [x] Added
test.js
explaining all features and add mention as secondry prefix.
This update basically adds better features to the bot along with a better command handler. Further smaller updates will be passed subsequent to this. Suggestions for new features will be appreciated! As of now [ 11th of January 2021 or the date this update/commit is pushed ] all the features are working just as expected.
\:EMOJI:
which gives you <EMOJI_NAME:EMOJI_ID>
as the result. The animated emoji id's can be obtained in the same way howeve, the result will be <a:EMOJI_NAME:EMOJI_ID>
If you still find any issues feel fee to open an issue. If you like the repoistry make sure to star the repoistry ⭐
Happy Coding