diff --git a/.replit b/.replit index 43b147c..713aa2a 100644 --- a/.replit +++ b/.replit @@ -1,9 +1,83 @@ -language = "nodejs" -run = "npm start" +hidden = [".config"] +run = "npm run start" [env] DISCORD_TOKEN = "fillin" MONGO_TOKEN = "fillin" GIPHY_TOKEN = "fillin" WEBHOOK_ID = "fillin" -WEBHOOK_TOKEN = "fillin" \ No newline at end of file +WEBHOOK_TOKEN = "fillin" + +[[hints]] +regex = "Error \\[ERR_REQUIRE_ESM\\]" +message = "We see that you are using require(...) inside your code. We currently do not support this syntax. Please use 'import' instead when using external modules. (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import)" + +[nix] +channel = "stable-22_05" + +[env] +XDG_CONFIG_HOME = "/home/runner/.config" +PATH = "/home/runner/$REPL_SLUG/.config/npm/node_global/bin:/home/runner/$REPL_SLUG/node_modules/.bin" +npm_config_prefix = "/home/runner/$REPL_SLUG/.config/npm/node_global" + +[gitHubImport] +requiredFiles = [".replit", "replit.nix", ".config"] + +[packager] +language = "nodejs" + +[packager.features] +packageSearch = true +guessImports = true +enabledForHosting = false + +[unitTest] +language = "nodejs" + +[debugger] +support = true + +[debugger.interactive] +transport = "localhost:0" +startCommand = ["dap-node"] + +[debugger.interactive.initializeMessage] +command = "initialize" +type = "request" + +[debugger.interactive.initializeMessage.arguments] +clientID = "replit" +clientName = "replit.com" +columnsStartAt1 = true +linesStartAt1 = true +locale = "en-us" +pathFormat = "path" +supportsInvalidatedEvent = true +supportsProgressReporting = true +supportsRunInTerminalRequest = true +supportsVariablePaging = true +supportsVariableType = true + +[debugger.interactive.launchMessage] +command = "launch" +type = "request" + +[debugger.interactive.launchMessage.arguments] +args = [] +console = "externalTerminal" +cwd = "." +environment = [] +pauseForSourceMap = false +program = "./index.js" +request = "launch" +sourceMaps = true +stopOnEntry = false +type = "pwa-node" + +[languages] + +[languages.javascript] +pattern = "**/{*.js,*.jsx,*.ts,*.tsx}" + +[languages.javascript.languageServer] +start = "typescript-language-server --stdio" diff --git a/.replit.nix b/.replit.nix new file mode 100644 index 0000000..e69de29