jagrosh / jagrosh/MusicBot

[Bug Report] Cannot set the avatar of the bot from .svg file

Open
#1,270 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
5.8k
Forks
2.8k
PR merge metrics
No merged PRs in 30d

Description

### Bug Description

The avatar of the bot doesn't change to that provided in the [link](https://pl.wikipedia.org/wiki/Uniwersytet_Jagiello%C5%84ski#/media/Plik:Herb_Uniwersytetu_Jagiello%C5%84skiego.svg) which is the file with .svg format. Additionally, it prints "🎶 Successfully changed avatar."
![image](https://user-images.githubusercontent.com/77748206/212559456-3ce9f052-4e51-489e-a6e0-6a5ca7d00d44.png)

### Steps to Reproduce

1. !setavatar https://pl.wikipedia.org/wiki/Uniwersytet_Jagiello%C5%84ski#/media/Plik:Herb_Uniwersytetu_Jagiello%C5%84skiego.svg

### Expected Result

Avatar is changed to this provided in link and message "🎶 Successfully changed avatar." is sent to text channel

### Debug Output

```
System Properties:
java.version = 17.0.4.1
java.vm.name = OpenJDK 64-Bit Server VM
java.vm.specification.version = 17
java.runtime.name = OpenJDK Runtime Environment
java.runtime.version = 17.0.4.1+1
java.specification.version = 17
os.arch = amd64
os.name = Windows 10

JMusicBot Information:
Version = 0.3.8
Owner = 689431450508066911
Prefix = !
AltPrefix = null
MaxSeconds = 0
NPImages = false
SongInStatus = false
StayInChannel = false
UseEval = false
UpdateAlerts = true

Dependency Information:
JDA Version = 4.4.0_352
JDA-Utilities Version = 3.0.5
Lavaplayer Version = 1.3.78

Runtime Information:
Total Memory = 37
Used Memory = 16

Discord Information:
ID = 1029868760045207602
Guilds = 2
Users = 4
```

### Additional Info

_No response_

### Checklist

- [X] I have looked for information about this [within the documentation](https://jmusicbot.com/)
- [X] I have searched for similar issues [on the issues page](https://github.com/jagrosh/MusicBot/issues?q=is%3Aissue)
- [X] I am running the latest version of the bot: ![Release](https://img.shields.io/github/release/jagrosh/MusicBot.svg)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the !setavatar command handling and reproduce the issue with the SVG URL from the report. Check why the command reports success without changing the bot avatar, then verify that the avatar changes and the success message remains correct for this input.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.