AngellusMortis / sxm-player

A pluggable SXM music player written in Python
MIT License
30 stars 12 forks source link

Slash commands not registering #9

Open joshtnr3 opened 2 years ago

joshtnr3 commented 2 years ago

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/sxmconfig.yml

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

username: "username@gmail.com" 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!