verbiage changes

dev
Matthew 2024-11-25 01:56:13 -05:00
parent 3736469b31
commit 87d7ac31aa
Signed by: matthew
SSH Key Fingerprint: SHA256:piIXekA9q1p0ZGi4ogFbNY1embip5Ytbi3v8AZ8UYq4
18 changed files with 94 additions and 95 deletions

View File

@ -7,7 +7,7 @@
"lint": "eslint -c ./.eslintrc.json src --ext ts"
},
"repository": "https://gitlab.libraryofcode.org/engineering/communityrelations.git",
"author": "Library of Code | Dept. of Engineering <engineering@libraryofcode.org>",
"author": "Library of Code, Inc. | Dept. of Engineering <engineering@libraryofcode.org>",
"license": "AGPL-3.0",
"devDependencies": {
"@types/ari-client": "^2.2.7",

View File

@ -82,7 +82,7 @@ export default class Root extends Route {
${payload.body}
_____________________________________________________________________
LIBRARY OF CODE SP-US | BOARD OF DIRECTORS
LIBRARY OF CODE INC | BOARD OF DIRECTORS
BOARD REGISTER SYSTEM https://board.ins/
`,
});
@ -118,7 +118,7 @@ export default class Root extends Route {
${payload.body}
_____________________________________________________________________
LIBRARY OF CODE SP-US | BOARD OF DIRECTORS
LIBRARY OF CODE INC | BOARD OF DIRECTORS
BOARD REGISTER SYSTEM https://board.ins/
`,
});
@ -140,7 +140,7 @@ export default class Root extends Route {
embed.addField('Subject', payload.subject);
embed.addField('Body', payload.body);
embed.setColor(color);
embed.setFooter('Library of Code sp-us | Board Register System', 'https://static.libraryofcode.org/library_of_code.png');
embed.setFooter('Library of Code Inc | Board Register System', 'https://static.libraryofcode.org/library_of_code.png');
embed.setTimestamp();
return embed;

View File

@ -449,7 +449,7 @@ export default class Report extends Route {
updated = true;
await this.server.client.report.createInquiry(member.user.id, `${member.username} via report.libraryofcode.org @ IP ${req.ip}`, 1);
} else {
await this.server.client.report.createInquiry(member.user.id, 'Library of Code sp-us | Staff Team via report.libraryofcode.org', 1);
await this.server.client.report.createInquiry(member.user.id, 'Library of Code Inc | Staff Team via report.libraryofcode.org', 1);
}
} else if (!updated) {
await this.server.client.report.createInquiry(member.user.id, `${member.username} via report.libraryofcode.org @ IP ${req.ip}`, 1);

View File

@ -24,7 +24,7 @@ export default class Queue {
}
protected setCronJobs() {
const historialCommunityReportJob = new cron.CronJob('0 20 * * *', async () => {
const historicalCommunityReportJob = new cron.CronJob('0 20 * * *', async () => {
try {
const reports = await this.client.db.mongo.Score.find().lean().exec();
const startDate = new Date();
@ -81,7 +81,7 @@ export default class Queue {
});
});
historialCommunityReportJob.start();
historicalCommunityReportJob.start();
clearOldHistoricalReportsJob.start();
calculateScores.start();
}

View File

@ -13,7 +13,7 @@ export default class Server {
public port: number;
private root: string;
private readonly root: string;
protected parse: boolean;

View File

@ -34,7 +34,7 @@ export default class Callback extends Command {
embed.addField('Phone Number Type', phone.getType(), true);
const communityReport = await this.client.db.mongo.Score.findOne({ userID: message.author.id }).lean().exec();
if (communityReport) {
await this.client.report.createInquiry(member.user.id, 'Library of Code sp-us | VOIP/PBX Member Support SVCS', 1);
await this.client.report.createInquiry(member.user.id, 'Library of Code Inc | VOIP/PBX Member Support SVCS', 1);
embed.addField('PIN', `${communityReport.pin[0]}-${communityReport.pin[1]}-${communityReport.pin[2]}`, true);
}
try {

View File

@ -19,7 +19,7 @@ export default class Info extends Command {
embed.setTitle('Information');
embed.setThumbnail(this.client.user.avatarURL);
embed.setDescription(`*See \`${this.client.config.prefix}sysinfo\` for more information on libraries used by this application.*`);
embed.addField('Developers', 'Library of Code | Dept. of Engineering & other contributors', true);
embed.addField('Developers', 'Library of Code, Inc. | Dept. of Engineering & other contributors', true);
embed.addField('Version', 'Rolling Release', true);
embed.addField('Language(s)', '<:TypeScript:703451285789343774> TypeScript', true);
embed.addField('Runtime', `Node (${process.version})`, true);

View File

@ -30,7 +30,7 @@ export default class Inquiry extends Command {
const { report } = inquiry;
// if (!report) return this.error(message.channel, 'Could not find inquiry information.');
await this.client.report.createInquiry(member.id, 'Library of Code sp-us | Bureau of Community Reports', 1);
await this.client.report.createInquiry(member.id, 'Library of Code Inc | Bureau of Community Reports', 1);
const embed = new RichEmbed();
embed.setTitle(`Hard Inquiry Information - ${inquiry.iid}`);

View File

@ -89,7 +89,7 @@ export default class StaffAssistedApplication extends Command {
// eslint-disable-next-line no-useless-escape
notificationEmbed.addField('User', `${member.username}#${member.discriminator} | XXX-XX-${report.pin[2]}`);
notificationEmbed.addField('Decision', 'PROCESSING');
notificationEmbed.addField('Initiated by', `${ctx.message.author.username}${staff?.isManager ? ' [k]' : ''} *on behalf of Library of Code sp-us*`);
notificationEmbed.addField('Initiated by', `${ctx.message.author.username}${staff?.isManager ? ' [k]' : ''} *on behalf of Library of Code Inc*`);
notificationEmbed.addField('Application ID', application.id);
notificationEmbed.addField('Service Code', ctx.args[1]);
notificationEmbed.setFooter(this.client.user.username, this.client.user.avatarURL);

View File

@ -38,7 +38,7 @@ export default class SAA_Approve extends Command {
// eslint-disable-next-line no-useless-escape
embed.addField('User', `${member.username}#${member.discriminator} | XXX-XX-${report.pin[2]}`);
embed.addField('Decision', 'APPROVED');
embed.addField('Underwriter', `${ctx.message.author.username}${staff?.isManager ? ' [k]' : ''} *on behalf of Library of Code sp-us*`);
embed.addField('Underwriter', `${ctx.message.author.username}${staff?.isManager ? ' [k]' : ''} *on behalf of Library of Code Inc*`);
embed.addField('Application ID', saa.applicationID);
embed.addField('Service Code', saa.serviceCode);
embed.setFooter(this.client.user.username, this.client.user.avatarURL);

View File

@ -35,7 +35,7 @@ export default class SAA_Decline extends Command {
// eslint-disable-next-line no-useless-escape
embed.addField('User', `${member.username}#${member.discriminator} | XXX-XX-${report.pin[2]}`);
embed.addField('Decision', 'DECLINED');
embed.addField('Underwriter', `${ctx.message.author.username}${staff?.isManager ? ' [k]' : ''} *on behalf of Library of Code sp-us*`);
embed.addField('Underwriter', `${ctx.message.author.username}${staff?.isManager ? ' [k]' : ''} *on behalf of Library of Code Inc*`);
embed.addField('Application ID', saa.applicationID);
embed.addField('Service Code', saa.serviceCode);
embed.setFooter(this.client.user.username, this.client.user.avatarURL);

View File

@ -14,7 +14,7 @@ export default class Score extends Command {
super(client);
this.name = 'score';
this.description = 'Retrieves your Community Report';
this.usage = `${this.client.config.prefix}score\n${this.client.config.prefix}score <member> <type: 'hard' | 'soft'> <reporting department: ex. Library of Code sp-us | Cloud Account Services>:<reason>`;
this.usage = `${this.client.config.prefix}score\n${this.client.config.prefix}score <member> <type: 'hard' | 'soft'> <reporting department: ex. Library of Code Inc | Cloud Account Services>:<reason>`;
this.aliases = ['report'];
this.subcmds = [Score_Hist, Score_Notify, Score_Pref];
this.permissions = 0;
@ -181,7 +181,7 @@ export default class Score extends Command {
let name = '';
// eslint-disable-next-line no-unreachable-loop
for (const role of this.client.util.resolveMember(ctx.message.author.id, this.mainGuild).roles.map((r) => this.mainGuild.roles.get(r)).sort((a, b) => b.position - a.position)) {
name = `Library of Code sp-us | ${role.name}`;
name = `Library of Code Inc | ${role.name}`;
break;
}
await this.client.report.createInquiry(user.id, name, 1);

View File

@ -34,7 +34,7 @@ export default class Score_Hist extends Command {
let name = '';
// eslint-disable-next-line no-unreachable-loop
for (const role of this.client.util.resolveMember(ctx.message.author.id, this.mainGuild).roles.map((r) => this.mainGuild.roles.get(r)).sort((a, b) => b.position - a.position)) {
name = `Library of Code sp-us | ${role.name} - [HISTORICAL]`;
name = `Library of Code Inc | ${role.name} - [HISTORICAL]`;
break;
}
await this.client.report.createInquiry(user.id, name, 1);

View File

@ -110,7 +110,7 @@ export default class SSS_Create_Account extends Command {
connection_id: 'con_T3ELEx2reigKMSlP',
});
const channel = await this.client.getDMChannel(message.author.id);
channel.createMessage(`__**Library of Code sp-us | Identity & Account Management**__\n\nPlease click the link below to reset your password.\n\n${passwordTicket.ticket}`).catch(() => this.error(message.channel, 'Unable to send you a DM.'));
channel.createMessage(`__**Library of Code Inc | Identity & Account Management**__\n\nPlease click the link below to reset your password.\n\n${passwordTicket.ticket}`).catch(() => this.error(message.channel, 'Unable to send you a DM.'));
return message.addReaction('modSuccess:578750988907970567');
} catch (err) {
return this.client.util.handleError(err, message, this);

View File

@ -24,7 +24,7 @@ export default class SSS_Password_Reset extends Command {
connection_id: 'con_T3ELEx2reigKMSlP',
});
const channel = await this.client.getDMChannel(ctx.message.author.id);
channel.createMessage(`__**Library of Code sp-us | Identity & Account Management**__\n\nPlease click the link below to reset your password.\n\n${passwordTicket.ticket}`).catch(() => this.error(ctx.message.channel, 'Unable to send you a DM.'));
channel.createMessage(`__**Library of Code Inc | Identity & Account Management**__\n\nPlease click the link below to reset your password.\n\n${passwordTicket.ticket}`).catch(() => this.error(ctx.message.channel, 'Unable to send you a DM.'));
return ctx.message.addReaction('modSuccess:578750988907970567');
} catch (err) {
return this.client.util.handleError(err, ctx.message, this);

View File

@ -85,7 +85,7 @@ export default class Whois extends Command {
embed.addField('Created At', `${moment(new Date(member.user.createdAt)).format('dddd, MMMM Do YYYY, h:mm:ss A')} ET`, true);
const score = await this.client.db.mongo.Score.findOne({ userID: member.id }).lean().exec();
if (score) {
await this.client.report.createInquiry(member.id, 'Library of Code sp-us | Bureau of Community Reports', 1);
await this.client.report.createInquiry(member.id, 'Library of Code Inc | Bureau of Community Reports', 1);
let totalScore = '0';
if (score.total < 200) totalScore = '---';
else if (score.total > 800) totalScore = '800';

View File

@ -125,7 +125,7 @@ export default class MessageReactionAdd extends Event {
_____________________________________________________________________
LIBRARY OF CODE SP-US | BOARD OF DIRECTORS
LIBRARY OF CODE INC | BOARD OF DIRECTORS
BOARD REGISTER SYSTEM https://board.ins/
`,
});
@ -136,4 +136,3 @@ export default class MessageReactionAdd extends Event {
}
}
}

View File

@ -175,7 +175,7 @@ export default async function departmentPager(client: Client): Promise<NodeJS.Ti
email: acknowledgement.emailAddress,
connection_id: 'con_T3ELEx2reigKMSlP',
});
channel.createMessage(`__**Library of Code sp-us | Identity & Account Management**__\n__Reset Password__\n\nPlease click on the link below to change your IAM password.\n${passwordTicket.ticket}`);
channel.createMessage(`__**Library of Code Inc | Identity & Account Management**__\n__Reset Password__\n\nPlease click on the link below to change your IAM password.\n${passwordTicket.ticket}`);
}
channel.createMessage(`__**Pager Number Creation**__\nYour individual pager number has been automatically created. Your number (PN) is ${randomPagerNumber}.`);
@ -220,7 +220,7 @@ export default async function departmentPager(client: Client): Promise<NodeJS.Ti
email: acknowledgement.emailAddress,
connection_id: 'con_T3ELEx2reigKMSlP',
});
channel.createMessage(`__**Library of Code sp-us | Identity & Account Management**__\n__Reset Password__\n\nPlease click on the link below to change your IAM password.\n${passwordTicket.ticket}`);
channel.createMessage(`__**Library of Code Inc | Identity & Account Management**__\n__Reset Password__\n\nPlease click on the link below to change your IAM password.\n${passwordTicket.ticket}`);
}
channel.createMessage(`__**Pager Number Creation**__\nYour individual pager number has been automatically created. Your number (PN) is ${randomPagerNumber}.`);
@ -266,7 +266,7 @@ export default async function departmentPager(client: Client): Promise<NodeJS.Ti
email: acknowledgement.emailAddress,
connection_id: 'con_T3ELEx2reigKMSlP',
});
channel.createMessage(`__**Library of Code sp-us | Identity & Account Management**__\n__Reset Password__\n\nPlease click on the link below to change your IAM password.\n${passwordTicket.ticket}`);
channel.createMessage(`__**Library of Code Inc | Identity & Account Management**__\n__Reset Password__\n\nPlease click on the link below to change your IAM password.\n${passwordTicket.ticket}`);
}
channel.createMessage(`__**Pager Number Creation**__\nYour individual pager number has been automatically created. Your number (PN) is ${randomPagerNumber}.`);
@ -312,7 +312,7 @@ export default async function departmentPager(client: Client): Promise<NodeJS.Ti
email: acknowledgement.emailAddress,
connection_id: 'con_T3ELEx2reigKMSlP',
});
channel.createMessage(`__**Library of Code sp-us | Identity & Account Management**__\n__Reset Password__\n\nPlease click on the link below to change your IAM password.\n${passwordTicket.ticket}`);
channel.createMessage(`__**Library of Code Inc | Identity & Account Management**__\n__Reset Password__\n\nPlease click on the link below to change your IAM password.\n${passwordTicket.ticket}`);
}
channel.createMessage(`__**Pager Number Creation**__\nYour individual pager number has been automatically created. Your number (PN) is ${randomPagerNumber}.`);
@ -358,7 +358,7 @@ export default async function departmentPager(client: Client): Promise<NodeJS.Ti
email: acknowledgement.emailAddress,
connection_id: 'con_T3ELEx2reigKMSlP',
});
channel.createMessage(`__**Library of Code sp-us | Identity & Account Management**__\n__Reset Password__\n\nPlease click on the link below to change your IAM password.\n${passwordTicket.ticket}`);
channel.createMessage(`__**Library of Code Inc | Identity & Account Management**__\n__Reset Password__\n\nPlease click on the link below to change your IAM password.\n${passwordTicket.ticket}`);
}
channel.createMessage(`__**Pager Number Creation**__\nYour individual pager number has been automatically created. Your number (PN) is ${randomPagerNumber}.`);
@ -404,7 +404,7 @@ export default async function departmentPager(client: Client): Promise<NodeJS.Ti
email: acknowledgement.emailAddress,
connection_id: 'con_T3ELEx2reigKMSlP',
});
channel.createMessage(`__**Library of Code sp-us | Identity & Account Management**__\n__Reset Password__\n\nPlease click on the link below to change your IAM password.\n${passwordTicket.ticket}`);
channel.createMessage(`__**Library of Code Inc | Identity & Account Management**__\n__Reset Password__\n\nPlease click on the link below to change your IAM password.\n${passwordTicket.ticket}`);
}
channel.createMessage(`__**Pager Number Creation**__\nYour individual pager number has been automatically created. Your number (PN) is ${randomPagerNumber}.`);