This commit is contained in:
Ean Milligan (Bastion) 2022-06-19 03:56:04 -04:00
parent 4a34596bee
commit 66f08bf538
2 changed files with 13 additions and 9 deletions

View File

@ -10,7 +10,7 @@ import { apiChannelManageActive } from './puts/apiChannelManageActive.ts';
export default {
delete: {
apiKeyDelete
apiKeyDelete,
},
get: {
apiKey,

View File

@ -180,11 +180,13 @@ export const apiRoll = async (requestEvent: Deno.RequestEvent, query: Map<string
if (b.size > 8388290) {
// Update return text
newMessage.content = `${apiPrefix}<@${query.get('user')
newMessage.content = `${apiPrefix}<@${
query.get('user')
}>${returnmsg.line1}\n${returnmsg.line2}\nDetails have been ommitted from this message for being over 2000 characters. Full details could not be attached to this messaged as a \`.txt\` file as the file would be too large for Discord to handle. If you would like to see the details of rolls, please send the rolls in multiple messages instead of bundled into one.`;
} else {
// Update return text
newMessage.content = `${apiPrefix}<@${query.get('user')
newMessage.content = `${apiPrefix}<@${
query.get('user')
}>${returnmsg.line1}\n${returnmsg.line2}\nFull details have been attached to this messaged as a \`.txt\` file for verification purposes.`;
newMessage.file = { 'blob': b, 'name': 'rollDetails.txt' };
}
@ -234,11 +236,13 @@ export const apiRoll = async (requestEvent: Deno.RequestEvent, query: Map<string
if (b.size > 8388290) {
// Update return text
newMessage.content = `${apiPrefix}<@${query.get('user')
newMessage.content = `${apiPrefix}<@${
query.get('user')
}>${returnmsg.line1}\n${returnmsg.line2}\nDetails have been ommitted from this message for being over 2000 characters. Full details could not be attached to this messaged as a \`.txt\` file as the file would be too large for Discord to handle. If you would like to see the details of rolls, please send the rolls in multiple messages instead of bundled into one.`;
} else {
// Update return text
newMessage.content = `${apiPrefix}<@${query.get('user')
newMessage.content = `${apiPrefix}<@${
query.get('user')
}>${returnmsg.line1}\n${returnmsg.line2}\nDetails have been ommitted from this message for being over 2000 characters. Full details have been attached to this messaged as a \`.txt\` file for verification purposes.`;
newMessage.file = { 'blob': b, 'name': 'rollDetails.txt' };
}