14 Commits

Author SHA1 Message Date
Guz
1bb4cc09d2 Merge pull request #2 from ProjectLored/PerGuild-Commands
Per guild commands
2021-09-04 12:25:54 -03:00
Guz
a92b7409ac Created the invite command.
Probably it will be helpful with the per-guild system, being easier to add the bot and know if the commands are registered.
2021-09-01 14:00:54 -03:00
Guz
4944eeba1d Added the command type system.
Created the command type `per-guild` these commands are registered when the bot enters a new guild, different of the global type, they can have permissions edited (the permissions system need to be developed yet).

`guild` commands will be registered just in the development guild (probably the purpose of them need to be rethought).

The reload command became adapted to be compatible with the command type system. When a command is reloaded, it's on all other guilds.
2021-09-01 13:59:02 -03:00
Guz
1ac159ebd7 Useful packages
Installed the dotenv, chalk, and nodemon packages to the bot for a better development process.

Console messages now have colors, prefixes, and text formatting, to able them requires the console.js file, it has all the messages formatted with the chalk package.

Also moved the README.md and LICENSE to the .github folder.
2021-08-27 13:28:12 -03:00
Guz
f6d253ec6d Merge pull request #1 from ProjectLored/Command-handling
Command handling
2021-08-26 18:08:32 -03:00
Guz
ce2e244b70 Little aditions
Added optional propreties to commands.

Commands with the proprety `folder: 'dev'` can't be reloaded via the reload command.

Now the 'interactionCreate' event log the time of executing of the command.
2021-08-26 17:58:38 -03:00
Guz
671052f1c1 Added command executing system.
Rebuild, again, the command handling system, now to support the event handling.

Also added more organized console logs.
2021-08-26 16:59:00 -03:00
Gustavo
01c884d97b Readded guild commands permissions.
Added the guild commands permissions registration to the new guild commands handling.
2021-08-17 13:36:02 -03:00
Gustavo
deca5e8d31 Event handling
Added the event handling from the discord.js guide to a more organized and dynamic bot.
2021-08-16 21:05:23 -03:00
Gustavo
e0afd91470 Rebuilt the main command registering
Rebuilt the last command registering to be more consistent with the discord.js guide's system.
2021-08-16 20:32:30 -03:00
Guz
05c154c5cd Update README.md 2021-08-16 15:02:23 -03:00
Guz
6c5c27d939 Update README.md 2021-08-08 18:30:57 -03:00
Guz
bc8c288c29 Added README.md 2021-08-08 16:40:18 -03:00
Gustavo
55b68944dd Initial commit 2021-08-08 09:49:22 -03:00