Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

say command? #354

Open
wants to merge 351 commits into
base: v4
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
351 commits
Select commit Hold shift + click to select a range
d9959c9
update ignore files
saiteja-madha Sep 23, 2022
ad84e2e
fix interaction antiMassmention bug
saiteja-madha Sep 23, 2022
1a2d849
fix - giveawayStart: fails if invalid host is provided
saiteja-madha Sep 24, 2022
34bd95e
fix: giveaway setup missing access
saiteja-madha Sep 24, 2022
1477a0a
fix automod type error
saiteja-madha Sep 24, 2022
89638ff
fix: resolve ownerId
saiteja-madha Sep 24, 2022
244a641
Fix Missing Permissions
saiteja-madha Sep 24, 2022
209bfdc
fix safeSend
saiteja-madha Sep 24, 2022
1d56207
fix invalid time
saiteja-madha Sep 24, 2022
0d42f86
erela.js nodes sample config
saiteja-madha Sep 26, 2022
9fd4ef0
remove redundant docs
saiteja-madha Sep 26, 2022
804fe59
add missing wait() function
saiteja-madha Sep 26, 2022
e65ae64
minor config changes
saiteja-madha Sep 26, 2022
a9763de
Merge pull request #185 from saiteja-madha/v5-bug-fixes
saiteja-madha Sep 26, 2022
6e05bc4
5.0.1 release
saiteja-madha Sep 26, 2022
14cef22
Merge pull request #186 from saiteja-madha/v5.0.1-release
saiteja-madha Sep 26, 2022
fe7c8b5
Updated deprected functions to v14
Korsinemi Oct 2, 2022
7f1f6b3
fix: package.json & package-lock.json to reduce vulnerabilities
snyk-bot Nov 1, 2022
a051a7e
Update dockerfile
bunnydevx Nov 5, 2022
1af3d6e
Update Cookie storage
bunnydevx Nov 6, 2022
268feeb
Update depend - MongoStore + cookie update
bunnydevx Nov 6, 2022
f29c2e4
Update package-lock.json
bunnydevx Nov 6, 2022
c9ef12c
Update package.json
bunnydevx Nov 6, 2022
16b725f
Fixes Bug #196
saiteja-madha Nov 6, 2022
78669ae
autorole skip @everyone
saiteja-madha Nov 6, 2022
c345ba1
Support fetch options
saiteja-madha Nov 6, 2022
b6ea182
Support new API
saiteja-madha Nov 6, 2022
6b0ae25
Update Validator.js
saiteja-madha Nov 6, 2022
1124ac4
added api key for all strangeapi endpoints
saiteja-madha Nov 7, 2022
d9796cf
Merge pull request #229 from saiteja-madha/227-new-image-api
Nov 7, 2022
7bccc64
Merge pull request #226 from saiteja-madha/215-autorole-to-skip-unass…
Nov 7, 2022
41dea30
Merge pull request #225 from saiteja-madha/196-timeout-command
Nov 7, 2022
ae2f718
Update HttpUtils.js
saiteja-madha Nov 7, 2022
1eea1ad
Merge pull request #223 from saiteja-madha/snyk-fix-ad5a6a4c59c440a0a…
Nov 7, 2022
d55c63d
reputation leaderboard
saiteja-madha Nov 7, 2022
a09c1fd
Merge pull request #230 from saiteja-madha/221-reputation-leaderboard
Nov 7, 2022
cba7446
Feat #216 disable prefix commands
saiteja-madha Nov 7, 2022
402f2aa
fix purge command
saiteja-madha Nov 7, 2022
ba382d2
Fixes #222
saiteja-madha Nov 7, 2022
6606d41
fix #228
saiteja-madha Nov 7, 2022
2413cc1
feat: lavaclient implementation
saiteja-madha Nov 8, 2022
d833f48
Spotify support
saiteja-madha Nov 9, 2022
3d27c26
Fix connection
bunnydevx Nov 12, 2022
a0ab3cb
Update styling
saiteja-madha Nov 12, 2022
f047de2
Merge pull request #234 from saiteja-madha/River198-dashboard
Nov 12, 2022
fe1b634
Update node verson & port stack
bunnydevx Nov 12, 2022
1b830f7
Create Procfile
saiteja-madha Nov 12, 2022
10561a8
added default audio source
saiteja-madha Nov 12, 2022
a08b765
Update .replit run command
saiteja-madha Nov 12, 2022
2909fcb
bug fix #233
saiteja-madha Nov 12, 2022
f1f23dc
Create embed.js
saiteja-madha Nov 14, 2022
1ff1d86
Merge pull request #236 from saiteja-madha/233-unhandled-exception
Nov 14, 2022
e91b97f
Merge pull request #240 from saiteja-madha/183-replit-heroku-support
Nov 14, 2022
a9ec5f3
Merge pull request #239 from saiteja-madha/97-slash-embed-command
Nov 14, 2022
5e83c47
Merge pull request #232 from saiteja-madha/219-replace-erelajs
Nov 14, 2022
af4b4eb
Merge pull request #231 from saiteja-madha/153-purge-command-bug
Nov 14, 2022
cc9b7ec
Merge branch 'v5.1.0' into River198-patch-1
Nov 14, 2022
5fd5f3f
Update dockerfile
Nov 14, 2022
6804e33
Merge pull request #235 from saiteja-madha/River198-patch-1
Nov 14, 2022
43e5b83
Merge pull request #197 from Furrycality/main
Nov 14, 2022
e5381db
Bump dependencies 🆙
saiteja-madha Nov 14, 2022
66c0dee
5.1.0 release
saiteja-madha Nov 14, 2022
a2192ad
update docker
saiteja-madha Nov 14, 2022
f0e0656
5.1.0 docs
saiteja-madha Nov 14, 2022
0588eea
Merge pull request #241 from saiteja-madha/v5.1.0
Nov 14, 2022
3ce6e23
Create LICENSE
Nov 14, 2022
b1af198
Fix deprecated vales & a typo
Jonathan5508 Nov 16, 2022
edc1c86
Added Thumbnails and fixed Position in Queue
EdVoids Nov 17, 2022
ee266c0
embed color support
Jonathan5508 Nov 17, 2022
3ab3fdf
Merge pull request #247 from saiteja-madha/type-fixes
Nov 17, 2022
86d36eb
Update line 6 - wrong response
bunnydevx Nov 18, 2022
1a04b6e
embed color support
Jonathan5508 Nov 19, 2022
5ce4047
embed color support
Jonathan5508 Nov 19, 2022
e37f461
typo correction
EdVoids Nov 20, 2022
148060d
Update kick.js
EdVoids Nov 20, 2022
3e6e1bd
Update kick.js
EdVoids Nov 20, 2022
6e84c3d
Lyrics Command
EdVoids Nov 20, 2022
d8785e3
Merge pull request #257 from saiteja-madha/River198-wrong-reply
Nov 21, 2022
e31f6b4
Merge pull request #254 from EdVoids/patch-2
Nov 21, 2022
fd947a7
Merge pull request #252 from saiteja-madha/embed-color-support
Nov 21, 2022
60ffd01
Lyric.js
EdVoids Nov 21, 2022
d66e5a2
Merge pull request #255 from EdVoids/patch-4
Jonathan5508 Nov 21, 2022
f4492e9
Fixes #258
Nov 25, 2022
d9747c7
Merge pull request #260 from saiteja-madha/258-rank-channel-not-work
Jonathan5508 Nov 25, 2022
4037713
fixed double mongodb connection
xF3d33 Dec 4, 2022
581bc1c
fixed deprecation warning by express
xF3d33 Dec 4, 2022
84773c3
disable dashboard by default
xF3d33 Dec 4, 2022
8c5432f
removed stuffs from the .env
xF3d33 Dec 4, 2022
11efa81
fixed error on empty embed
xF3d33 Dec 4, 2022
4d80b8d
type error
xF3d33 Dec 4, 2022
7d786c0
fixed error if you try to remove field with no fields
xF3d33 Dec 4, 2022
d9cca43
Added Colors
xF3d33 Dec 4, 2022
5f43bdd
fixed fields and fields inline (check the commit description)
xF3d33 Dec 4, 2022
2b51b24
ticket limit fix
xF3d33 Dec 8, 2022
93e4204
Merge pull request #271 from xF3d33/ticket-fix
Jonathan5508 Dec 9, 2022
d931712
Merge pull request #267 from xF3d33/embed.js-fix
Dec 9, 2022
ea0761a
prettier
saiteja-madha Dec 9, 2022
46babe6
Merge pull request #265 from xF3d33/main
Dec 9, 2022
5020ba7
Bump up to discord.js 14.7.1
saiteja-madha Dec 9, 2022
da52de0
SelectMenuBuilder -> StringSelectMenuBuilder
saiteja-madha Dec 9, 2022
c969d0c
merge fixes
saiteja-madha Dec 9, 2022
1ab6904
Fixes bug #261
saiteja-madha Dec 9, 2022
0da08a8
Fixes bug #262
saiteja-madha Dec 9, 2022
ae0bbc7
DEFAULT_SOURCE docs
saiteja-madha Dec 9, 2022
be9d3fd
Debug logs and possible fix for #246
saiteja-madha Dec 9, 2022
88705d4
Fixes bug #244
saiteja-madha Dec 10, 2022
bb18504
check if source is "youtube"
saiteja-madha Dec 10, 2022
ba3b285
Merge pull request #248 from EdVoids/patch-1
Dec 10, 2022
500bdb9
Merge pull request #272 from saiteja-madha/dashboard-fixes
Dec 10, 2022
f1e5fc4
Merge pull request #273 from saiteja-madha/263-discordjs-update
Dec 10, 2022
0375ddf
update dependencies ⬆️
saiteja-madha Dec 10, 2022
7490f59
Valid message from #245
saiteja-madha Dec 10, 2022
c7ba2e6
5.2.0 release
saiteja-madha Dec 10, 2022
d378bd7
prettier formatting
saiteja-madha Dec 10, 2022
0462158
typos and styling
saiteja-madha Dec 10, 2022
4853f25
Merge pull request #274 from saiteja-madha/v5.2.0
Jonathan5508 Dec 10, 2022
67370c5
Issue bot wont disconnect after play music
EdVoids Dec 10, 2022
ec84638
Update modlog.js
arturdealcantara Dec 11, 2022
fcc81e8
Fixing Queue text not sending
EdVoids Dec 13, 2022
f1686e5
Update voiceStateUpdate.js
EdVoids Dec 13, 2022
ccd66f4
update dependencies
saiteja-madha Jan 30, 2023
e82e1a5
fix mongoose deprecation warning
saiteja-madha Jan 30, 2023
24072a2
Fix TypeError: Invalid parameter(s)
saiteja-madha Jan 30, 2023
15cd31b
proper logging for searchException
saiteja-madha Jan 30, 2023
22df4bd
Merge pull request #280 from EdVoids/patch-7
Jan 30, 2023
ec85ab8
common to prefix and slash command
saiteja-madha Jan 31, 2023
93dffa9
Merge pull request #277 from arturdealcantara/patch-1
Jan 31, 2023
9f89670
Merge pull request #275 from EdVoids/patch-5
Jan 31, 2023
612d07d
fix greeting channel doesn't save #304
saiteja-madha Feb 13, 2023
6ab0293
added mongodb service
saiteja-madha Feb 13, 2023
8d0bfda
fixed automod not muting after strikes reached
Airwav Feb 14, 2023
5cc863b
fixed strikes = null after updating
Airwav Feb 14, 2023
a7f450e
Update guild-manager.js
Feb 15, 2023
614c8bc
Merge pull request #312 from Airwav/patch-2
Feb 15, 2023
82aa7b7
fixed mute length
Airwav Feb 15, 2023
42be7d5
Default timeout to 24hrs
Feb 15, 2023
610599d
Merge pull request #313 from Airwav/patch-1
Feb 15, 2023
20634d6
fix month bug ⌛🪲
saiteja-madha Feb 25, 2023
9b213a6
Added loggers for failed login #318
saiteja-madha Feb 25, 2023
96dccf6
null check
Mar 9, 2023
006fb77
fix: move permissions
saiteja-madha Mar 30, 2023
885a2ca
update dependencies
saiteja-madha Mar 30, 2023
2c2e191
5.3.0 release
saiteja-madha Apr 18, 2023
dd09fba
Merge pull request #340 from saiteja-madha/v5.3.0
Apr 18, 2023
49f9c49
Website Api Update
EdVoids May 8, 2023
c58d713
Api Link Update
EdVoids May 9, 2023
92134b4
Api Link Update Animal Command
EdVoids May 9, 2023
2df6e96
Api Link Update Fact Command
EdVoids May 9, 2023
ef0519c
added {member:mention} to greeting
Airwav May 29, 2023
e299cc5
Fix rank card for new usernames
rhaym-tech Jun 24, 2023
c2979e1
Fix Welcome/Farewell command not updating embed color
rhaym-tech Jun 26, 2023
b5a54b5
Fix Farewell not updating embed color
rhaym-tech Jun 26, 2023
28cf1b1
fix: upgrade discord.js from 14.9.0 to 14.11.0
snyk-bot Jun 28, 2023
6ab0b8e
fix: upgrade dotenv from 16.0.3 to 16.1.4
snyk-bot Jun 28, 2023
40e8886
fix: upgrade mongoose from 7.0.4 to 7.2.2
snyk-bot Jun 28, 2023
41ffc70
fix: upgrade node-fetch from 2.6.7 to 2.6.11
snyk-bot Jun 28, 2023
b8bf4b8
Fix ""null" is not snowflake." error.
rhaym-tech Jul 1, 2023
eef82d2
created staff_roles in ticket db
Airwav Jul 8, 2023
f4f20b9
fixed ticket staff roles and updated lavalink
Airwav Jul 8, 2023
f324d0e
fixed rank card username
Airwav Jul 8, 2023
db410ae
fixed greeting cant delete fields
Airwav Jul 8, 2023
bc3ed7c
fixed greeting fields dont update
Airwav Jul 8, 2023
27d19e5
fixed anti massmention
Airwav Jul 9, 2023
681f2d9
fixed null is not snowflake
Airwav Jul 9, 2023
559a931
fixed command usage
Airwav Jul 9, 2023
39c1f23
fixed greeting embed color not updating
Airwav Jul 9, 2023
de89613
Merge pull request #377 from rhaym-tech/patch-5
Jul 9, 2023
9d44aa1
Merge pull request #376 from saiteja-madha/snyk-upgrade-5fd521ed54c20…
Jul 9, 2023
aef6bf1
Merge pull request #375 from saiteja-madha/snyk-upgrade-c2a26c10864de…
Jul 9, 2023
5d4b30d
Merge pull request #374 from saiteja-madha/snyk-upgrade-c17c952b9fff9…
Jul 9, 2023
0c04965
Merge branch 'v5.3.1-release' into snyk-upgrade-465289ffb94c379b6af1c…
Jul 9, 2023
b87e0a5
Merge pull request #373 from saiteja-madha/snyk-upgrade-465289ffb94c3…
Jul 9, 2023
02c76dc
Merge pull request #371 from rhaym-tech/patch-2
Jul 9, 2023
e0c0dd1
Merge pull request #372 from rhaym-tech/patch-3
Jul 9, 2023
4537701
Merge pull request #353 from EdVoids/patch-1
Jul 9, 2023
2fd71ab
added quotation to owner id
Airwav Jul 9, 2023
bf128bf
Merge branch 'v5.3.1-release' of https://github.com/saiteja-madha/dis…
Airwav Jul 9, 2023
f976109
fixed replit issues
Airwav Jul 9, 2023
5b14fc1
refactor and fix processes
Airwav Jul 9, 2023
288c073
fixed suggestion system
Airwav Jul 9, 2023
da1f988
updated staff roles label
Airwav Jul 9, 2023
4904fea
fixed duplicate package
Airwav Jul 9, 2023
07ec717
fixed lavalink
Airwav Jul 9, 2023
a2e74a1
make tickets sent to category
Airwav Jul 9, 2023
3db02de
fixed deprecate
Airwav Jul 9, 2023
c028287
fixed with new usernames
Airwav Jul 11, 2023
2a916c5
fixed with new usernames
Airwav Jul 11, 2023
7c687eb
fixed with new usernames
Airwav Jul 11, 2023
ecc1abe
fixerd with new usernames
Airwav Jul 11, 2023
6c3605d
fixed with new username
Airwav Jul 11, 2023
4f85ca1
fixed with new username
Airwav Jul 11, 2023
0c3a43f
fixed with new username
Airwav Jul 11, 2023
c71ec8e
fixed for new username
Airwav Jul 11, 2023
ba043c4
bump dependencies
Jul 14, 2023
ff81645
Revert "bump dependencies"
Jul 14, 2023
606b974
Bump version to 5.4.0
Jul 14, 2023
238393e
bump up dependencies
Jul 14, 2023
0fd3909
Merge branch '5.4.0-release' into v5.3.1-release
Airwav Jul 14, 2023
a144899
updated lavalink node and data for fields
Airwav Jul 14, 2023
0263837
Merge branch 'v5.3.1-release' of https://github.com/saiteja-madha/dis…
Airwav Jul 14, 2023
c9e2715
fixed
Airwav Jul 14, 2023
aecf632
fixed
Airwav Jul 15, 2023
3f671fa
removed staff roles
Airwav Jul 15, 2023
66a5826
removed permission overwrite
Airwav Jul 15, 2023
1ba246b
updated and removed ticket staff roles
Airwav Jul 15, 2023
2c22420
removed staff roles from modal
Airwav Jul 15, 2023
6b6ae64
Merge pull request #393 from saiteja-madha/v5.3.1-release
Jul 15, 2023
34aeda7
update docs
Jul 15, 2023
9ac7e87
Merge pull request #360 from Airwav/patch-4
Jul 15, 2023
d434b02
fix merge conflicts
Jul 15, 2023
376edb3
fix formatting
Jul 15, 2023
21eb6c8
fix mongoose deprecation warning
Jul 15, 2023
9d4c0dd
enable prefix commands by default
Jul 15, 2023
3dc9f99
update docker details
Jul 15, 2023
d626814
Merge pull request #395 from saiteja-madha/5.4.0-release
Jul 15, 2023
ee179b0
bug fix
Jul 15, 2023
cb1018e
Merge pull request #396 from saiteja-madha/5.4.0-release
Jul 15, 2023
3193b42
Cannot read properties of undefined (reading 'find')
rhaym-tech Aug 8, 2023
ee606cc
Fix "Unknown Interaction" error when start a giveaway
rhaym-tech Aug 8, 2023
64086b4
fix: upgrade mongoose from 7.3.4 to 7.4.0
snyk-bot Aug 10, 2023
3f29ee4
Fix contexts count always 0
rhaym-tech Aug 31, 2023
8eb9889
Fix subcommands not loading
rhaym-tech Sep 5, 2023
901828e
fix search bug
rhaym-tech Sep 11, 2023
44ba6cf
Fix move command
rhaym-tech Oct 29, 2023
bc65868
Add Voice channels support
rhaym-tech Oct 29, 2023
bb0d574
Update README.md
saiteja-madha Nov 11, 2023
11a41cc
Update image API base url
rhaym-tech Nov 11, 2023
c4a23cd
fixed rank card
Airwav Nov 24, 2023
f4a179d
fix duplicate ranks
saiteja-madha Feb 3, 2024
1dba4a7
fix invite ranks
saiteja-madha Feb 3, 2024
84eb4a8
Merge pull request #406 from rhaym-tech/rhaym-tech-patch-1
saiteja-madha Feb 5, 2024
1bc67a6
Merge pull request #407 from rhaym-tech/rhaym-tech-patch-1-1
saiteja-madha Feb 5, 2024
f97b14e
Merge pull request #410 from saiteja-madha/snyk-upgrade-d63204adbd3f4…
saiteja-madha Feb 5, 2024
ee92064
bump dependencies
saiteja-madha Feb 5, 2024
d009b4f
Merge pull request #468 from saiteja-madha/fix-invite-ranks
saiteja-madha Feb 5, 2024
228872c
Merge pull request #446 from rhaym-tech/patch-5
saiteja-madha Feb 5, 2024
2731aea
Merge pull request #452 from saiteja-madha/Airwav-patch-1
saiteja-madha Feb 5, 2024
0f6ca65
Merge pull request #425 from rhaym-tech/patch-2
saiteja-madha Feb 5, 2024
310e731
Merge pull request #424 from rhaym-tech/patch-1
saiteja-madha Feb 5, 2024
2cb226b
Merge pull request #428 from rhaym-tech/patch-3
saiteja-madha Feb 5, 2024
6bc0226
Merge pull request #445 from rhaym-tech/patch-4
saiteja-madha Feb 5, 2024
eb92101
prettier format
saiteja-madha Feb 5, 2024
825ce35
create logs dir
saiteja-madha Feb 12, 2024
b1a3cc0
stats: precise seconds
saiteja-madha Feb 12, 2024
3a98d2a
bump to 5.5.0
saiteja-madha Feb 12, 2024
ca32242
Merge pull request #470 from saiteja-madha/5.5.0
saiteja-madha Feb 12, 2024
4b29f61
Create docker-publish.yml
saiteja-madha Oct 2, 2024
ba40600
Update docker-publish.yml
saiteja-madha Oct 2, 2024
4c42360
Pick image version from package.json
saiteja-madha Oct 2, 2024
34a1631
Skip push-to-registry
saiteja-madha Oct 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.DS_Store
node_modules/
.git/
.vscode/
docs/
*.log
*.tar.gz
*.tar
.env
44 changes: 24 additions & 20 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
# Bot Token [Required]
BOT_TOKEN=

# Mongo Database Connection String [Required]
MONGO_CONNECTION=

# Webhooks [Optional]
ERROR_LOGS=
JOIN_LEAVE_LOGS=

# Dashboard [Required for dashboard]
BOT_SECRET=
SESSION_PASSWORD=

# API Keys [Required for Weather Command]
WEATHERSTACK_KEY=

# SPOTFIY [Required for Spotify Support]
SPOTIFY_CLIENT_ID=
SPOTIFY_CLIENT_SECRET=
@@ -1,23 +0,0 @@
# Bot Token [Required]
BOT_TOKEN=

# Mongo Database Connection String [Required]
MONGO_CONNECTION=

# Webhooks [Optional]
ERROR_LOGS=
JOIN_LEAVE_LOGS=

# Dashboard [Required for dashboard]
BOT_SECRET=
SESSION_PASSWORD=

# Required for Weather Command (https://weatherstack.com)
WEATHERSTACK_KEY=

# Required for image commands (https://strangeapi.fun/docs)
STRANGE_API_KEY=

# SPOTFIY [Required for Spotify Support]
SPOTIFY_CLIENT_ID=
SPOTIFY_CLIENT_SECRET=
3 changes: 0 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,5 @@
"no-unused-vars": ["error", { "args": "none" }],
"jsdoc/no-undefined-types": 1,
"no-cond-assign": 0
},
"globals": {
"__appRoot": "readonly"
}
}
2 changes: 1 addition & 1 deletion .gitbook.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
root: ./docs/
structure:
readme: ../README.md
summary: SUMMARY.md
summary: SUMMARY.md
48 changes: 48 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Publish Docker image

on:
push:
branches: [main]

env:
REGISTRY: docker.io
IMAGE_NAME: saitejamadha/discord-js-bot

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
attestations: write
id-token: write
steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Log in to Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Extract version from package.json
id: version
run: echo "VERSION=$(jq -r .version package.json)" >> $GITHUB_ENV

- name: Build and push Docker image
id: push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ env.IMAGE_NAME }}:${{ env.VERSION }}

- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: false
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.DS_Store
.vscode/
node_modules/
logs/*
*.log
*.tar.gz
.env
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
4 changes: 3 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@
"singleQuote": false,
"printWidth": 120,
"bracketSpacing": true,
"arrowParens": "always"
"arrowParens": "always",
"endOfLine": "lf"
}

89 changes: 88 additions & 1 deletion .replit
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 = "node_modules/.bin/node bot.js"

[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"]
Loading
Loading