You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement the ;collect daily command with the following spec:
When a user calls ;collect daily, the user may gain 1-5 points if they have not collected in the last 24 hours.
If a user calls ;collect daily more than once in the last 24 hours, the bot must notify the user they have already collected for the day.
The timestamp from the leaderboard table in the database must be queried to look up and update the last collected time.
For convenience, the schema for the leaderboard table is below:
CREATETABLEleaderboard(
server varchar(20) NOT NULL,
user varchar(20) NOT NULL,
score intNOT NULL,
collectionDate dateNOT NULL,
PRIMARY KEY (server, user)
);
The text was updated successfully, but these errors were encountered:
Implement the
;collect daily
command with the following spec:;collect daily
, the user may gain 1-5 points if they have not collected in the last 24 hours.;collect daily
more than once in the last 24 hours, the bot must notify the user they have already collected for the day.leaderboard
table in the database must be queried to look up and update the last collected time.For convenience, the schema for the
leaderboard
table is below:The text was updated successfully, but these errors were encountered: