AAAA
This commit is contained in:
parent
4b9b8b726c
commit
fed446b7f8
|
@ -174,7 +174,10 @@ router.post('/import', authenticate, upload.single('fileInput'), async (req, res
|
||||||
for (const line of lines) {
|
for (const line of lines) {
|
||||||
// This is a text file, split by "x/"", get [0], then split by / and get the last element, that will be an ID. All other values are static.
|
// This is a text file, split by "x/"", get [0], then split by / and get the last element, that will be an ID. All other values are static.
|
||||||
const robloxId = line.split('x/')[0].split('/').pop();
|
const robloxId = line.split('x/')[0].split('/').pop();
|
||||||
const reasonLong = line.split('/profile ')[1];
|
let reasonLong = line.split('/profile ')[1];
|
||||||
|
if (reasonLong.length > 255) {
|
||||||
|
reasonLong = reasonLong.substring(0, 255);
|
||||||
|
}
|
||||||
const reasonShort = "Listed by MFD";
|
const reasonShort = "Listed by MFD";
|
||||||
const moderator = "MFD";
|
const moderator = "MFD";
|
||||||
const reasonsFlag = flags.addFlag(0, reasonFlags.CHILD_SAFETY)
|
const reasonsFlag = flags.addFlag(0, reasonFlags.CHILD_SAFETY)
|
||||||
|
|
Loading…
Reference in a new issue