Add dicerolling, somehow #15

Closed
opened 2024-10-09 14:48:19 -05:00 by Zankaria · 5 comments
Zankaria commented 2024-10-09 14:48:19 -05:00 (Migrated from gitlab.leftypol.org)

Right now the native vichan dice rolling mechanism relies on the mail field, which in our case is replaced by the options field since we have the field_email_selectbox set to true.
An anon had a suggestion

my guess would be check for some string like:
[rolldice:n]
and swap it for the output. So like
[rolldice:20] > "[name] rolled: 18"

Right now the native vichan dice rolling mechanism relies on the mail field, which in our case is replaced by the options field since we have the `field_email_selectbox` set to `true`. An anon had a suggestion > my guess would be check for some string like: [rolldice:n] and swap it for the output. So like [rolldice:20] > "[name] rolled: 18"
Zankaria commented 2024-10-09 17:23:38 -05:00 (Migrated from gitlab.leftypol.org)

Other comments

!d6 would be easier

If it was implemented it should allow arbitrary XdY calls and use some kind of special text that you couldn't just type into the reply field.

Other comments > !d6 would be easier > If it was implemented it should allow arbitrary XdY calls and use some kind of special text that you couldn't just type into the reply field.
Zankaria commented 2024-10-10 14:54:10 -05:00 (Migrated from gitlab.leftypol.org)
Glory to Magalichan for their solidarity! https://github.com/fallenPineapple/NPFchan/blob/master/inc/functions.php#L3476 https://github.com/fallenPineapple/NPFchan/blob/master/inc/config.php#L908
Zankaria commented 2024-10-12 05:21:09 -05:00 (Migrated from gitlab.leftypol.org)

An alternative would be to build a dice rolling input system beside the options dropdown

59757039 (59757039)

An alternative would be to build a dice rolling input system beside the options dropdown https://stackoverflow.com/questions/48534229/what-is-the-correct-input-type-for-credit-card-numbers/59757039#59757039
Zankaria commented 2024-10-12 09:28:30 -05:00 (Migrated from gitlab.leftypol.org)

mentioned in merge request !2

mentioned in merge request !2
Zankaria commented 2024-10-13 17:32:38 -05:00 (Migrated from gitlab.leftypol.org)

mentioned in commit a86c9f8d8f

mentioned in commit a86c9f8d8f4e51fafda05d760992dd0bc9fd8bd5
Zankaria (Migrated from gitlab.leftypol.org) closed this issue 2024-10-13 17:32:38 -05:00
Sign in to join this conversation.
No labels
Bug
Proposal
Request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: leftypol/leftypol#15
No description provided.