Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //META<inuse=true>
- //META<author=EllyMent>
- function play(connection, sound_path) {
- if(!util.playSound(sound_path)) {
- util.error("Your sound was unable to be played; either it could not be found or it is unsupported.");
- }
- util.error(global.currentSound().getName());
- connection.sendMessage(global.currentChannel(), "Now playing: "+sound.currentSound().getName());
- }
- function stop(connection, args) {
- util.stopSound();
- }
- function pause(connection, args) {
- util.pauseSound();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement