send notifications to mailing list for documentation approval
parent
213aa0b475
commit
0dc516b2bd
|
@ -62,6 +62,26 @@ export default class Root extends Route {
|
|||
case 'eo':
|
||||
title = 'Executive Order';
|
||||
color = 0xff00a7;
|
||||
this.server.client.util.transporter.sendMail({
|
||||
to: 'all-staff@lists.libraryofcode.org',
|
||||
from: 'Board Register System <internal@staff.libraryofcode.org>',
|
||||
text: `
|
||||
EXECUTIVE ORDER ${id}
|
||||
|
||||
ISSUED BY:
|
||||
${director.member.username}, ${director.user.pn.join(', ')}
|
||||
|
||||
SUBJECT:
|
||||
${payload.subject}
|
||||
|
||||
BODY:
|
||||
${payload.body}
|
||||
|
||||
_____________________________________________________________________
|
||||
LIBRARY OF CODE SP-US | BOARD OF DIRECTORS
|
||||
BOARD REGISTER SYSTEM https://board.ins/
|
||||
`,
|
||||
});
|
||||
break;
|
||||
|
||||
case 'motion':
|
||||
|
@ -77,6 +97,26 @@ export default class Root extends Route {
|
|||
case 'res':
|
||||
title = 'Resolution';
|
||||
color = 0x27b17a;
|
||||
this.server.client.util.transporter.sendMail({
|
||||
to: 'all-staff@lists.libraryofcode.org',
|
||||
from: 'Board Register System <internal@staff.libraryofcode.org>',
|
||||
text: `
|
||||
RESOLUTION ${id}
|
||||
|
||||
SPONSOR:
|
||||
${director.member.username}, ${director.user.pn.join(', ')}
|
||||
|
||||
SUBJECT:
|
||||
${payload.subject}
|
||||
|
||||
BODY:
|
||||
${payload.body}
|
||||
|
||||
_____________________________________________________________________
|
||||
LIBRARY OF CODE SP-US | BOARD OF DIRECTORS
|
||||
BOARD REGISTER SYSTEM https://board.ins/
|
||||
`,
|
||||
});
|
||||
break;
|
||||
|
||||
case 'confirmMotion':
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/* eslint-disable newline-per-chained-call */
|
||||
import { Emoji, GuildTextableChannel, Member, Message } from 'eris';
|
||||
import { Client, Event, RichEmbed } from '../class';
|
||||
|
||||
|
@ -101,6 +102,34 @@ export default class MessageReactionAdd extends Event {
|
|||
embed.setFooter('Library of Code sp-us | Board Register System', 'https://static.libraryofcode.org/library_of_code.png');
|
||||
embed.setTimestamp();
|
||||
|
||||
this.client.util.transporter.sendMail({
|
||||
to: 'all-staff@lists.libraryofcode.org',
|
||||
from: 'Board Register System <internal@staff.libraryofcode.org>',
|
||||
subject: `Proclamation ${proc.oID}`,
|
||||
text: `
|
||||
PROCLAMATION ${proc.oID}
|
||||
|
||||
SPONSOR:
|
||||
${message.embeds[0].author.name.split('#').slice(0, 1)}, ${message.embeds[0].author.name.split('#').slice(1).join(' ').split(', ').slice(1).join(', ')}
|
||||
|
||||
VOTING RESULTS:
|
||||
YEA: ${proc.results.yea}
|
||||
NAY: ${proc.results.nay}
|
||||
PRESENT ${proc.results.present}
|
||||
|
||||
SUBJECT:
|
||||
${proc.subject}
|
||||
|
||||
BODY:
|
||||
${proc.body}
|
||||
|
||||
|
||||
_____________________________________________________________________
|
||||
LIBRARY OF CODE SP-US | BOARD OF DIRECTORS
|
||||
BOARD REGISTER SYSTEM https://board.ins/
|
||||
`,
|
||||
});
|
||||
|
||||
await message.channel.createMessage({ embed });
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue