Compare commits
2 Commits
8362ef0659
...
8048822859
Author | SHA1 | Date | |
---|---|---|---|
8048822859 | |||
03fc3e81c3 |
@ -7,6 +7,8 @@ const { getMyPlaylist } = require('./linx-commands')
|
|||||||
const chalk = require('chalk')
|
const chalk = require('chalk')
|
||||||
|
|
||||||
const owners = ['notnull']
|
const owners = ['notnull']
|
||||||
|
const helpers = ['notnull', 'rfa', 'substack']
|
||||||
|
|
||||||
const autojoin = ['#anarchybots']
|
const autojoin = ['#anarchybots']
|
||||||
|
|
||||||
const host = process.env.HOST || 'localhost'
|
const host = process.env.HOST || 'localhost'
|
||||||
@ -57,7 +59,7 @@ const handleQuit = event => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const handleReset = event => {
|
const handleReset = event => {
|
||||||
if (!owners.includes(event.nick)) return
|
if (!helpers.includes(event.nick)) return
|
||||||
reset(event)
|
reset(event)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,6 +53,7 @@ const addAllPlaylists = async event => {
|
|||||||
).then(() => {
|
).then(() => {
|
||||||
shuffleAllPlaylists()
|
shuffleAllPlaylists()
|
||||||
play()
|
play()
|
||||||
|
return event.reply('Successfully reset playlists.')
|
||||||
})
|
})
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return handleError(e, event)
|
return handleError(e, event)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user