vampiricwulf / tanoshiine

Real-time imageboard in node v14.5.0 and redis
MIT License
5 stars 1 forks source link

Feature Request: FAQ/Announcement Box #10

Closed seastones closed 9 years ago

seastones commented 9 years ago

I asked for this an eternity ago and with the way Chu was asking about the TeamSpeak, it may (or may not) be beneficial to add. Seeing as how we get new members on rare occasions, a few rules might be cool. Might be nice for announcements. (Maybe even give it a notification kinda thing?)

vampiricwulf commented 9 years ago

For me: http://stackoverflow.com/questions/11225001/reading-a-file-in-real-time-using-node-js

bakape commented 9 years ago

A more simple approach is writing the file in JSON and then simply fs.open -> JSON.parse

seastones commented 9 years ago

Would be ideal to be able to change things within the site and not externally.

bakape commented 9 years ago

In that case redis is the most simple solution.

vampiricwulf commented 9 years ago

@bakape The bit of information he failed to include was that he wants it real-time. I'm not smart enough to be able to code an announcement window that allows him to publish within the site, I'm only smart enough to know how to get js to read files altered outside of the site.

bakape commented 9 years ago

Pushing state.js to the clients live is on my todo list. Will likely be complicated though.

vampiricwulf commented 9 years ago

Well, I assume NotSo would want the job to be done right rather than slipshod like the way I'd do it, so I guess I should wait on you to complete that.

seastones commented 9 years ago

Why yes, yes I would. So I can wait very patiently, but you should have some faith in yourself!