Skip to content

[Bug Report] Playlist with empty names can be created #514

Closed
@Proxymiity

Description

@Proxymiity

Describe the bug
When using [prefix]playlist make, a playlist is created with the name " ", and a '.txt' file is created in the Playlists folder.

To Reproduce
Steps to reproduce the behavior:

  1. Execute the playlist make command with no arguments passed

Expected behavior
The bot shouldn't create any playlist and should throw an error message with something like "Please enter a playlist name"

Screenshots
File with an empty name:
image
"Successfully created playlist ``!"
image

Debug Info

Debug info
System Properties:
  java.version = 1.8.0_265
  java.vm.name = OpenJDK 64-Bit Server VM
  java.vm.specification.version = 1.8
  java.runtime.name = OpenJDK Runtime Environment
  java.runtime.version = 1.8.0_265-8u265-b01-0+deb9u1-b01
  java.specification.version = 1.8
  os.arch = amd64
  os.name = Linux

JMusicBot Information:
  Version = 0.2.10
  Owner = 278230133176008704
  Prefix = //
  AltPrefix = ..
  MaxSeconds = 0
  NPImages = false
  SongInStatus = false
  StayInChannel = false
  UseEval = false
  UpdateAlerts = true

Dependency Information:
  JDA Version = 3.8.3_464
  JDA-Utilities Version = 2.1.5
  Lavaplayer Version = 1.3.50

Runtime Information:
  Total Memory = 648
  Used Memory = 206

Discord Information:
  ID = 512030715332919348
  Guilds = 100
  Users = 101485

Additional context
The playlist can be successfully deleted using playlist delete without arguments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions