Code Monkey home page Code Monkey logo

Comments (2)

obiwankennedy avatar obiwankennedy commented on July 3, 2024

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.

from diceparser.

Gluth60 avatar Gluth60 commented on July 3, 2024

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 !

from diceparser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.