forked from saiteja-madha/discord-js-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ebf6489
commit ef4aa02
Showing
11 changed files
with
119 additions
and
7 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
npm-debug.log |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx lint-staged |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.DS_Store | ||
.eslintrc*.yml | ||
*.log | ||
*.tar.gz | ||
CONTRIBUTING.md | ||
examples | ||
docgen | ||
docs | ||
node_modules | ||
test |
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Development | ||
|
||
This may help you if you are editing this script | ||
|
||
## Structures(Folders) | ||
|
||
◟ dashboard - Website, Socket and routes | ||
|
||
◟ src | ||
╠ /commands - Bot commands and slash commands | ||
╠ /events - Client events | ||
╠ /structures - Classes | ||
╠ /util - Extra stuffs | ||
╠ /views - Page Rendering/Website | ||
|
||
◟ dockerfile / docker-compose.yml | ||
Docker is optional, read more about [Docker](https://www.docker.com/) | ||
|
||
## Permissions | ||
|
||
Permissions to add in commands to check them that it is available or not | ||
|
||
`ADMINISTRATOR` (implicitly has _all_ permissions, and bypasses all channel overwrites) | ||
`CREATE_INSTANT_INVITE` (create invitations to the guild) | ||
`KICK_MEMBERS` | ||
`BAN_MEMBERS` | ||
`MANAGE_CHANNELS` (edit and reorder channels) | ||
`MANAGE_GUILD` (edit the guild information, region, etc.) | ||
`ADD_REACTIONS` (add new reactions to messages) | ||
`VIEW_AUDIT_LOG` | ||
`PRIORITY_SPEAKER` | ||
`STREAM` | ||
`VIEW_CHANNEL` | ||
`SEND_MESSAGES` | ||
`SEND_TTS_MESSAGES` | ||
`MANAGE_MESSAGES` (delete messages and reactions) | ||
`EMBED_LINKS` (links posted will have a preview embedded) | ||
`ATTACH_FILES` | ||
`READ_MESSAGE_HISTORY` (view messages that were posted prior to opening Discord) | ||
`MENTION_EVERYONE` | ||
`USE_EXTERNAL_EMOJIS` (use emojis from different guilds) | ||
`VIEW_GUILD_INSIGHTS` | ||
`CONNECT` (connect to a voice channel) | ||
`SPEAK` (speak in a voice channel) | ||
`MUTE_MEMBERS` (mute members across all voice channels) | ||
`DEAFEN_MEMBERS` (deafen members across all voice channels) | ||
`MOVE_MEMBERS` (move members between voice channels) | ||
`USE_VAD` (use voice activity detection) | ||
`CHANGE_NICKNAME` | ||
`MANAGE_NICKNAMES` (change other members' nicknames) | ||
`MANAGE_ROLES` | ||
`MANAGE_WEBHOOKS` | ||
`MANAGE_EMOJIS` |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
version: "4" | ||
|
||
services: | ||
discord-js-bot: | ||
build: . | ||
image: discord-js-bot:latest | ||
container_name: discord-js-bot | ||
restart: unless-stopped | ||
networks: | ||
- lavalink-net | ||
depends_on: | ||
- lavalink | ||
volumes: | ||
- ./*:/usr/src/app/config.js:ro | ||
|
||
lavalink: | ||
image: fredboat/lavalink:dev | ||
container_name: music-lavalink | ||
hostname: lavalink | ||
restart: unless-stopped | ||
networks: | ||
- lavalink-net | ||
volumes: | ||
- ./application.yml:/opt/Lavalink/application.yml:ro | ||
|
||
networks: | ||
lavalink-net: |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM node:16-alpine | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY package*.json ./ | ||
|
||
RUN npm install | ||
|
||
COPY . . | ||
|
||
CMD [ "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