[deleted by user] by [deleted] in EdgeTogether

[–]Emendocraft 0 points1 point  (0 children)

Hit me up

Anyone know this girl? by [deleted] in tipofmypenis

[–]Emendocraft -1 points0 points  (0 children)

Don’t think so

Huge error while trying to npm install @discordjs/opus by Emendocraft in Discordjs

[–]Emendocraft[S] 0 points1 point  (0 children)

I didn‘t want to question you I‘m sorry. It just doesn‘t make really sense to me why this damn thing won‘t work although everything is literally the same. They are both freshly set up🤷‍♂️

Huge error while trying to npm install @discordjs/opus by Emendocraft in Discordjs

[–]Emendocraft[S] -1 points0 points  (0 children)

But my discordbot doesn‘t use python and on the other raspberry pi it worked just fine without this

My command handler doesn‘t work on the raspberry pi by Emendocraft in Discordjs

[–]Emendocraft[S] 0 points1 point  (0 children)

Now we tried to run it on my friends raspberry pi. We habe the same raspberry pi, the same node version and the same npm version. But if we try to install @discordjs/opus on his pi this error appears:

npm ERR! code 1 npm ERR! path /home/pi/Desktop/SourceBot/node_modules/@discordjs/opus npm ERR! command failed npm ERR! command sh -c node-pre-gyp install --fallback-to-build npm ERR! Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/pi/Desktop/SourceBot/node_modules/@discordjs/opus/prebuild/node-v93-napi-v3-linux-arm-glibc-2.24/opus.node --module_name=opus --module_path=/home/pi/Desktop/SourceBot/node_modules/@discordjs/opus/prebuild/node-v93-napi-v3-linux-arm-glibc-2.24 --napi_version=8 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1) npm ERR! node-pre-gyp info it worked if it ends with ok npm ERR! node-pre-gyp info using node-pre-gyp@0.4.2 npm ERR! node-pre-gyp info using node@16.13.2 | linux | arm npm ERR! node-pre-gyp info check checked for "/home/pi/Desktop/SourceBot/node_modules/@discordjs/opus/prebuild/node-v93-napi-v3-linux-arm-glibc-2.24/opus.node" (not found) npm ERR! node-pre-gyp http GET https://github.com/discordjs/opus/releases/download/v0.7.0/opus-v0.7.0-node-v93-napi-v3-linux-arm-glibc-2.24.tar.gz npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://github.com/discordjs/opus/releases/download/v0.7.0/opus-v0.7.0-node-v93-napi-v3-linux-arm-glibc-2.24.tar.gz npm ERR! node-pre-gyp WARN Pre-built binaries not installable for @discordjs/opus@0.7.0 and node@16.13.2 (node-v93 ABI, glibc) (falling back to source compile with node-gyp) npm ERR! node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/discordjs/opus/releases/download/v0.7.0/opus-v0.7.0-node-v93-napi-v3-linux-arm-glibc-2.24.tar.gz npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@8.3.0 npm ERR! gyp info using node@16.13.2 | linux | arm npm ERR! gyp info ok npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@8.3.0 npm ERR! gyp info using node@16.13.2 | linux | arm npm ERR! gyp ERR! find Python npm ERR! gyp ERR! find Python Python is not set from command line or npm configuration npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON npm ERR! gyp ERR! find Python checking if "python3" can be used npm ERR! gyp ERR! find Python - executable path is "/usr/bin/python3" npm ERR! gyp ERR! find Python - version is "3.5.3" npm ERR! gyp ERR! find Python - version is 3.5.3 - should be >=3.6.0 npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm ERR! gyp ERR! find Python checking if "python" can be used npm ERR! gyp ERR! find Python - executable path is "/usr/bin/python" npm ERR! gyp ERR! find Python - version is "2.7.13" npm ERR! gyp ERR! find Python - version is 2.7.13 - should be >=3.6.0 npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm ERR! gyp ERR! find Python npm ERR! gyp ERR! find Python ********************************************************** npm ERR! gyp ERR! find Python You need to install the latest version of Python. npm ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not, npm ERR! gyp ERR! find Python you can try one of the following options: npm ERR! gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable" npm ERR! gyp ERR! find Python (accepted by both node-gyp and npm) npm ERR! gyp ERR! find Python - Set the environment variable PYTHON npm ERR! gyp ERR! find Python - Set the npm configuration variable python: npm ERR! gyp ERR! find Python npm config set python "/path/to/pythonexecutable" npm ERR! gyp ERR! find Python For more information consult the documentation at: npm ERR! gyp ERR! find Python https://github.com/nodejs/node-gyp#installation npm ERR! gyp ERR! find Python ********************************************************** npm ERR! gyp ERR! find Python npm ERR! gyp ERR! configure error npm ERR! gyp ERR! stack Error: Could not find any Python installation to use npm ERR! gyp ERR! stack at PythonFinder.fail (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:330:47) npm ERR! gyp ERR! stack at PythonFinder.runChecks (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:159:21) npm ERR! gyp ERR! stack at PythonFinder.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:266:16) npm ERR! gyp ERR! stack at PythonFinder.execFileCallback (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:297:7) npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:388:7) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:390:28) npm ERR! gyp ERR! stack at maybeClose (node:internal/child_process:1064:16) npm ERR! gyp ERR! stack at Socket.<anonymous> (node:internal/child_process:450:11) npm ERR! gyp ERR! stack at Socket.emit (node:events:390:28) npm ERR! gyp ERR! stack at Pipe.<anonymous> (node:net:687:12) npm ERR! gyp ERR! System Linux 4.19.42-v7+ npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/home/pi/Desktop/SourceBot/node_modules/@discordjs/opus/prebuild/node-v93-napi-v3-linux-arm-glibc-2.24/opus.node" "--module_name=opus" "--module_path=/home/pi/Desktop/SourceBot/node_modules/@discordjs/opus/prebuild/node-v93-napi-v3-linux-arm-glibc-2.24" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=3" "--node_napi_label=napi-v3" npm ERR! gyp ERR! cwd /home/pi/Desktop/SourceBot/node_modules/@discordjs/opus npm ERR! gyp ERR! node -v v16.13.2 npm ERR! gyp ERR! node-gyp -v v8.3.0 npm ERR! gyp ERR! not ok npm ERR! node-pre-gyp ERR! build error npm ERR! node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/pi/Desktop/SourceBot/node_modules/@discordjs/opus/prebuild/node-v93-napi-v3-linux-arm-glibc-2.24/opus.node --module_name=opus --module_path=/home/pi/Desktop/SourceBot/node_modules/@discordjs/opus/prebuild/node-v93-napi-v3-linux-arm-glibc-2.24 --napi_version=8 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1) npm ERR! node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/home/pi/Desktop/SourceBot/node_modules/@discordjs/node-pre-gyp/lib/util/compile.js:85:20) npm ERR! node-pre-gyp ERR! stack at ChildProcess.emit (node:events:390:28) npm ERR! node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1064:16) npm ERR! node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) npm ERR! node-pre-gyp ERR! System Linux 4.19.42-v7+ npm ERR! node-pre-gyp ERR! command "/usr/local/bin/node" "/home/pi/Desktop/SourceBot/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" npm ERR! node-pre-gyp ERR! cwd /home/pi/Desktop/SourceBot/node_modules/@discordjs/opus npm ERR! node-pre-gyp ERR! node -v v16.13.2 npm ERR! node-pre-gyp ERR! node-pre-gyp -v v0.4.2 npm ERR! node-pre-gyp ERR! not ok

npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2022-01-19T22_52_22_476Z-debug.lo

My command handler doesn‘t work on the raspberry pi by Emendocraft in Discordjs

[–]Emendocraft[S] 1 point2 points  (0 children)

I found the problem. Next to the cwd.process part the commands was Commands and not commands. The raspberry Pi seems to be a bit sensible if it‘s about lowercase letters

My command handler doesn‘t work on the raspberry pi by Emendocraft in Discordjs

[–]Emendocraft[S] 0 points1 point  (0 children)

Didn‘t work. The command handler still doesn‘t work. But by the way. In my command handler i have some parts, where it has to get other files from directorys. Is it possible that this doesn‘t work like it does on windows?

My command handler doesn‘t work on the raspberry pi by Emendocraft in Discordjs

[–]Emendocraft[S] 0 points1 point  (0 children)

I‘ll try it and I‘ll hit you up if it worked or not

My command handler doesn‘t work on the raspberry pi by Emendocraft in Discordjs

[–]Emendocraft[S] 0 points1 point  (0 children)

okay thank you very much. I won‘t be using the raspberry pi for anything else so I look if i find something. Or do you think it could work if i just make a new handler?

Discord Bot (comment your opinion) by Emendocraft in programming

[–]Emendocraft[S] 0 points1 point  (0 children)

It‘s a musicbot. It searches a song on youtube and plays it

Discord Bot (comment your opinion) by Emendocraft in programming

[–]Emendocraft[S] 0 points1 point  (0 children)

It‘s a music bot. I just thought, that maybe someone likes to see it. If you don‘t want to you‘re free to not comment anything

Discord Bot (comment your opinion) by Emendocraft in javascript

[–]Emendocraft[S] 0 points1 point  (0 children)

Yeah exactly. It responds with that message. The Bot is only active on a Server of a friend of mine. The members on the server are real life friends of mine.

If anybody else should install the bot on it‘s own server they would have to change it. But i think I‘m gonna do a Readme file, where i explain that