Everything is already set up ! You just have to link your discord bot and then do some logic of your own ... ๐
How to use this "framework" ?
First of all you need to create a bot on Discord develloper portal here. Log in and click on Applications
=> New Applicaton
Click on your application, then Bot
. When your in Bot
click on Add Bot
.
Now we need to add the discord bot to your server. Don't worry it's very simple ! ๐
Still in your discord dev interface click on OAuth2
, then in OAuth2 URL Generator section check bot.
Now we're configuring the bot permissions. In Bot permissions check Send messages and Read message history. For now it will be enought for a basic bot usage.
After checked all needed permissions you should see a link in Scopes, copy this link in your favorite browser, it will add your bot in your favorite discord server. Be aware that you need to be administrator of the server ! ๐
For the records, you will find your bot token in the bot section of your app ๐
Ok, now Bease installation ! Of course Bease comes with a beautiful cli, first of all you need to install it globally : npm i edbcli -g
.
Then you need to create your bot environement ! bease new
, And that's all ! Just follow the steps indicated by the cli and you're good to go !
You need to install dependency, so type in your bot directory yarn
or npm i
to be up to date
To launch the bot type in your bot directory yarn start
or npm run start
, everytime you make some changes you will need to launch it again ! And now type !bot help (or any prefix you put in .env) to see it in action !
To create your own command type in your bot directory bease add:command <command-name>
. It will appear in ./commands/content
. Then your need to do the logic yourself in the Command Handler ./modules/CommandHandler.js
, you will find your own method created by the CLI ! ๐
More will comme soon ! Thanks !