LinkedIn โข Website โข Email Me
Hi, I am a developer and a hobbyist game dev :)
SPLITE - Discord Bot with Slash Command Handler and Endpoint Handler, supporting AI, Music, Moderation, and more!
License: GNU General Public License v3.0
Upon restarting the application, the slash commands are not always registered
To reproduce, start the bot and add it to a server. Then restart the bot. The slash commands no longer are registered
Just adding the problem I mentioned on the support server.
if I delete a slash command, it still remains in the bot as registered and working even though the command doesn't exist in the bot files.
when I changed the default prefix (
example if change from $ to ? the ? is not working only the $
Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
Can you make a system with multi-language support I think this is also good, hope you try it
Describe alternatives you've considered
The language can be selected through the context menu, and it will be handy for more people, I hope
Additional context
hmm
TypeError: Cannot open database because the directory does not exist
at new Database (C:\Users\rando\Desktop\just bot\node_modules\better-sqlite3\lib\database.js:59:9)
at Object. (C:\Users\rando\Desktop\just bot\src\utils\db.js:5:12)
at Module._compile (node:internal/modules/cjs/loader:1126:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
at Module.load (node:internal/modules/cjs/loader:1004:32)
at Function.Module._load (node:internal/modules/cjs/loader:839:12)
at Module.require (node:internal/modules/cjs/loader:1028:19)
at require (node:internal/modules/cjs/helpers:102:18)
at new Client (C:\Users\rando\Desktop\just bot\src\Client.js:21:19)
at Object. (C:\Users\rando\Desktop\just bot\app.js:8:16)
PS C:\Users\rando\Desktop\just bot>
why it give me this error?
how can we get more than one owner to use the "owner only" commands?
I tried:
{
"ownerId": ["6808104824585561636", "685831186545561636"]
}
but it doesn't work like that... any suggestions on how it might work?
2022-09-11 23:35:17 - info [app.js]: Initializing...
/home/Bot/node_modules/discord-player/dist/Player.js:46
if (this.client?.options?.intents && !new discord_js_1.IntentsBitField(this.client?.options?.intents).has(discord_js_1.IntentsBitField.Flags.GuildVoiceStates)) {
^
TypeError: discord_js_1.IntentsBitField is not a constructor
at new Player (/home/Bot/node_modules/discord-player/dist/Player.js:46:47)
at new Client (/home/Bot/src/Client.js:53:23)
at Object. (/home/Bot/app.js:15:16)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47
Please add Music Lavalink with commands button's
When starting the bot everything loads fine until the following error code pops up in the console
TypeError: Command is not a constructor
at Client.tryLoadCommand (/home/runner/Odin/src/Client.js:200:25)
at /home/runner/Odin/src/Client.js:186:27
at Array.forEach (<anonymous>)
at /home/runner/Odin/src/Client.js:184:22
at Array.forEach (<anonymous>)
at Client.loadCommands (/home/runner/Odin/src/Client.js:182:59)
at /home/runner/Odin/app.js:18:12
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
exit status 1
The slash commands are not being registered per server. However the commands do show up when the bot is first invited to a server
To reproduce:
I suspect there is something weird going on in registerAllSlashCommands
in Client.js
when you use userPermissions: ['something'] with slash commands, they don't work, permissions don't work with slash.
it says: Method Not Allowed
when someone invite the bot to their guilds there's an error in console log, idk what caused this error
ReferenceError: confessions is not defined at utils.js and guildCreate.js
Describe the bug
When i put npm install in the console the console say to me that:
npm install
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated @discordjs/[email protected]: no longer supported
npm WARN deprecated @discordjs/[email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated [email protected]: Use your platform's native performance.now() and performance.timeOrigin.
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142
npm WARN deprecated [email protected]: This version is no longer supported. Please switch to v6.x
npm WARN deprecated [email protected]: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
npm WARN deprecated [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated [email protected]: no longer supported
npm ERR! code 1
npm ERR! path C:\Users\MACHENIKE\Documents\ManiDex BOT\node_modules\better-sqlite3
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c prebuild-install || npm run build-release
npm ERR! > [email protected] build-release
npm ERR! > node-gyp rebuild --release
npm ERR! prebuild-install warn install No prebuilt binaries found (target=19.0.0 runtime=node arch=x64 libc= platform=win32)
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | win32 | x64
npm ERR! gyp info find Python using Python version 3.11.3 found at "C:\Users\MACHENIKE\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\python.exe"
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! find VS msvs_version not set from command line or npm config
npm ERR! gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
npm ERR! gyp ERR! find VS checking VS2022 (17.2.32630.192) found at:
npm ERR! gyp ERR! find VS "C:\Program Files\Microsoft Visual Studio\2022\Professional"
npm ERR! gyp ERR! find VS - found "Visual Studio C++ core features"
npm ERR! gyp ERR! find VS - missing any VC++ toolset
npm ERR! gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use
npm ERR! gyp ERR! find VS not looking for VS2015 as it is only supported up to Node.js 18
npm ERR! gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! find VS **************************************************************
npm ERR! gyp ERR! find VS You need to install the latest version of Visual Studio
npm ERR! gyp ERR! find VS including the "Desktop development with C++" workload.
npm ERR! gyp ERR! find VS For more information consult the documentation at:
npm ERR! gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
npm ERR! gyp ERR! find VS **************************************************************
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Could not find any Visual Studio installation to use
npm ERR! gyp ERR! stack at VisualStudioFinder.fail (C:\Users\MACHENIKE\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:122:47)
npm ERR! gyp ERR! stack at C:\Users\MACHENIKE\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:75:16
npm ERR! gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Users\MACHENIKE\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:369:14)
npm ERR! gyp ERR! stack at C:\Users\MACHENIKE\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:71:14
npm ERR! gyp ERR! stack at VisualStudioFinder.findVisualStudio2015 (C:\Users\MACHENIKE\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:353:14)
npm ERR! gyp ERR! stack at C:\Users\MACHENIKE\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:67:12
npm ERR! gyp ERR! stack at VisualStudioFinder.parseData (C:\Users\MACHENIKE\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:237:5)
npm ERR! gyp ERR! stack at C:\Users\MACHENIKE\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:143:14
npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:404:7)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28)
npm ERR! gyp ERR! System Windows_NT 10.0.22621
npm ERR! gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\MACHENIKE\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--release"
npm ERR! gyp ERR! cwd C:\Users\MACHENIKE\Documents\ManiDex BOT\node_modules\better-sqlite3
npm ERR! gyp ERR! node -v v19.0.0
npm ERR! gyp ERR! node-gyp -v v9.3.0
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\MACHENIKE\AppData\Local\npm-cache_logs\2023-07-08T15_56_33_147Z-debug-0.log
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Install all the packages
Screenshots (OPTIONAL)
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.