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

Slash commands not registering #9

Open
joshtnr3 opened this issue Feb 16, 2022 · 0 comments
Open

Slash commands not registering #9

joshtnr3 opened this issue Feb 16, 2022 · 0 comments

Comments

@joshtnr3
Copy link

joshtnr3 commented Feb 16, 2022

  • sxm-player version: 0.2.5
  • Python version: 3.7.9
  • Operating System: MacOS 12.0.1
  • ffmpeg version: 4.4.1

Description: I have locally installed the bot and also used docker to run the bot. The bot runs because it turns off my SXM player due to only being able to run one at a time. I am able to add the bot to the discord server with administrator permissions. When typing "/" no commands show up for context other than the built-in commands for discord. When trying to use the command anyway "/music summon" the bot does not come into the channel I am in.

I am also using a command to load the bot from a config file on my desktop
$ sxm-player sxm_discord.DiscordPlayer -c ~/Desktop/SXM/sxm_config.yml

Here is the readout from my config file with values removed.

username: "[email protected]"
password: "complexpassword"
port: 9999
host: "127.0.0.1"
region: "US"
output_folder: "~/Desktop/SXM/sxm_config.yml"
token: "BOT_TOKEN_GOES_HERE"

Bot runs fine

Describe what you were trying to get done.
Tell us what happened, what went wrong, and what you expected to happen.

I was trying to run the bot but no commands worked. I haven't been able to locate the source file for the scripts to modify.

What I Did

Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.

MacBook-Pro ~ % sxm-player sxm_discord.DiscordPlayer -c ~/Desktop/SXM/sxm_config.yml
2022-02-16 12:59:21 MacBook-Pro.local sxm_player.music[76753] INFO Discord bot has started
2022-02-16 12:59:21 MacBook-Pro.local sxm_player[76749] INFO Attempting to connect SXM Client (next in 10 seconds)
2022-02-16 12:59:22 MacBook-Pro.local discord.client[76753] INFO logging in using static token
2022-02-16 12:59:22 MacBook-Pro.local discord.gateway[76753] INFO Shard ID None has sent the IDENTIFY payload.
2022-02-16 12:59:22 MacBook-Pro.local discord.gateway[76753] INFO Shard ID None has connected to Gateway: ["gateway-prd-main-r8wr",{"micros":97277,"calls":["discord-sessions-green-prd-2-27",{"micros":96257,"calls":["start_session",{"micros":76081,"calls":["api-prd-main-nhjn",{"micros":68111,"calls":["get_user",{"micros":4779},"add_authorized_ip",{"micros":12477},"get_guilds",{"micros":10559},"coros_wait",{"micros":2}]}]},"guilds_connect",{"micros":2,"calls":[]},"presence_connect",{"micros":19574,"calls":[]}]}]}] (Session ID: 9f69da8c009c01f36eb50eb8949d0060).
2022-02-16 12:59:24 MacBook-Pro.local sxm_player.sxm[76754] INFO sxm has started on http://127.0.0.1:9999
2022-02-16 12:59:24 MacBook-Pro.local discord_slash[76753] INFO Syncing commands...
2022-02-16 12:59:24 MacBook-Pro.local sxm_player.music[76753] INFO logged in as SXM_bot#xxxx (id: bot_id_value)
2022-02-16 12:59:24 MacBook-Pro.local sxm_player.music[76753] INFO Bot output: Accepting music commands
2022-02-16 12:59:24 MacBook-Pro.local sxm_player[76749] INFO SXM Client started. 413 channels available
2022-02-16 12:59:24 MacBook-Pro.local sxm_player.music[76753] INFO Bot output: SXM now available for streaming. 413 channels available
2022-02-16 12:59:25 MacBook-Pro.local discord_slash[76753] INFO Syncing permissions...
2022-02-16 12:59:25 MacBook-Pro.local discord_slash[76753] INFO Completed syncing all commands!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant