zerinho6bot-zz / Zerinho6-Bot

Pretty fast and lite Discord bot made in JavaScript using Discord.js
MIT License
5 stars 2 forks source link

Better available command system #10

Closed zerinho6 closed 5 years ago

zerinho6 commented 5 years ago

The idea is to remake literally everything about how the available commands are displayed, right now we don't have any way to make a specific command that works on a specific guild that everyone that uses the bot can't see. ~Only if we make it on message.js but that's NOT GOOD.~

The ideia is to create a JSON on local_storage, it would be like this:

{
    "ALL": ["tictactoe", "help"],
    "298518634765221890": ["move"],
    "134292889177030657": ["eval"],
    "OWNER": ["eval"]
}

ALL being commands available for everyone, the second is a Guild ID meaning commands available only for that Guild, the third is a User ID meaning commanda available only for that User(Or bot Owner) the OWNER being commands available only for the bot Owner.

9 Will help this a lot.