-
Notifications
You must be signed in to change notification settings - Fork 711
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #395 from saiteja-madha/5.4.0-release
5.4.0 release
- Loading branch information
Showing
61 changed files
with
2,716 additions
and
2,252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
.DS_Store | ||
node_modules/ | ||
.git/ | ||
.vscode/ | ||
docs/ | ||
*.log | ||
*.tar.gz | ||
*.tar | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,89 @@ | ||
entrypoint = "bot.js" | ||
|
||
hidden = [".config", "package-lock.json"] | ||
|
||
[interpreter] | ||
command = [ | ||
"prybar-nodejs", | ||
"-q", | ||
"--ps1", | ||
"\u0001\u001b[33m\u0002\u0001\u001b[00m\u0002 ", | ||
"-i" | ||
] | ||
|
||
[[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_11" | ||
|
||
[env] | ||
XDG_CONFIG_HOME = "/home/runner/$REPL_SLUG/.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", "package.json", "package-lock.json"] | ||
|
||
[packager] | ||
language = "nodejs" | ||
run = "npm i --save-dev node@16.11.0 && npm config set prefix=$(pwd)/node_modules/node && export PATH=$(pwd)/node_modules/node/bin:$PATH && node ." | ||
|
||
[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" | ||
|
||
[deployment] | ||
run = ["sh", "-c", "node index.js"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,32 @@ | ||
# Base image | ||
FROM node:16-alpine | ||
|
||
# Set the working directory in the container | ||
WORKDIR /usr/src/app | ||
|
||
# Copy package.json and package-lock.json to the container | ||
COPY package*.json ./ | ||
|
||
# Install only production dependencies | ||
RUN npm ci --omit=dev | ||
|
||
# Bundle rest of the source code | ||
COPY . . | ||
|
||
EXPOSE 8080-8089 449 | ||
# Environment variables | ||
ENV BOT_TOKEN= | ||
ENV MONGO_CONNECTION= | ||
ENV ERROR_LOGS= | ||
ENV JOIN_LEAVE_LOGS= | ||
ENV BOT_SECRET= | ||
ENV SESSION_PASSWORD= | ||
ENV WEATHERSTACK_KEY= | ||
ENV STRANGE_API_KEY= | ||
ENV SPOTIFY_CLIENT_ID= | ||
ENV SPOTIFY_CLIENT_SECRET= | ||
|
||
# Expose port 8080 for dashboard | ||
EXPOSE 8080 | ||
|
||
# Define the command to run your Node.js application | ||
CMD [ "node", "bot.js" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.