NanderTGA / msgroom-orm

A MsgRoom client.
https://nandertga.github.io/msgroom-orm/
MIT License
4 stars 0 forks source link

Adding API keys #90

Closed miki1513 closed 1 year ago

miki1513 commented 1 year ago

You should add bot API keys. Example: import Client from "msgroom";

const client = new Client("TestBot", "APIKey", [ "!" ]); await client.connect();

NanderTGA commented 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 😃

NanderTGA commented 1 year ago

Also, if you're only using one prefix, you can turn [ "!" ] into "!".

miki1513 commented 1 year ago

Oh, ok