These are chat archives for sethtrain/marvin

18th
May 2016
Doug Hurst
@robotsnowfall
May 18 2016 01:49
I was looking at http://node.green/ and node 4 (used by AWS) actually support quite a bit, including the arrow functions (short closure syntax)
Seth Buntin
@sethtrain
May 18 2016 01:50
nice
If we boil it down an NPC is also a note
Doug Hurst
@robotsnowfall
May 18 2016 01:53
could be, yeah
with counters!
Seth Buntin
@sethtrain
May 18 2016 01:54
yep
I might just convert that endpoint/function to a note and commit that as what will handle NPC, Storyline and Encounters
Doug Hurst
@robotsnowfall
May 18 2016 01:55
:+1:
Doug Hurst
@robotsnowfall
May 18 2016 02:42
sethtrain/marvin#31
ES6’d a lambda
Seth Buntin
@sethtrain
May 18 2016 02:45
what are the ```
Doug Hurst
@robotsnowfall
May 18 2016 02:45
template strings
Seth Buntin
@sethtrain
May 18 2016 02:45
hah, try to quote a tick, that is hard.
ha
Seth Buntin
@sethtrain
May 18 2016 02:48
oh, i see now, i wasn't paying attention, just saw a lot of ` and thought wow, what is that? :)
Seth Buntin
@sethtrain
May 18 2016 02:58
what do you think about saving the chat in <dm>-<game>/chat? I'm thinking about adding <dm>-<game>/assets. That would also enable the ability for multiple dm's to have the same game name.
Doug Hurst
@robotsnowfall
May 18 2016 03:02
hmm, in open-game i’m explicitly not allowing the same game to be open for multiple DMs. do you think it’s likely two DMs will come u with the same campaign name at the same time? it only exists int he table until it is archived with close-game
Seth Buntin
@sethtrain
May 18 2016 03:04
who knows, maybe? What are the odds that two nerds come up with The Seawolf's revenge at the same time? :)
Doug Hurst
@robotsnowfall
May 18 2016 03:04
then they’ll get an error and they’ll have to come up with a new name! :) i mean, they’re creative enough to be a DM, surely they can come up with a title
Seth Buntin
@sethtrain
May 18 2016 03:05
yeah, gotcha, punt until it happens a lot :)
Doug Hurst
@robotsnowfall
May 18 2016 03:05
The Wreck at the Swordbreak Wharf done
Seth Buntin
@sethtrain
May 18 2016 03:05
hah
Doug Hurst
@robotsnowfall
May 18 2016 03:06
that is something i’d like to add to the front end (once someone does the scaffolding) is a random name generator
Seth Buntin
@sethtrain
May 18 2016 03:07
sounds good to me
William Golden
@egdelwonk
May 18 2016 03:08
:wave:
Seth Buntin
@sethtrain
May 18 2016 03:09
there he is!!!!!
welcome to the party @egdelwonk
William Golden
@egdelwonk
May 18 2016 03:12
hay hay hay
what can I do to help?
Seth Buntin
@sethtrain
May 18 2016 03:12
want to get started on the front end?
:)
unless you want to help with the api
:)
i can get started on the frontend, do you want to keep it in the same repo?
Seth Buntin
@sethtrain
May 18 2016 03:16
sure!
Seth Buntin
@sethtrain
May 18 2016 03:16
maybe in /frontend or /client
William Golden
@egdelwonk
May 18 2016 03:16
:thumbsup:
sethtrain @sethtrain is going to have nightmares tonight now
Seth Buntin
@sethtrain
May 18 2016 03:16
that is so creepy!
Doug Hurst
@robotsnowfall
May 18 2016 03:21
@egdelwonk ! i did a es6! i might do so again!
William Golden
@egdelwonk
May 18 2016 03:22
nice!
() => all the things
Doug Hurst
@robotsnowfall
May 18 2016 03:22
i feel like there are probably going to be JS hipters who “only code in original, netscape javascript"
William Golden
@egdelwonk
May 18 2016 03:23
artisanal jquery
Doug Hurst
@robotsnowfall
May 18 2016 03:23
yeah, but like jquery 0.8.0 (before they sold out)
William Golden
@egdelwonk
May 18 2016 03:23
haha
Doug Hurst
@robotsnowfall
May 18 2016 03:25
let us know if you need any help getting it deployed/setup. we’re new at it too, but we have a few days on you :)
Seth Buntin
@sethtrain
May 18 2016 03:26
serverless is pretty slick though
Doug Hurst
@robotsnowfall
May 18 2016 03:27
yep
Doug Hurst
@robotsnowfall
May 18 2016 03:36
does es6 have the elvis operator?
it’d clean up some code i’m writing
William Golden
@egdelwonk
May 18 2016 03:38
it doesn't have a null coalescing operator...yet
but there are default args for functions, which help
Doug Hurst
@robotsnowfall
May 18 2016 03:39
oh, i just want to type const foo = bar ?: baz instead of const foo = bar ? bar : baz
William Golden
@egdelwonk
May 18 2016 03:39
depending on what you mean/want, you can use the logical operator too
Doug Hurst
@robotsnowfall
May 18 2016 03:39
?: == elvis
William Golden
@egdelwonk
May 18 2016 03:39
const foo = bar || baz
using a logical or might work?
Doug Hurst
@robotsnowfall
May 18 2016 03:40
oh, fancy…and also erg
dynamic types! hooray
William Golden
@egdelwonk
May 18 2016 03:40
truthy test....coersion can be dangerous :P
and yeah... types :P
Seth Buntin
@sethtrain
May 18 2016 03:40
Am I thinking about this correctly, my first thought was to associate assets to a game by creating a lambda that listens to s3:CreateObject:* events, and creating a table and adding the information, but there really is no reason right? On the front end we'd have the game name available and when we "associate" the asset in the narrative we'd be able to view just the s3 keys for assets/<game> right?
Doug Hurst
@robotsnowfall
May 18 2016 03:42
> "0" && true
true
> "" && true
''
> "" || true
true
> "0" || true0'
:-/
Doug Hurst
@robotsnowfall
May 18 2016 03:43
@sethtrain yeah. i think we’d want to slugify things in S3, but other than that, yes
William Golden
@egdelwonk
May 18 2016 03:43
sethtrain/marvin#33
Doug Hurst
@robotsnowfall
May 18 2016 03:43
@egdelwonk openin them PRs
William Golden
@egdelwonk
May 18 2016 03:46
you know it
so what do you need me to build first seth?
Doug Hurst
@robotsnowfall
May 18 2016 03:49
is const scoped the way let is? or like how var is?
William Golden
@egdelwonk
May 18 2016 03:50
same as let
Doug Hurst
@robotsnowfall
May 18 2016 03:50
i vote for #9
cool
Seth Buntin
@sethtrain
May 18 2016 03:51
yeah #9 seems good, it involves a lot of the system
William Golden
@egdelwonk
May 18 2016 03:51
cool, i'll start on it
William Golden
@egdelwonk
May 18 2016 04:04
what is the datasource for the chat ? dynamo ?
Doug Hurst
@robotsnowfall
May 18 2016 04:04
yep
there’s an api (and a lambda) in front of it though
William Golden
@egdelwonk
May 18 2016 04:05
yeah, just getting it all setup now
serverless project init
pew pew pew
Doug Hurst
@robotsnowfall
May 18 2016 04:09
woot
William Golden
@egdelwonk
May 18 2016 04:10
for now, on the chat, should there just be a game input / player input ?
in terms of ui
we don't really have those endpoints configured yet, right ? (/me or something)
auth, etc
Doug Hurst
@robotsnowfall
May 18 2016 04:13
i’m not sure i follow. there’s just chat right now, with a few macros (/roll, /dm, /qroll)
William Golden
@egdelwonk
May 18 2016 04:13
yeah, ok sorry let me clarify
since we pass in ?game=some+game&player=wgolden to those endpoints
how should those params be configured on the frontend ?
i can make some kind of fake login/setup page for now until we flesh it out
where it stores game/player in localstorage
and when i say configured, i mean, a person loading the app up for the first time
or returning
Doug Hurst
@robotsnowfall
May 18 2016 04:15
oh i see. yeah i think the plan was cognito eventually ( @sethtrain ?) but it’s not in place yet. so whatever is easiest to replace later
Seth Buntin
@sethtrain
May 18 2016 04:15
Maybe I will work on the Cognito side of things.
Doug Hurst
@robotsnowfall
May 18 2016 04:15
work that cash register!
Seth Buntin
@sethtrain
May 18 2016 04:15
:)
William Golden
@egdelwonk
May 18 2016 04:16
:P
Seth Buntin
@sethtrain
May 18 2016 04:16
that will have to wait for tomorrow, kids wake up early :(
not entirely sure how this favicon got set...but im not complaining
Seth Buntin
@sethtrain
May 18 2016 04:17
what is it?
William Golden
@egdelwonk
May 18 2016 04:17
i think it was when i was teaching my students how to make a favicon and set it on their page on like day one of the ironyard
some kind of goofy smiley face
Seth Buntin
@sethtrain
May 18 2016 04:17
ah ok
and chrome has cached it for localhost for the rest of your life?
William Golden
@egdelwonk
May 18 2016 04:33
lol apparently
Doug Hurst
@robotsnowfall
May 18 2016 05:14
PR for counter macro! sethtrain/marvin#34
William Golden
@egdelwonk
May 18 2016 05:58
dang... gotta enable cors for chat
egdelwonk @egdelwonk reads docs
William Golden
@egdelwonk
May 18 2016 06:02
sethtrain/marvin#37
initial stab at getting redux setup. I have the polling setup (might move it outside of the component and do it somewhere else later, but this will work for now), will work on display/input tomorrow over lunch :)
William Golden
@egdelwonk
May 18 2016 15:15
anyone know if it's possible to duplicate serverless settings across machines ?
doing serverless init again will, presumably "redo" everything
don't want to make a new stage, etc
Doug Hurst
@robotsnowfall
May 18 2016 15:17
you can do project remove -s dev then project init again. i really want this to be something we can put up and take down cleanly, so getting into that habit is good i think
William Golden
@egdelwonk
May 18 2016 15:18
fair enough
William Golden
@egdelwonk
May 18 2016 15:45
sethtrain/marvin#38
added cors
Seth Buntin
@sethtrain
May 18 2016 19:55
@egdelwonk #38 has a merge conflict because I merged #39 first, sorry.
William Golden
@egdelwonk
May 18 2016 20:53
All good. I cleaned it up. :)
btw in order to deploy the cors endpoints, you have to use the -a flag
sls endpoint deploy -a
Doug Hurst
@robotsnowfall
May 18 2016 20:56
can you add that to the README?
William Golden
@egdelwonk
May 18 2016 20:56
yup!
Seth Buntin
@sethtrain
May 18 2016 21:05
@/all we need to name it
Seth Buntin
@sethtrain
May 18 2016 21:16
so I can get a domain and set up the route 53 and set up the ssl cert and stuff
Doug Hurst
@robotsnowfall
May 18 2016 21:16
for like a marketing site?
i know a company we can use for email
Seth Buntin
@sethtrain
May 18 2016 21:17
for the actual play site
:)
Doug Hurst
@robotsnowfall
May 18 2016 21:17
oh, i thought this was a install-it-yourself application?
like i may run my own marvin on my own domain, you run yours, will runs his, etc
Seth Buntin
@sethtrain
May 18 2016 21:17
yeah, that makes sense
ok, so i need to come up with a script to do that jazz then
Doug Hurst
@robotsnowfall
May 18 2016 21:18
more than project init?
Seth Buntin
@sethtrain
May 18 2016 21:20
can I hook into project init? or do I leave the setup your domain to serve from s3 to the user?
Doug Hurst
@robotsnowfall
May 18 2016 21:22
hmm, maybe with a plugin?
William Golden
@egdelwonk
May 18 2016 21:22
as long as we can use this as the theme song, i'm cool
lol
Seth Buntin
@sethtrain
May 18 2016 21:23
deal
Doug Hurst
@robotsnowfall
May 18 2016 21:23
not module, plugin