Coder Social home page Coder Social logo

quoteme-bot's People

Contributors

edisonchee avatar shekyh avatar yuhong90 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

quoteme-bot's Issues

Data persistence

We need to store quotes for occasions where the server crashes. We'll need this to store base-64 encoded images as well.

Postgres? Mongo/Parse? @yuhong90

We'll probably need to use local storage on the browser as well.

Low usage and/or engagement; time for new features?

I was thinking of implementing a "shout board" kind of concept, which is more conversational. Currently the randomising of quotes sent to the board means lower visibility; users have not much control over what appears on the board. Also, we already have a quote bot created by someone in PAAS if I remember correctly.

I imagine it to work like "/shout anyone saw my mug at the pantry".

What do you think? @yuhong90

View/Board layout

Any ideas how we can improve the view?

Right now all I'm thinking of is adding a sidebar to the view.

Also thinking of showing more quotes at once.

Function signature getting out of hand

e.g.

function storeQuote(user, name, content, time, profilePic, photo) {...}

IMO it's better to use a single object now that the project is starting to get a little more complex.

let quote = { userId: '', userName: '' ...}
function storeQuote(quote) {...}

Code refactoring

Thinking about how to organise the code and split out into several .js files.

Right off the bat we can split functions into another file, in which case we need a config object to pass common variables between external files. This would include the socket.io object and quote arrays we defined in telegram-bot.js.

Any comments?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.