diff options
| author | Unknown <jtsshieh@outlook.com> | 2018-02-28 16:37:04 -0500 |
|---|---|---|
| committer | Unknown <jtsshieh@outlook.com> | 2018-02-28 16:37:04 -0500 |
| commit | 9e23c32dc1e43dfe0277ab9225778f1c4db6e9ae (patch) | |
| tree | 1bf10f0cc14c6a7a8ade06d405b6145d87a0d7e2 /Plugins | |
| parent | 0a69420c01e11e44de325db98dd856f221841ed3 (diff) | |
| parent | 7709022a53794b3c76b6eaf86dfe0a359addd6d7 (diff) | |
| download | PokeBot-9e23c32dc1e43dfe0277ab9225778f1c4db6e9ae.tar.gz PokeBot-9e23c32dc1e43dfe0277ab9225778f1c4db6e9ae.tar.bz2 PokeBot-9e23c32dc1e43dfe0277ab9225778f1c4db6e9ae.zip | |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'Plugins')
| -rw-r--r-- | Plugins/Music.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Plugins/Music.js b/Plugins/Music.js index 5088fdc..deffc4d 100644 --- a/Plugins/Music.js +++ b/Plugins/Music.js @@ -1,3 +1,23 @@ +/** ************************************** + * + * Music: Plugin for PokeBot that enables the Lavalink player. + * Copyright (C) 2018 TheEdge, jtsshieh, Alee + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + * *************************************/ + exports.resolveTrack = async (term, sc) => { const fetch = require('snekfetch'); let track = await fetch.get('http://localhost:2344/loadtracks?identifier=' + term, { headers: { Authorization: 'iamaverysecurepassword' } }); |
