Can we have a random number generator?

@OtherMichael, the d6 dice reads: 5

@discbot RoLl d17

@OtherMichael, the d17 dice reads: 16

Excellent, I was trying to see if it had any obvious bugs :slight_smile:

That would be a good thing to add into the unit-tests.

I will have to admit my non-knowledge of how to do this for coffeescript.

Extending the script to take a number of dice to roll prior to the “d” should not be hard.

Not something I can jump into during the day.

And since there’s a boxed-set of Game of Thrones s4 at home, and it has to be returned to the library TOMORROW (or face insane fines on a 3-day loan of a boxed-set) my wife will probably not take kindly to me coding tonight.

Looking forward to looking at this some more, though.

@gwwar - where are you running this bot? Heroku?

And did you do a local Discourse install for integration testing?

1 Like

Discbot is running on a x1 dyno on Heroku, and yes I was testing against a local instance of Discourse.

I’ll write a help command tonight. The bot is unfinished, I still have a a lot of cleanup to do including better test coverage. (I was rushing it a bit yesterday).

If people are interested in writing more scripts I’ll focus on creating a test harness that won’t require you to install all of discourse.

3 Likes

I know nothing about coding, but I cant pass the ocasion to roll a d20 when I see one…

@discbot roll d20

Sorry, the bot hit the daily limit as a new user.

1 Like

waaaaah!

hunh.

@falcor - any way to override this for our friend bot?

1 Like

That would be a question for @codinghorror

EDIT: But Imma gonna try something

3 Likes

waaaaah!

hunh.

@codinghorror - any way to override this for our friend bot?

2 Likes

@gwwar @OtherMichael try now

@discbot hello

@discbot roll d11

I’m so glad I started this topic!

4 Likes

@gwwar Can Discbot do private messages?

Yes, but needs some more wiring.

2 Likes

Excellent.

1 Like

@discbot roll d11

@OtherMichael, the d11 dice reads: 8