Skip to content

Commit

Permalink
Add Supabase Table Schema
Browse files Browse the repository at this point in the history
Bump Version to 1.4
  • Loading branch information
100nandoo committed Jun 22, 2023
1 parent 65b1ba8 commit 278e045
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 2 deletions.
13 changes: 13 additions & 0 deletions docs/freegames.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
```
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
16 changes: 16 additions & 0 deletions docs/remoteok.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
```
17 changes: 16 additions & 1 deletion docs/rss.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 |
| 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;
```
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func main() {
fmt.Println("Gobot v1.3 started...")
fmt.Println("Gobot v1.4 started...")
app.Scouting()
app.Cleaning()

Expand Down

0 comments on commit 278e045

Please sign in to comment.