1- import { NetworkCluster , NetworkTokenType , Prisma } from '@prisma/client'
1+ import { BotPlatform , NetworkCluster , NetworkTokenType , Prisma } from '@prisma/client'
22
33const cluster = NetworkCluster . SolanaMainnet
44const DL_SERVER = '953959331353751632'
@@ -18,6 +18,7 @@ const DL_BOT: Prisma.BotCreateWithoutCommunityInput = {
1818 avatarUrl : 'https://cdn.discordapp.com/avatars/1138462172092039258/2d9f621e44433c97e171bb40ec122b6f.png?size=1024' ,
1919 id : process . env [ 'DEANSLIST_BOT_CLIENT_ID' ] ?? '' ,
2020 name : "Dean's List Projects LOCAL" ,
21+ platform : BotPlatform . Discord ,
2122 permissions : {
2223 create : [ DL_ROLE_ONE_OF_US , DL_ROLE_BV , DL_ROLE_BV_EXPIRED , DL_ROLE_HOLDER ] . map ( ( serverRoleId ) => ( {
2324 id : `${ DL_SERVER } -${ serverRoleId } ` ,
@@ -86,6 +87,7 @@ const LOS_BOT: Prisma.BotCreateWithoutCommunityInput = {
8687 avatarUrl : 'https://cdn.discordapp.com/avatars/1208445127832637451/babbe2d94cc9058e7a66a844a7b15eb5.png?size=1024' ,
8788 id : process . env [ 'LOS_BOT_CLIENT_ID' ] ?? '' ,
8889 name : 'Legends of Sol 🅿 Verification' ,
90+ platform : BotPlatform . Discord ,
8991 permissions : {
9092 create : [ LOS_ROLE_CERTIFIED ] . map ( ( serverRoleId ) => ( {
9193 id : `${ LOS_SERVER } -${ serverRoleId } ` ,
@@ -122,6 +124,7 @@ const PK_BOT: Prisma.BotCreateWithoutCommunityInput = {
122124 id : process . env [ 'PUBKEY_BOT_CLIENT_ID' ] ?? '' ,
123125 name : 'PubKey Link Yellow' ,
124126 status : 'Active' ,
127+ platform : BotPlatform . Discord ,
125128 permissions : {
126129 create : [ PK_ROLE_DEANSLIST , PK_ROLE_DL_BV , PK_ROLE_DL_BV_EXPIRED , PK_ROLE_DL_HOLDER ] . map ( ( serverRoleId ) => ( {
127130 id : `${ PK_SERVER } -${ serverRoleId } ` ,
@@ -185,7 +188,7 @@ export const provisionCommunities: Prisma.CommunityCreateInput[] = [
185188 { user : { connect : { id : 'dave' } } , admin : true } ,
186189 ] ,
187190 } ,
188- bot : { create : PK_BOT . clientId ? PK_BOT : undefined } ,
191+ bots : { create : PK_BOT . clientId ? PK_BOT : undefined } ,
189192 roles : {
190193 create : [
191194 {
@@ -238,7 +241,7 @@ export const provisionCommunities: Prisma.CommunityCreateInput[] = [
238241 avatarUrl : 'https://avatars.githubusercontent.com/u/137821488?v=4' ,
239242 twitterUrl : 'https://twitter.com/deanslistDAO' ,
240243 websiteUrl : 'https://deanslist.services' ,
241- bot : DL_BOT . clientId ? { create : DL_BOT } : undefined ,
244+ bots : DL_BOT . clientId ? { create : DL_BOT } : undefined ,
242245 roles : {
243246 create : [
244247 {
@@ -316,7 +319,7 @@ export const provisionCommunities: Prisma.CommunityCreateInput[] = [
316319 { user : { connect : { id : 'bob' } } , admin : false } ,
317320 ] ,
318321 } ,
319- bot : LOS_BOT . clientId ? { create : LOS_BOT } : undefined ,
322+ bots : LOS_BOT . clientId ? { create : LOS_BOT } : undefined ,
320323 roles : {
321324 create : [
322325 {
0 commit comments