Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial setup (Windows) #63

Open
driftwoodlk opened this issue Dec 20, 2020 · 3 comments
Open

Initial setup (Windows) #63

driftwoodlk opened this issue Dec 20, 2020 · 3 comments
Labels
documentation Improvements or additions to documentation

Comments

@driftwoodlk
Copy link

I saw the previous issue (#55) on setting up the bot, but still having some trouble.

I installed GitHub, cloned the repo, installed node.js, created an application, created a bot, got the bot credential, set a Windows environment variable of DISCORD_TOKEN = to it (all of this took quite a while to figure out, although not complicated).

So now I can run the code and it logs in to my application, stupidbot1, on my server. Yay. But when I try to add a player, I get told to run !omni setup first. (I don't see that in !omni help) When I try running that, I get permission errors (50013) in /roles and /channels.

I've tried to pick what I think are the right permissions for the application: Role = Bot, View Channels, Send Messages, Read Message History (plus a bunch of others that seem unlikely but possible). Can you specify what permissions are needed? Or is that not the problem?

You also say that a hidden bot-data channel is needed in which the bot can save state. I created a #bot-data channel that is private to myself and stupidbot1, but still get the permissions error. Does it need some special name?

Thanks for any help! BTW, I'm going to use this to run Runners in the Shadows, a mod of Blades in the Dark for the Shadowrun setting.

@TheCraiggers
Copy link
Owner

OK, sorry about this, the needed permissions really should have been documented. It was very much a trial-and-error process to come up with them.

Here's the easiest way.... I think. Take the following URI https://discord.com/oauth2/authorize?client_id=<INSERT_ID_HERE>&permissions=268512272&scope=bot and put your client ID in it. When you go to that link, it should ask you which server you wish to add your bot to (you may have to remove the bot you've currently invited). This will add the bot to your channel with the correct permissions.

(If the above doesn't work, let me know and we can do it the slightly longer way. Permissions in Discord are kinda a pain.)

After this, !omni setup should automatically create the data channel for you and create all the roles / permissions that are needed on the server. You shouldn't have to do any of that manually, and in fact I'd delete that data channel you created just in case it causes confusion. That said, !omni setup was designed to be idempotent.

@driftwoodlk
Copy link
Author

That worked! I didn't add enough Manage permissions on my own.

Is the list of Omni commands in the help complete? Or are there others? Is there a command that rolls a die a number of times equal to a stat?

@TheCraiggers
Copy link
Owner

TheCraiggers commented Dec 20, 2020 via email

@TheCraiggers TheCraiggers added the documentation Improvements or additions to documentation label Feb 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants