@@ -25,6 +25,7 @@ import { getClassAbreviation } from "../../shared/classes";
2525import { raidBotInstructions } from "../../features/raid-bots/update-bots" ;
2626import { ParkBotButtonCommand } from "../../features/raid-bots/park-bot-button-command" ;
2727import { refreshBotEmbed } from "../../features/raid-bots/bot-embed" ;
28+ import { code } from "../../shared/util" ;
2829
2930export class PrismaPublicAccounts implements IPublicAccountService {
3031 private prisma ! : PrismaClient ;
@@ -59,6 +60,7 @@ export class PrismaPublicAccounts implements IPublicAccountService {
5960 checkoutTime : time . isValid ( ) ? time . toString ( ) : "" ,
6061 currentPilot : row [ BOT_SPREADSHEET_COLUMNS . CurrentPilot ] ,
6162 bindLocation : row [ BOT_SPREADSHEET_COLUMNS . BindLocation ] ,
63+ factioned : row [ BOT_SPREADSHEET_COLUMNS . Factioned ] !== "" ,
6264 requiredRoles : roles . map ( ( r ) => r . id ) ,
6365 } ,
6466 } ) ;
@@ -101,10 +103,16 @@ export class PrismaPublicAccounts implements IPublicAccountService {
101103 ) ;
102104
103105 const foundBot = details . characters ;
104-
106+ const prismaBot = await this . getBotByName ( foundBot ) ;
105107 const currentPilot = await this . getCurrentBotPilot ( foundBot ) ;
106108
107- let response = `${ details . characters } (${ details . purpose } )
109+ const factionWarning = `${ code } diff
110+ - FACTIONED CHARACTER WARNING
111+ - BY PLAYING THIS CHARACTER YOU AGREE TO NOT TAKE ANY FACTION HITS. RAID LEADERSHIP RESERVES THE RIGHT TO RECOUP THE COSTS OF REFACTIONING THE BOT OR DOCK DKP, BASED ON THE DIFFICULTY OF REFACTIONING
112+ ${ code } `;
113+
114+ let response = `${ prismaBot ?. factioned ? factionWarning : "" }
115+ ${ details . characters } (${ details . purpose } )
108116Account: ${ details . accountName }
109117Password: ${ spoiler ( details . password ) }
110118
@@ -117,6 +125,7 @@ Password: ${spoiler(details.password)}
117125 components = await this . getBotParkButtonComponents ( name ) ;
118126 }
119127 response += `The credentials for ${ foundBot } have been DM'd to you. Please remember to use \`/bot park\` when you are done!` ;
128+ response += `${ prismaBot ?. factioned ? factionWarning : "" } ` ;
120129
121130 await interaction . editReply ( {
122131 content : response ,
0 commit comments