Open TheAFKGamer10 opened 1 year ago
Hi, it seems like you're running each line individually rather than running them in a single command. Can you send the full interaction (input and output) from your console?
Also, I noticed that I forgot to update the commands.json file in a while. I might just make this process a little easier overall and remove the requirement to send a request manually.
wget https://github.com/JohnnyJayJay/instant-poll/blob/main/command.json
token="*thebottoken*"
appid="1127419979621466122"
curl -d "@command.json" \
-H "Content-Type: application/json" \
-H "Authorization: Bot $token" \
https://discord.com/api/v9/applications/$appid/commands
--2023-07-10 13:31:50-- https://github.com/JohnnyJayJay/instant-poll/blob/main/command.json
Resolving github.com (github.com)... 140.82.114.3
Connecting to github.com (github.com)|140.82.114.3|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11969 (12K) [text/plain]
Saving to: ‘command.json’
command.json 100%[======>] 11.69K --.-KB/s in 0.03s
2023-07-10 13:31:51 (446 KB/s) - ‘command.json’ saved [11969/11969]
curl: (3) URL using bad/illegal format or missing URL
-H: command not found
-bash: https://discord.com/api/v9/applications/1127419979621466122/commands: No such file or directory
Hi! Could you try the new hosting instructions? I've hopefully made it easier to update the slash commands and everything is up to date now, too. You can find everything in the README.
On this command there is an extra ` make sure to remove it
docker compose run -e UPDATE_COMMANDS=1 server`
I am also having the problem
docker compose up
[+] Running 1/0
✔ Container instant-poll-server-1 Created 0.0s
Attaching to instant-poll-server-1
instant-poll-server-1 | Jul 13, 2023 5:27:37 PM clojure.tools.logging$eval136$fn__139 invoke
instant-poll-server-1 | INFO: Starting instant-poll
instant-poll-server-1 | Jul 13, 2023 5:27:37 PM clojure.tools.logging$eval136$fn__139 invoke
instant-poll-server-1 | INFO: Starting messaging process
I have had this waiting for 2 hours and the bot is not online, the webserver is not up and the bot will not respond to commands. Any other help with this?
I am also having the problem
docker compose up [+] Running 1/0 ✔ Container instant-poll-server-1 Created 0.0s Attaching to instant-poll-server-1 instant-poll-server-1 | Jul 13, 2023 5:27:37 PM clojure.tools.logging$eval136$fn__139 invoke instant-poll-server-1 | INFO: Starting instant-poll instant-poll-server-1 | Jul 13, 2023 5:27:37 PM clojure.tools.logging$eval136$fn__139 invoke instant-poll-server-1 | INFO: Starting messaging process
I have had this waiting for 2 hours and the bot is not online, the webserver is not up and the bot will not respond to commands. Any other help with this?
There is no warning/error message indicated here. Have you set up the interactions endpoint in the developer portal? How do you test if the web server is up?
I fixed it, I added the extended port in the docker compose file and that fixed the problem. You might want to put this in the docker compose file from the start .
ports:
- "8090:8090"
I fixed it, I added the extended port in the docker compose file and that fixed the problem. You might want to put this in the docker compose file from the start .
ports: - "8090:8090"
It says that the host port will be picked by Docker by default and that you have to change this if you have a specific port you want to use. I don't want to impose a specific port on users, but I suppose I could give a default
When I try and publish the commands, I get the error
I have the token and app id set, I am wondering if it has something to do with the
-H "Authorization: Bot $token" \
part because it says its on line 3. Does anyone else have this issue and any idea on how to solve it. Thanks.