diff --git a/src/events/special/InvestigateLoyalty/InvestigateParty.ts b/src/events/special/InvestigateLoyalty/InvestigateParty.ts index fd1dff3..bd3e8b2 100644 --- a/src/events/special/InvestigateLoyalty/InvestigateParty.ts +++ b/src/events/special/InvestigateLoyalty/InvestigateParty.ts @@ -1,4 +1,4 @@ import { Server, Socket } from 'socket.io'; -export const InvestigateAffiliation = (io: Server, socket: Socket, data: InvestigateAffiliation) => { +export const InvestigateParty = (io: Server, socket: Socket, data: InvestigateParty) => { console.log(`Investigating a player`); }; \ No newline at end of file diff --git a/src/main.ts b/src/main.ts index 2a09d01..280d7cc 100644 --- a/src/main.ts +++ b/src/main.ts @@ -16,7 +16,7 @@ import { ChancellorNomination } from "./events/ChancellorNomination"; import { ExecutePlayer } from "./events/special/Execution/ExecutePlayer"; import { NextPresident } from "./events/special/SpecialElection/NextPresident"; import { ExecutiveConfirmation } from "./events/special/ExecutiveConfirmation"; -import { InvestigateAffiliation } from "./events/special/InvestigateLoyalty/InvestigateParty"; +import { InvestigateParty } from "./events/special/InvestigateLoyalty/InvestigateParty"; export var log: Logger = new Logger({ displayFunctionName: false, @@ -78,7 +78,7 @@ io.on(`connection`, (socket: sio.Socket) => { socket.on(`ExecutePlayer`, (data: any) => ExecutePlayer(io, socket, data)); socket.on(`NextPresident`, (data: any) => NextPresident(io, socket, data)); socket.on(`ExecutiveConfirmation`, (data: any) => ExecutiveConfirmation(io, socket, data)); - socket.on(`InvestigateAffiliation`, (data: any) => InvestigateAffiliation(io, socket, data)); + socket.on(`InvestigateParty`, (data: any) => InvestigateParty(io, socket, data)); // Utility Events diff --git a/src/types/data.d.ts b/src/types/data.d.ts index 2045d4d..db240f0 100644 --- a/src/types/data.d.ts +++ b/src/types/data.d.ts @@ -7,7 +7,7 @@ interface ExecutePlayer extends request { target: string; } -interface InvestigateAffiliation extends request { +interface InvestigateParty extends request { target: string; }