b724229f06
* make the beginning height optional, defaulting to the trees current heigt * improved workflow * fix * new fix * Install modules * remove unnecessary call to build the tables * testing * f * f * oops * undev * fix const * new ci * versioning * Classes, Collections, and new Notification Relay * Fix CI for new env vars * Update to read contents of embeds * Update filter to check for embeds * Update to add includes check * Begin implementing role menu * Role menu ready for testing * Add missing emojis * Fixes, ready for testing * Tentative deploy * Documentation update * I think this fixes unchanging notifications * Update README.md * Make reminders visually distinct * Set Permissions * Added import for PermissionFlagsBits * Add ability to manually send ping from watch chan * CI update * Confusion * Make dev dockerization manual only * Dev Logging * Update reset command * Implement updating of notifications piecemeal * Unified error handling * Change to refresh commands not blindly update * Change to manual run only * Restructured file to allow async use * Move role menu setup and allow everyone to send it * Consolidate setupinfo into setup * Improved error handling * Update opt out method * Cleaning up junk * Added seconds parser and optout detection * Add opt out method * Consolidated to setup command * Add privacy setting and use new parser
34 lines
1.5 KiB
JavaScript
Executable File
34 lines
1.5 KiB
JavaScript
Executable File
/*
|
|
</setup:1065407649363005561>
|
|
</setupinfo:1065413032374706196>
|
|
</compare:1065346941166297128>
|
|
</setping:1068373237995683902>
|
|
</optout:1068753032801693758>
|
|
</watertime:1066970330029113444>
|
|
</timetoheight:1067727254634889227>
|
|
</reset:1065412317052944476>
|
|
</help:1065346941166297129>
|
|
</tree:972648557796524032>
|
|
</top trees:1051840665362894950>
|
|
*/
|
|
|
|
const fs = require('fs');
|
|
const replaceAll = require('string.prototype.replaceall');
|
|
const path = "./modules/input.txt";
|
|
const string = fs.readFileSync(path).toString();
|
|
let newString = replaceAll(string, '\* ', '');
|
|
newString = replaceAll(newString, '\r\n', '\\n');
|
|
newString = replaceAll(newString, '\t', ' - ');
|
|
newString = replaceAll(newString, '`/setup`', '</setup:1065407649363005561>');
|
|
newString = replaceAll(newString, '`/setupinfo`', '</setupinfo:1065413032374706196>');
|
|
newString = replaceAll(newString, '`/compare`', '</compare:1065346941166297128>');
|
|
newString = replaceAll(newString, '`/watertime`', '</watertime:1066970330029113444>');
|
|
newString = replaceAll(newString, '`/timetoheight`', '</timetoheight:1067727254634889227>');
|
|
newString = replaceAll(newString, '`/reset`', '</reset:1065412317052944476>');
|
|
newString = replaceAll(newString, '`/help`', '</help:1065346941166297129>');
|
|
newString = replaceAll(newString, '`/commands`', '</commands:1069501270454456331>');
|
|
newString = replaceAll(newString, '`/notifications`', '</notifications:0>');
|
|
newString = replaceAll(newString, '`/rolemenu`', '</rolemenu:0>');
|
|
newString = replaceAll(newString, '`', '``');
|
|
fs.writeFileSync(path, newString);
|
|
return "Done"; |