more test data

This commit is contained in:
Corban-Lee Jones 2025-02-07 17:52:55 +00:00
parent ae53457344
commit f262d821e0
2 changed files with 80 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import { Knex } from "knex";
import { subscribe } from "diagnostics_channel";
import { Knex, SchemaBuilder } from "knex";
const TABLE = "channels";
@ -15,6 +16,27 @@ export async function seed(knex: Knex): Promise<void> {
{
channel_id: "1204540472031322192",
subscription_id: 1,
},
{
channel_id: "819332348214247471",
subscription_id: 10
},
{
channel_id: "819325370087112747",
subscription_id: 10
},
{
channel_id: "819334448268181515",
subscription_id: 14
},
{
channel_id: "819325370087112747",
subscription_id: 14
},
{
channel_id: "918648963492618261",
subscription_id: 14
}
]);
};

View File

@ -8,6 +8,7 @@ export async function seed(knex: Knex): Promise<void> {
// Inserts seed entries
await knex(TABLE).insert([
// pyrss guild
{
name: "BBC News · Home",
url: "http://feeds.bbci.co.uk/news/rss.xml",
@ -62,5 +63,61 @@ export async function seed(knex: Knex): Promise<void> {
guild_id: "1204426362794811453",
active: true
},
// bot testing guild
{
name: "BBC News · Home",
url: "http://feeds.bbci.co.uk/news/rss.xml",
guild_id: "819325370087112744",
active: true
},
{
name: "BBC News · World",
url: "http://feeds.bbci.co.uk/news/world/rss.xml",
guild_id: "819325370087112744",
active: false
},
{
name: "BBC News · Entertainment",
url: "http://feeds.bbci.co.uk/news/entertainment_and_arts/rss.xml",
guild_id: "819325370087112744",
active: true
},
{
name: "BBC News · Technology",
url: "https://feeds.bbci.co.uk/news/technology/rss.xml",
guild_id: "819325370087112744",
active: true
},
{
name: "BBC News · Science & Environment",
url: "https://feeds.bbci.co.uk/news/science_and_environment/rss.xml",
guild_id: "819325370087112744",
active: false
},
{
name: "BBC News · Health",
url: "https://feeds.bbci.co.uk/news/health/rss.xml",
guild_id: "819325370087112744",
active: true
},
{
name: "BBC News · Politics",
url: "https://feeds.bbci.co.uk/news/politics/rss.xml",
guild_id: "819325370087112744",
active: false
},
{
name: "BBC News · US & Canada",
url: "https://feeds.bbci.co.uk/news/world/us_and_canada/rss.xml",
guild_id: "819325370087112744",
active: false
},
{
name: "TechRadar · Phones",
url: "https://www.techradar.com/uk/feeds/tag/phones",
guild_id: "819325370087112744",
active: true
},
]);
};