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

Help Noob please! Bot Setup steps for RPG #152

Open
Gluth60 opened this issue Oct 15, 2022 · 2 comments
Open

Help Noob please! Bot Setup steps for RPG #152

Gluth60 opened this issue Oct 15, 2022 · 2 comments

Comments

@Gluth60
Copy link

Gluth60 commented Oct 15, 2022

Hello,

I'm a beginner on Discord, and I don't understand at all how to configure the bot.
I would like to be able to put text for each 1D100 result, in order to make an RP random encounter generator.

The problem is that I understand absolutely nothing about bots, and even less about coding. So I don't know how to do it. The "readMe" and the explanations are incomprehensible to me.

What are the steps to get the DiceParser Bot to allow something like simply "!1D100=74=You encounter a dragon"

@obiwankennedy
Copy link
Member

since one month, the bot no longer use the ! syntax. It is using what discord called: "Slash command" see: Run command section on this page https://rolisteam.org/discord.html you have a gif which shows how to roll a simple dice.

Basically, if you type / discord should show a panel allowing you to select the command /r for diceparser to be rolled. Again see the gif on the web page to see how it how look.
If it does not work, it means you have set bad permission to the bot.
The first to check is the permission in server settings > integration > app and bots > diceparser
If it still does not work after what you must check permession on channel and server levels.
It is not my role to fix your permission issue into your server.

You want to make a random encounter generator with dice parser it is easy:

/r command: 1L[dragon,lion,crab,turtle,crane,unicorn]
it can be improve to that:
/r command: 1L[dragon,lion,crab,turtle,crane,unicorn];"You encounter a $1"

then you can create a macro:
/macro add encGen 1L[dragon,lion,crab,turtle,crane,unicorn];"You encounter a $1" False

In this example: 
-encGen is the key.
-1L[dragon,lion,crab,turtle,crane,unicorn];"You encounter a $1" is the value.

After setting the macro, instead of typing the whole command, you will just have to type: encGen to roll in the encounter command. Much easier/shorter to write.
I set encGen but you can change to anything, just don't set one letter, it can conflict with DiceParser operator and stuff. use a key that may never occur in other commands.

Bad example: if you define the macro on d, when you type for example the simple command "1d100", the command will change to 11L[dragon,lion,crab,turtle,crane,unicorn];"You encounter a $1"100. The letter d has been change to the value.
And it makes impossible to roll a simple dice. So use a multi letter key to trigger your command and you will be fine.

@Gluth60
Copy link
Author

Gluth60 commented Oct 16, 2022

Thank you very much for your clear and detailed explanations! I didn't expect such a quick response, and thank you very much for that!

Indeed, with all these details, I was able to configure the bot easily, and I am very grateful to you. Thank you so much !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants