Closed miki1513 closed 1 year ago
This feature already exists, it works like this:
const client = new Client("[!] TestBot", "!", {
apikey: "api key here"
});
You can get an apikey from ctrlz. One problem though: it hasn't been implemented in the msgroom server. We have no idea how this stuff would even work and what the difference would be between using an apikey and not using one. Ctrlz still has to figure this out and probably isn't going to anytime soon.
You might also want to look into code formatting in markdown 😃
Also, if you're only using one prefix, you can turn [ "!" ]
into "!"
.
Oh, ok
You should add bot API keys. Example: import Client from "msgroom";
const client = new Client("TestBot", "APIKey", [ "!" ]); await client.connect();