diff --git a/docs/freegames.md b/docs/freegames.md index 6c5d51b..1a6673a 100644 --- a/docs/freegames.md +++ b/docs/freegames.md @@ -76,3 +76,16 @@ Cleaner run everday at 11.30 AM | TELEGRAM_CHANNEL_FREE_GAMES | Channel ID | | SUPABASE_URL | Supabase URL | | SUPABASE_KEY | Supabase Key | + +### Supabase Table Definition +```sql +create table + public.Games ( + url text not null, + title text null, + sent boolean null default true, + found_at date null default now(), + dummy boolean not null default false, + constraint Games_pkey primary key (url) + ) tablespace pg_default; +``` \ No newline at end of file diff --git a/docs/index.md b/docs/index.md index d743e17..3316319 100644 --- a/docs/index.md +++ b/docs/index.md @@ -3,3 +3,4 @@ My personal Go Telegram Bot [Free Games on :simple-steam::simple-epicgames:](freegames.md){ .md-button } [Remote :ok:](freegames.md){ .md-button } +[Rss :material-rss:](rss.md){ .md-button } diff --git a/docs/remoteok.md b/docs/remoteok.md index beb3d91..233bc8d 100644 --- a/docs/remoteok.md +++ b/docs/remoteok.md @@ -44,3 +44,19 @@ Cleaner run everday at 10.30 AM | TELEGRAM_CHANNEL_REMOTE_OK | Telegram Channel id | | SUPABASE_URL | Supabase URL | | SUPABASE_KEY | Supabase Key | + +### Supabase Table Definition +```sql +create table + public.RemoteOk ( + id text not null, + epoch bigint not null, + slug text not null default ''::text, + company text not null default ''::text, + position text not null default ''::text, + description text not null default ''::text, + location text not null default ''::text, + url text not null default ''::text, + constraint RemoteOk_pkey primary key (id) + ) tablespace pg_default; +``` \ No newline at end of file diff --git a/docs/rss.md b/docs/rss.md index 8fce394..b865c0e 100644 --- a/docs/rss.md +++ b/docs/rss.md @@ -12,6 +12,8 @@ flowchart LR B(Filter) C(Send to Telegram) ``` + + 1. `Supabase` ➡️ Get All Feeds from Supabase Db 2. `Filter` ➡️ Keep items that is not older than 7 days ago @@ -29,4 +31,17 @@ Run every Saturday at 11.05 AM | TELEGRAM_BOT | Telegram bot API Token | | TELEGRAM_CHANNEL_RSS | Telegram Channel id | | SUPABASE_URL | Supabase URL | -| SUPABASE_KEY | Supabase Key | \ No newline at end of file +| SUPABASE_KEY | Supabase Key | + +### Supabase Table Definition +```sql +create table + public.Rss ( + url text not null default ''::text, + name text not null default ''::text, + priority bigint not null default '0'::bigint, + category text not null default ''::text, + constraint Rss_pkey primary key (url), + constraint Rss_url_key unique (url) + ) tablespace pg_default; +``` \ No newline at end of file diff --git a/main.go b/main.go index 53d01d0..07330fe 100644 --- a/main.go +++ b/main.go @@ -9,7 +9,7 @@ import ( ) func main() { - fmt.Println("Gobot v1.3 started...") + fmt.Println("Gobot v1.4 started...") app.Scouting() app.Cleaning()