Added !when command
This commit is contained in:
parent
6947fb843e
commit
4151ab95f8
6 changed files with 159 additions and 6 deletions
|
@ -1,3 +1,5 @@
|
|||
const formatString = require('../helpers/strings').formatString
|
||||
|
||||
class ArtistSong {
|
||||
constructor (models) {
|
||||
this.models = models
|
||||
|
@ -49,11 +51,11 @@ class ArtistSong {
|
|||
$or: [
|
||||
{
|
||||
type: 'artist',
|
||||
value: currentSong.artist
|
||||
value: formatString(currentSong.artist)
|
||||
},
|
||||
{
|
||||
type: 'title',
|
||||
value: currentSong.title
|
||||
value: formatString(currentSong.title)
|
||||
}
|
||||
]
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue