Comments (7)
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.
Should this be hard-coded or get them from database and add them to database with a command (/addquote [text])?
from cj.
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.
But what if that random entry is "Hello"? Should we send it?
from cj.
We could count words (or other metrics) and only send messages marked as "interesting".
from cj.
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
from cj.
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)
- Move from Travis to GitHub Actions for CI HOT 1
- A refactor - idiomatic Go
- No description found HOT 3
- /stats command uses deprecated API link HOT 1
- let /rep take more than 1 emoji HOT 1
- A /mytop command to show user's rank.
- change /stats to something funny HOT 2
- add @coool9 as contributor HOT 1
- Support slash-commands HOT 1
- Dependabot can't resolve your Go dependency files HOT 1
- Dependabot can't resolve your Go dependency files
- Dependabot can't resolve your Go dependency files
- Dependabot can't resolve your Go dependency files HOT 1
- Dependabot can't resolve your Go dependency files
- add antispam features
- Show emoji in /toprep if no results found and an emoji parameter was passed
- /postcode command HOT 2
- Deploy credentials are expired/invalid HOT 1
- /changelog command to show recent changes
- Ability to download one's messages stored in cj's database
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 cj.