Coder Social home page Coder Social logo

Random quotes about cj HOT 7 CLOSED

southclaws avatar southclaws commented on August 21, 2024
Random quotes

from cj.

Comments (7)

Crayder avatar Crayder commented on August 21, 2024 1

He could also do a set of his own quotes, like from here. That would be a pretty dope side features. We could take all of the more general quotes from that page, all of the ones that aren't directed at a specific person or anything like that. So like, we could take all of the quotes where he's stealing cars and stuff.

from cj.

WopsS avatar WopsS commented on August 21, 2024

Should this be hard-coded or get them from database and add them to database with a command (/addquote [text])?

from cj.

Southclaws avatar Southclaws commented on August 21, 2024

No need to add quotes manually, the bot is already logging every chat message from every channel (may need to minimise this to just the primary channel or ignore the admin channel soon, but that's another issue) so all that needs to happen is a query by username to the chat log table and pick a random entry. Should be possible with a single query and could be deferred to a goroutine if performance becomes an issue. SQLite should be fine for this job for now though.

from cj.

WopsS avatar WopsS commented on August 21, 2024

But what if that random entry is "Hello"? Should we send it?

from cj.

Southclaws avatar Southclaws commented on August 21, 2024

We could count words (or other metrics) and only send messages marked as "interesting".

from cj.

Crayder avatar Crayder commented on August 21, 2024

What if we count a specific reaction as interesting? It would only count for admins who reacted with it. Use something random like 🍰.

If an admin reacts with 🍰 then that message will be considered interesting.

from cj.

Southclaws avatar Southclaws commented on August 21, 2024

I'd prefer it to be automatic, we can use other metrics anyway. I didn't mean interesting from a semantic point of view, I just meant in terms of whether or not the message is worth reposting in response to what WopsS said about the message possibly being a single word.

from cj.

Related Issues (20)

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.