Skip to content

v2 #73

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 87 commits into
base: main
Choose a base branch
from
Draft

v2 #73

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
28f6201
hai im doing something
GalvinPython Jan 26, 2025
5b553c3
chore: lint + update dependabot flow for bun
GalvinPython Feb 3, 2025
dcea4b7
chore: replace phemeral: true with lags: MessageFlags.Ephemeral in …
GalvinPython Feb 3, 2025
5a404fe
chore: replace ` ephemeral: true` with ` flags: MessageFlags.Ephemer…
GalvinPython Feb 3, 2025
59bd0a7
Merge branch 'dev' of https://github.com/GalvinPython/feedr into dev
GalvinPython Feb 3, 2025
f4fdf2e
welcome back pg
GalvinPython Apr 25, 2025
1c47b7c
added new env stuff
GalvinPython Apr 26, 2025
fc0b5d3
added pg pool
GalvinPython Apr 27, 2025
1238937
deps: update discord.js
GalvinPython Apr 27, 2025
d5ed05b
more changes
GalvinPython Apr 27, 2025
232f94c
build(deps): bump cron from 3.5.0 to 4.3.0
dependabot[bot] Apr 28, 2025
3c7839f
update package data
GalvinPython Apr 28, 2025
e0ab312
Merge pull request #105 from GalvinPython/dependabot/npm_and_yarn/dev…
GalvinPython Apr 28, 2025
84d90c7
chore: update bun.lock
GalvinPython Apr 28, 2025
ba95662
chore(database): migrate initTables to seperate file
GalvinPython Apr 28, 2025
7c68c4c
migrate db
GalvinPython Apr 29, 2025
bb1feb7
start of site
GalvinPython May 5, 2025
8bac0d0
Update web/src/components/ScrollUpButton.tsx
GalvinPython May 5, 2025
599f364
Update web/src/components/Hero.tsx
GalvinPython May 5, 2025
c777cc3
feat: api
GalvinPython May 6, 2025
b33d985
chore(deps): remove express
GalvinPython May 6, 2025
16ccb02
update .gitignore to be on par with "feat/site"
GalvinPython May 6, 2025
4b19414
db: migrate bot_info to new system
GalvinPython May 6, 2025
fc26d22
chore(web): change favicon
GalvinPython May 9, 2025
e1348be
feat(web): add tos page
GalvinPython May 9, 2025
6458eb5
feat(web): add privacy and 404 page
GalvinPython May 18, 2025
540625f
chore(bot): continue db migration
GalvinPython May 18, 2025
6db12aa
i forgot what my code does
GalvinPython Jun 23, 2025
c7b0597
ref: code clean up + comments
GalvinPython Jun 23, 2025
b4980b0
feat(latest-uploads): split update function
ToastedDev Jun 23, 2025
8a73bf5
chore: cleanup
ToastedDev Jun 23, 2025
8ca3c5e
Merge branch 'GalvinPython:dev' into dev
ToastedDev Jun 23, 2025
397508e
Update src/utils/youtube/sendLatestUploads.ts
GalvinPython Jun 23, 2025
411c998
Merge pull request #134 from ToastedDev/dev
GalvinPython Jun 23, 2025
522c316
feat(commands): better errors for `/track`
ToastedDev Jun 23, 2025
c77de3c
feat(/track): add same errors for twitch
ToastedDev Jun 23, 2025
b3783bc
Merge pull request #135 from ToastedDev/dev
GalvinPython Jun 23, 2025
8dd8d61
fix: broken functions + #119
GalvinPython Jun 29, 2025
a14ca30
push before merging site into dev
GalvinPython Jun 29, 2025
0f4da00
resolve conflicts (hopefully)
GalvinPython Jun 29, 2025
05bb4ca
Merge branch 'dev' into feat/site
GalvinPython Jun 29, 2025
029059e
Merge pull request #111 from GalvinPython/feat/site
GalvinPython Jun 29, 2025
7f40bd6
chore: slight cleanup
GalvinPython Jun 30, 2025
94aeea3
feat: autocomplete for youtube (#37)
GalvinPython Jul 1, 2025
5488a96
mini changes to db
GalvinPython Jul 2, 2025
c26c0bd
docs: added error handling design rules
GalvinPython Jul 3, 2025
1a1df45
fixed sql
GalvinPython Jul 4, 2025
6f6168b
chore(format): make `youtube.ts` return proper types
GalvinPython Jul 6, 2025
eebea59
feat: track youtube flow is complete 🎉 (closes #81)
GalvinPython Jul 7, 2025
edf36ed
chore: add production deployment scripts
GalvinPython Jul 8, 2025
9bbf2bd
GalvinPython Jul 8, 2025
93876c6
feat: twitch autocomplete
GalvinPython Jul 11, 2025
144a8db
feat: /track twich updated
GalvinPython Jul 12, 2025
669b7b7
Merge branch 'main' into dev
GalvinPython Jul 12, 2025
b81548c
chore(dependabot): move back to npm
GalvinPython Jul 12, 2025
d0a85ef
chore(dependabot): add paths restrictions to dependabot and eslint
GalvinPython Jul 12, 2025
188f2ff
chore(dependabot): update eslint
GalvinPython Jul 12, 2025
a956066
revert: nevermind, removing this from pull requests means no checks
GalvinPython Jul 12, 2025
8ca3d25
Merge pull request #144 from GalvinPython/fix/dependabot
GalvinPython Jul 12, 2025
9593b92
chore(database): start move to drizzle
GalvinPython Jul 13, 2025
323d595
chore(database): update db schema
GalvinPython Jul 16, 2025
89d188e
chore(database): move current (dev) database schema to new one
GalvinPython Jul 16, 2025
fc86ebe
chore(database): remove old database.ts file
GalvinPython Jul 17, 2025
afbeedc
chore(database): clean up errors
GalvinPython Jul 17, 2025
3cb988c
feat(bot): add guild events
GalvinPython Jul 18, 2025
fb6819e
Update src/utils/discord/updateGuildsOnStartup.ts
GalvinPython Jul 18, 2025
c40d5a7
Update src/db/discord.ts
GalvinPython Jul 18, 2025
67d0c18
style: update file based on suggestions
GalvinPython Jul 18, 2025
175abe2
Merge pull request #147 from GalvinPython/feat/guild-events
GalvinPython Jul 18, 2025
2d9f693
fix(bot): make youtube upload notifications work
GalvinPython Jul 19, 2025
b883478
fix(youtube): make content type selection work in fetchLatestUploads
GalvinPython Jul 19, 2025
ae9090b
feat(twitch): wow twitch is back
GalvinPython Jul 20, 2025
9970295
style: run lint
GalvinPython Jul 20, 2025
6ffe403
chore(bot): apply suggestions
GalvinPython Jul 20, 2025
610d915
Merge pull request #145 from GalvinPython/refactor/database
GalvinPython Jul 20, 2025
0417109
feat(bot): add autocomplete to /untrack
GalvinPython Jul 20, 2025
f2462f4
fix(twitch): add streamerName to database in /track
GalvinPython Jul 20, 2025
bcd5c6b
feat(bot): complete /untrack command improvements
GalvinPython Jul 21, 2025
55eb203
fix(bot): nvm i lied, /untracked is now done
GalvinPython Jul 21, 2025
cc46591
Update src/db/discord.ts
GalvinPython Jul 21, 2025
7a768f8
style: run lint
GalvinPython Jul 21, 2025
59be0bb
Merge pull request #148 from GalvinPython/fix/untrack
GalvinPython Jul 21, 2025
7f509a4
chore(bot): update /track but for fallback
GalvinPython Jul 22, 2025
de3d34a
feat(bot): wow its components
GalvinPython Jul 23, 2025
9a4610b
feat(bot): add platform filtering to /tracked
GalvinPython Jul 23, 2025
977a4e3
style: copilot is forcing config :(
GalvinPython Jul 23, 2025
0d2e8ee
Merge pull request #154 from GalvinPython/feat/tracked
GalvinPython Jul 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,14 @@ TWITCH_CLIENT_SECRET='YOUR_TWITCH_CLIENT_SECRET'
CONFIG_UPDATE_INTERVAL_YOUTUBE='10'
CONFIG_UPDATE_INTERVAL_TWITCH='2'
CONFIG_DISCORD_LOGS_CHANNEL='YOUR_DISCORD_LOGS_CHANNEL'

## The following values are recommened to be at the default values.
## If you want to change them, please make sure you know what you are doing.
## Times are in seconds.
CONFIG_DISCORD_WAIT_FOR_GUILD_CACHE_TIME='10'
CONFIG_DISCORD_COLLECTOR_TIMEOUT='60'
CONFIG_DISCORD_COMPONENTS_PAGE_SIZE='10' # The number of channels to display per page in the components (ex. https://github.com/GalvinPython/feedr/pull/154)

# Postgres URLs
POSTGRES_URL='postgresql://user:password@server:port/database'
POSTGRES_DEV_URL='postgresql://user:password@server:port/database'
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://json.schemastore.org/eslintrc.json",
"env": {
"browser": false,
"browser": true,
"es2021": true,
"node": true
},
Expand Down
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
* text=auto eol=lf
*.lockb binary diff=lockb
18 changes: 16 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
# Moving back to npm for package management rather than bun
# because wow dependabot is so broken for it 😭
# TODO: Labels on package updates after project restructure

version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
assignees:
- "GalvinPython"
target-branch: "dev"

- package-ecosystem: "npm"
directory: "/web"
schedule:
interval: "weekly"
target-branch: "dev"

- package-ecosystem: "cargo"
directory: "/api"
schedule:
interval: "weekly"
target-branch: "dev"
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
name: Update bun.lockb
name: Update bun.lock

on:
push:
pull_request:
branches: [main, dev]

permissions:
contents: write

jobs:
update-bun-lockb:
name: "Update bun.lockb"
update-bun-lock:
name: "Update bun.lock"
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Set up Bun
uses: oven-sh/setup-bun@v2
Expand All @@ -24,20 +25,20 @@ jobs:
- name: Check for changes
id: git_status
run: |
git add bun.lockb
git add bun.lock
if [ -z "$(git status --porcelain)" ]; then
echo "No changes to bun.lockb"
echo "::set-output name=changes_detected::false"
echo "No changes to bun.lock"
echo "changes_detected=false" >> "$GITHUB_OUTPUT"
else
echo "Changes detected to bun.lockb"
echo "::set-output name=changes_detected::true"
echo "Changes detected to bun.lock"
echo "changes_detected=true" >> "$GITHUB_OUTPUT"
fi

- name: Commit and push changes to bun.lockb
- name: Commit and push changes to bun.lock
if: steps.git_status.outputs.changes_detected == 'true'
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git commit -m "Update bun.lockb (via GitHub Actions)"
git pull --rebase origin ${{ github.ref_name }}
git push origin ${{ github.ref_name }}
git commit -m "Update bun.lock (via GitHub Actions)"
git pull --rebase origin ${{ github.head_ref }}
git push origin ${{ github.head_ref }}
44 changes: 44 additions & 0 deletions .github/workflows/site_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Site Build

on:
push:
branches:
- "*"
paths:
- "./web/**/*.js"
- "./web/**/*.jsx"
- "./web/**/*.ts"
- "./web/**/*.tsx"
- "./web/**/*.mjs"
- "./web/**/*.css"
- "./web/**/*.cjs"
- "./web/**/*.astro"
pull_request:
types: [opened, reopened, synchronize]
paths:
- "./web/**/*.js"
- "./web/**/*.jsx"
- "./web/**/*.ts"
- "./web/**/*.tsx"
- "./web/**/*.mjs"
- "./web/**/*.css"
- "./web/**/*.cjs"
- "./web/**/*.astro"

jobs:
lint:
name: Build Site
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Bun
uses: oven-sh/setup-bun@v2

- name: Install dependencies
run: bun install

- name: Build Site
run: bun run web:build
11 changes: 8 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
node_modules/
.env
.astro/
dist/
target/

# Database stuff
/backups
*.db
*.sqlite
*.sqlite3
*.sql
*.sqlite3*
*.sql
dbtests.ts
perftesting.ts
drizzle/
Loading