Code Monkey home page Code Monkey logo

bottimus's Introduction

bottimus Build Status

Bottimus is a music bot for Discord. It can play anything that the "Play network stream"-option in VLC-player can play as it uses exactly that.

Requirements

  • Java 8 (tested with OracleJDK and OpenJDK, OpenJDK also needs OpenJFX as JDA somehow requires it)
  • VLC player

Installation

  • Download the latest jar release from releases
  • Transfer it to your server or use it locally
  • Run it java -jar bottimus.jar
  • There should now be a generated configuration file next to it with default values. Stop the program and adjust it as necessary. You should specify the botuser you want to use and also join your guild / server beforehand.
  • Rerun the bot. Tmux or screen are recommended.

Usage

  • !hello - Get a greeting in the text channel
  • !greeting - Get a greeting in the voice channel
  • !play <url> - Add a youtube video / radiostation or anything streamable by VLC to the playlist
  • !next - Skip to the next song in the playlist
  • !previous - Go to the previous song in the playlist
  • !volume <volume> - Set the volume (advised between 0.0 and 1.0)
  • !mode <mode> - Set the playlist mode (normal or looping)
  • !status - Get the current status including the playlist

Used third party libraries

Name Version
JDA 1.2.2_139
reflections.org 0.9.9
VLCJ 3.8.0

License

This project is licensed under GNU General Public License v3.0. See LICENSE file for details.

bottimus's People

Contributors

fabianlupa avatar

Stargazers

kate avatar  avatar

Watchers

James Cloos avatar  avatar Patrick avatar

bottimus's Issues

Failed to get VLC installation directory

413 [main] WARN uk.co.caprica.vlcj.runtime.windows.WindowsRuntimeUtil - Failed to get VLC installation directory from the registry
com.sun.jna.platform.win32.Win32Exception: The system cannot find the file specified.
at com.sun.jna.platform.win32.Advapi32Util.registryGetStringValue(Advapi32Util.java:544)
at uk.co.caprica.vlcj.runtime.windows.WindowsRuntimeUtil.getVlcInstallDir(WindowsRuntimeUtil.java:64)
at uk.co.caprica.vlcj.discovery.windows.DefaultWindowsNativeDiscoveryStrategy.onGetDirectoryNames(DefaultWindowsNativeDiscoveryStrategy.java:56)
at uk.co.caprica.vlcj.discovery.StandardNativeDiscoveryStrategy.getDirectoryNames(StandardNativeDiscoveryStrategy.java:44)
at uk.co.caprica.vlcj.discovery.AbstractNativeDiscoveryStrategy.discover(AbstractNativeDiscoveryStrategy.java:59)
at uk.co.caprica.vlcj.discovery.NativeDiscovery.discover(NativeDiscovery.java:118)
at com.flaiker.bottimus.Main.main(Main.java:58)
470 [main] INFO uk.co.caprica.vlcj.discovery.NativeDiscovery - Discovery found libvlc at 'C:\Program Files (x86)\VideoLAN\VLC'
Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'libvlc': Native library (win32-x86-64/libvlc.dll) not found in resource path ([file:/C:/Program%20Files%20(x86)/VideoLAN/VLC/bottimus-v1.0.2.jar])
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:277)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:403)
at com.sun.jna.Library$Handler.(Library.java:147)
at com.sun.jna.Native.loadLibrary(Native.java:502)
at com.sun.jna.Native.loadLibrary(Native.java:481)
at uk.co.caprica.vlcj.binding.LibVlc.(LibVlc.java:115)
at com.flaiker.bottimus.Main.main(Main.java:59)

Audio is disabled?

java.lang.UnsupportedOperationException: Sorry! Audio is disabled due to an internal JDA error! Contact Dev!
at net.dv8tion.jda.managers.AudioManager.openAudioConnection(AudioManager.java:76)
at com.flaiker.bottimus.services.AudioService.init(AudioService.java:83)
at com.flaiker.bottimus.listeners.CommandListener.onGuildMessageReceived(CommandListener.java:49)
at net.dv8tion.jda.hooks.ListenerAdapter.onEvent(ListenerAdapter.java:140)
at net.dv8tion.jda.hooks.InterfacedEventManager.handle(InterfacedEventManager.java:54)
at net.dv8tion.jda.handle.MessageReceivedHandler.handle(MessageReceivedHandler.java:45)
at net.dv8tion.jda.requests.WebSocketClient.onTextMessage(WebSocketClient.java:153)
at com.neovisionaries.ws.client.ListenerManager.callOnTextMessage(ListenerManager.java:352)
at com.neovisionaries.ws.client.ReadingThread.callOnTextMessage(ReadingThread.java:233)
at com.neovisionaries.ws.client.ReadingThread.callOnTextMessage(ReadingThread.java:211)
at com.neovisionaries.ws.client.ReadingThread.handleTextFrame(ReadingThread.java:910)
at com.neovisionaries.ws.client.ReadingThread.handleFrame(ReadingThread.java:693)
at com.neovisionaries.ws.client.ReadingThread.main(ReadingThread.java:102)
at com.neovisionaries.ws.client.ReadingThread.run(ReadingThread.java:61)

Obviously this is saying audio is disabled. I would like to be able to run this on my VM which has no audio software, or hardware, other than VLC. I'm tired of python bots crashing every ten minutes (Seriously, did they steal code from Windows ME?) and I can't for the life of me get anything else to run. I seen this bot today and was really hoping that it would work, especially as it uses VLC (LOVE IT! Been a VLC user since around 03 I believe!) Anyways, any help would really be appreciated! :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.