gdoenlen / pinnacle-bot Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
The TopBotCommand.java
needs to be finished. The query in TopCookieRepository.java
should probably be rewritten to be correct. The command should print the top 10 users who have the most amount of cookies.
select count(*) as num_cookies, user_id from cookies group by user_id order by num_cookies limit 10;
maybe?
Number | User
10 | George
use https://github.com/iNamik/java_text_tables to print the tables?
see how this repo does it:
https://github.com/SFXD/trust-bot/blob/master/.github/workflows/main.yml
should probably just need to run: mvn verify
The cookie command is half finished... we need to figure out how to get the body of the command (who is getting the cookie and the reason).
We also need to handle validation exceptions and send a response to the user "X used give cookie! Y now has N cookies"
We need to add the bot as an app in the slack server. Then to start the app we need these 2 env variables or they can be set in
application-dev.properties
this talks about using ngrok:
https://slack.dev/java-slack-sdk/guides/getting-started-with-bolt#enable-hello-command
does it work? this needs to be correct so the IsAllowedToGiveCookies
validation works properly
@Formula(
select = "lgt.lastGivenCookieTimestamp",
join = """
join (
select MAX(createdAt) as lastGivenCookieTimestamp, from_id
from cookie group by from_id
) as lgt
on cookie.from_id = ${ta}.id
"""
)
private Instant lastGivenCookieTimestamp;
Probably can write an integration test for this...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.