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

Update discord.js 14 #2

Draft
wants to merge 39 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
4151ae0
yarn
catplvsplus Jul 24, 2022
ef32824
no reason to change yarn version
catplvsplus Jul 24, 2022
4b25c79
sus
catplvsplus Jul 24, 2022
05f4527
Merge branch 'main' into update
catplvsplus Jul 28, 2022
a3002d8
rewrite
catplvsplus Jul 29, 2022
d9c3aa0
update
catplvsplus Jul 29, 2022
5d8f74e
load commands
catplvsplus Jul 29, 2022
8e69cbf
update
catplvsplus Jul 29, 2022
d5a58b4
update
catplvsplus Aug 3, 2022
dc99739
update dependencies
catplvsplus Aug 4, 2022
2e109f3
update dependencies
catplvsplus Aug 9, 2022
255d65d
uwu
catplvsplus Sep 5, 2022
b0f874c
susly
catplvsplus Sep 5, 2022
687f48f
update
catplvsplus Sep 8, 2022
bd1db48
work
catplvsplus Sep 11, 2022
bea594a
database
catplvsplus Sep 11, 2022
dfb34d1
some changes
catplvsplus Sep 11, 2022
071fa37
sus
catplvsplus Sep 11, 2022
2ad5f8a
rewrite database
catplvsplus Sep 12, 2022
1bbaa9d
classes
catplvsplus Sep 12, 2022
cd80564
:cry:
catplvsplus Sep 12, 2022
23f9150
update
catplvsplus Sep 12, 2022
9424e98
create
catplvsplus Sep 12, 2022
26bfbb6
create
catplvsplus Sep 12, 2022
bb40e37
fix
catplvsplus Sep 12, 2022
adc63fd
updit uwu
catplvsplus Sep 12, 2022
1bf55bf
another function
catplvsplus Sep 12, 2022
a75f0bc
update
catplvsplus Sep 12, 2022
281b8fb
methods
catplvsplus Sep 12, 2022
137820f
clear
catplvsplus Sep 12, 2022
1aed765
working cached queue
catplvsplus Sep 13, 2022
903974f
fix
catplvsplus Sep 13, 2022
cd7e445
temporary fix
catplvsplus Sep 13, 2022
ae84c8f
debug
catplvsplus Sep 13, 2022
3fb3471
mom
catplvsplus Sep 13, 2022
80dc00c
dont use database
catplvsplus Dec 7, 2022
bffce6d
initial proj
catplvsplus Dec 8, 2022
044b021
e
catplvsplus Dec 8, 2022
47c49bf
redo
catplvsplus Dec 10, 2022
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
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.yml]
indent_size = 2
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,4 @@ modules
.stignore

# config
config/EPlayer
config
1 change: 0 additions & 1 deletion Procfile

This file was deleted.

3 changes: 0 additions & 3 deletions clearmodules.js

This file was deleted.

19 changes: 0 additions & 19 deletions config/BotStatus/config.yml

This file was deleted.

3 changes: 0 additions & 3 deletions config/nocrash/config.yml

This file was deleted.

2,566 changes: 2,566 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

35 changes: 15 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,30 @@
{
"name": "e-player",
"version": "1.2.0",
"description": "Discord music player",
"author": "FalloutStudios",
"license": "GPL-3.0",
"scripts": {
"clean": "node clearmodules.js",
"build": "yarn run clean && npx tsc",
"test": "yarn run build && npx reciple -D -c reciple.test.yml",
"postinstall": "yarn build",
"clean": "npx rimraf modules",
"build": "npm run clean && npx tsc",
"test": "npm run build && npx rimraf config/e-player && npx reciple -D -c reciple.yml",
"start": "npx reciple"
},
"dependencies": {
"@discordjs/opus": "^0.8.0",
"@ghextercortes/djs-pagination": "^1.0.0",
"discord-player": "^5.2.2",
"discord.js": "^13.8.1",
"fallout-utility": "^1.4.2",
"genius-lyrics": "^4.3.8",
"libsodium-wrappers": "^0.7.10",
"ms": "^2.1.3",
"opusscript": "^0.0.8",
"reciple": "^1.7.0",
"sodium": "^3.0.2",
"tweetnacl": "^1.0.3",
"yaml": "^2.1.1"
"discord-player": "^5.3.2",
"discord.js": "^14.7.1",
"fallout-utility": "^1.5.21",
"play-dl": "^1.9.6",
"reciple": "^6.0.0",
"soundcloud-scraper": "^5.0.3",
"spotify-url-info": "^3.1.9",
"yaml": "^2.1.3",
"youtube-sr": "^4.3.4",
"ytdl-core": "^4.11.2"
},
"devDependencies": {
"@types/ms": "^0.7.31",
"@types/node": "^18.0.3",
"axios": "^0.27.2",
"typescript": "^4.7.4"
"@types/node": "^18.7.17",
"typescript": "^4.8.3"
}
}
109 changes: 0 additions & 109 deletions reciple.test.yml

This file was deleted.

146 changes: 79 additions & 67 deletions reciple.yml
Original file line number Diff line number Diff line change
@@ -1,109 +1,121 @@
# Your bot token here
# To use env variable as a token just do it like this env:env:TOKEN_ENV
# To use env variable as a token just do it like this env:TOKEN_ENV
token: env:TOKEN

# Message command prefix
prefix: 'e!'


# Commands options
commands:
messageCommand:
# enable message commands
enabled: true
# reply when an error occured
replyOnError: true
# Allow executing commands via aliases
allowCommandAlias: true
# command argument separator
commandArgumentSeparator: ' '
interactionCommand:
# Interaction command options
slashCommand:
# enable interaction commands
enabled: true
# reply when an error occured
replyOnError: true
replyOnError: false
# enable the use of command cooldowns
enableCooldown: true
# register interaction commands on bot ready
registerCommands: true
# allow register empty list of application commands
allowRegisterEmptyCommandList: true
# set required permissions for interaction commands
setRequiredPermissions: true
# accept replied or deffered command interaction
acceptRepliedInteractions: false
# register commands to specific guild(s) empty to make it global
guilds: []


# Commands permissions
permissions:
messageCommands:
# enable command permissions
enabled: true
commands: []
interactionCommands:
# enable command permissions
# overwrite command permissions
permissions:
# enable overwriten command permissions
enabled: false
commands:
- command: example-command
permissions:
- Administrator

# message command options
messageCommand:
# enable message commands
enabled: true
commands: []


# Ignored channel IDs
ignoredChannels:
# enable ignored channels
enabled: false
# convert to only allowed channels
convertToAllowList: false
# channel IDs
channels: []

# command prefix
prefix: '!'
# reply when an error occured
replyOnError: false
# enable the use of command cooldowns
enableCooldown: true
# allow executing commands via aliases
allowCommandAlias: true
# command argument separator
commandArgumentSeparator: ' '
# overwrite command permissions
permissions:
# enable overwriten command permissions
enabled: false
commands:
- command: example-command
permissions:
- Administrator

# Logger options
fileLogging:
# enable console output to file
enabled: true
# enable debug mode
debugmode: false
# Client logs
# enable if reciple will use the logger
clientLogs: true
# stringify logged JSONs
stringifyLoggedJSON: true
stringifyLoggedJSON: false
# log file path
logFilePath: './logs/latest.log'
logFilePath: logs/latest.log

# Client options
# Learn more about client options at https://discord.js.org/#/docs/discord.js/main/typedef/ClientOptions
client:
repliedUser: false
allowedMentions:
parse: ['users', 'roles']
failIfNotExists: false
intents:
- 'GUILDS'
- 'GUILD_MEMBERS'
- 'GUILD_MESSAGES'
- 'GUILD_VOICE_STATES'
- Guilds
- GuildMembers
- GuildMessages
- MessageContent
- GuildVoiceStates

# Bot replies
# Bot messages
messages:
notEnoughArguments: 'Not enough arguments.'
missingArguments: Not enough arguments.
invalidArguments: Invalid argument(s) given.
insufficientBotPerms:
content: Insufficient bot permissions.
ephemeral: true
noPermissions:
content: 'You do not have permission to use this command.'
content: You do not have permission to use this command.
ephemeral: true
cooldown:
content: You cannot execute this command right now due to the cooldown.
ephemeral: true
error:
content: 'An error occurred.'
content: An error occurred.
ephemeral: true

# Ignored Files
ignoredFiles: []


###################################################
# #
# ##### ##### # # ### ##### #### #
# # # # # # # # # # # # #
# # # ##### # # # # ### ### #### #
# # # # # # # # # # # # #
# ### # # # # ### ##### # # #
# #
###################################################
## Modifying these values below can cause errors ##
ignoredFiles:
- '_*'
- '.*'


####################################################
# #
# ##### ##### # # ### ##### #### #
# # # # # # # # # # # # #
# # # ##### # # # # ### ### #### #
# # # # # # # # # # # # #
# ### # # # # ### ##### # # #
# #
####################################################
## Modifying the values below could break reciple ##

# Modules folder
modulesFolder: 'modules'

# Load modules regardless of its supported versions
disableVersionCheck: false

# Current version
version: 1.7.0
version: ^6.0.0
Loading