Comments (2)
I do see what you're going for with this.
I'm under the impression that roll
should stay as is (specifically a dice roll), and at most get a different name. Rebrand maybe to dice
and activate via "!dice [x: dice] [y: sides]" and "/dice [x: dice] [y: sides]".
Quick brainstorm:
Assuming the name is changed, a new method with multiple sub-methods activated via a secondary keyword could work. Example:
$ /add_film fnfp https://www.imdb.com/title/tt0435961/?ref_=nv_sr_srsg_0
# Link is added, but truncated to remove everything at and after '?', since UTM parameters are not required.
# Creates a new dict or entry in a dict called "fnfp_film":
# {
0000000000: [{
"url": "https://www.imdb.com/title/tt0435961/",
"name": "Gungrave",
"rating": "7.5",
"runtime": 01:23:45,
"synopsis": "Gungrave follows the story of best friends Brandon Heat ..."
"year": "2003"
},
{,
"url": "https://www.imdb.com/title/xx0000000/",
"name": "Film",
"rating": "6.66",
"runtime": "00:27:39",
"synopsis": "This is not a real film, but simply a placeholder."
"released": "2022-09-16T04:32:53+00:00",
}]
}
$ /roll fnfp
^^^ Would trigger the "Friday Night Film Posse" sub-method via reserved word that rolls based on the object generated by user-submitted IMDB and/or Rotten Tomatoes links that would scrape data about the film, document the user that added the film, store the synopsis, and additionally (maybe) query streaming services that host the film. Other reserved words or add functions could be created specifically for different types of media like films, anime, music, etc.
This would obviously create the necessity of getters, setters, and query functionality. As well, a user should be warned about duplicates and certain overrides should be implemented for some of the scenarios we've previously encountered, like:
- user not present in voice channel at time of roll: status disqualification and exclusion of their entries.
- user not present in voice channel at time of roll: administrative qualification and inclusion of their entries.
- a
pass
function: users in voice channel get an ephemeral dialogue to vote for or against the film selected at random with time limitation for response. - a list function with ephemeral dialogue that allows a user with more than
x
amount of entries in the dict to select the two they'd like included in the roll. -
possibly many more
Additionally, the ability to add custom user-generated categories for selection via generic method would probably nice, but would lack the additional functionality of the methods related to film selection because of scope. Example:
$ /add rps rock
$ /add rps paper
$ /add rps scissors
$ /roll rps
> scissors
$ /roll rps
> rock
@blamos Your thoughts?
from shea.
Yes to this!
Also thinking an additional disqualifier would also be good here; if an entry has been skipped b/c of absenteeism (no call/no show) that their item be removed.
Example: user added item is not included in roll for 4 times in a row, drop the entry from the stored collection.
from shea.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shea.