Go to file
Renovate Bot 35650323e8 Update non-major devDependencies (#61)
Co-authored-by: Renovate Bot <renovate.bot@chrisb.xyz>
Co-committed-by: Renovate Bot <renovate.bot@chrisb.xyz>
2023-12-03 02:02:45 -05:00
.github/workflows Disable deploy verification (#42) 2023-11-01 18:05:31 -04:00
.vscode initial commit for astro watch-watch 2023-02-04 11:55:12 -05:00
public Fix 1 hour off error due to dst (#2) 2023-02-05 16:09:38 -05:00
src Update non-major devDependencies (#53) 2023-11-19 13:43:15 -05:00
.browserslistrc Add stylelint support (#3) 2023-02-05 16:27:55 -05:00
.eslintrc.cjs Update linters (major) (#12) 2023-09-01 14:37:19 -04:00
.gitignore add inline react images (#16) 2023-02-07 09:37:27 -05:00
.prettierrc.json Use react for the chat part 2023-02-05 10:13:27 -05:00
.stylelintrc.json Update linters (major) (#24) 2023-03-12 21:39:05 -04:00
README.md Update README.md (#18) 2023-02-11 09:28:23 -05:00
astro.config.mjs give max botmint markdown permissions (#5) 2023-02-05 19:59:39 -05:00
package-lock.json Update non-major devDependencies (#61) 2023-12-03 02:02:45 -05:00
package.json Update non-major devDependencies (#61) 2023-12-03 02:02:45 -05:00
renovate.json Update renovate.json (#30) 2023-10-18 11:21:47 -04:00
tsconfig.json prettier 2023-02-05 10:43:16 -05:00

README.md

Watch watch-mints

Fun little app for displaying a historical discord record.

Uses mongodb to store discord history, and requires the environment variables:

MONGODB_URI=""
DB_NAME=""
DB_USER=""
DB_PASSWORD=""

Steps for future me

  1. Fetch discord post using fetch-discord

  2. Upload posts to a mongodb. Mongo Atlas is free (right now, might not be next time).

    • You'll need to upload with mongo-tools in the format mongoimport --uri mongodb+srv://<USERNAME>:<PASSWORD>@<CLUSTER_NAME>/<DATABASE> --collection <COLLECTION> --type json --file <FILENAME> --jsonArray
  3. Update the timestamp field to a datetime type: db.posts.updateMany({}, [{ "$set": { "timestamp": { "$toDate": "$timestamp" } }}]);

  4. Update env varibles to point to the db, and run the project!