Giter VIP home page Giter VIP logo

botamusique's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

botamusique's Issues

Bot sends no mumble reply if text message is too long.

E.g. running !list with a huge list of files in the music directory leads to a long reply message. Depending on the mumble server's settings this message might be rejected by the server.

The bot should be able to determine whether a given message was successfully sent (or determine the maximimum message length in characters). Then the message should be either truncated, split into multiple messages, or it should just send an error message.

Improve URL Playback

  • Pre-download track when queued
  • Dont re-download already downloaded tracks
  • Delete old tracks if they were not played in the last x days (or if space is tight)
  • Show cached tracks

Queue/Now playing: Add 'user' info

  • Items in the queue and the 'now playing' item should show the user who added this track to the queue.
  • For requests made via the web interface we could just name this "user" web or something similar
    • And/Or (if possible) use the http basic auth username from the proxy (if available), preferably without passing the pw to the application

Bot crashes on receiving !playurl command without HTML formatting

Describe the bug
See Steps to reproduce.

Affected version
be6b4d4

Steps To Reproduce
Steps to reproduce the behavior:

  1. Send the bot a private message with a !playurl <url> command without HTML formatting of the message.
  2. The bot crashes and disconnects from mumble

Expected behavior
The bot should play the given sound file.

Screenshots/Log

Traceback (most recent call last):
  File "mumbleBot.py", line 350, in <module>
    botamusique = MumbleBot(args)
  File "mumbleBot.py", line 80, in __init__
    self.loop()
  File "mumbleBot.py", line 308, in loop
    self.launch_next()
  File "mumbleBot.py", line 238, in launch_next
    url = m.group(1)
AttributeError: 'NoneType' object has no attribute 'group'
bot exited with return code 1

Add !info command

Show:

  • track name
  • source
  • time info (duration, current timestamp)
  • who requested it
  • track statistics? (see #34 )

Improve command handling structure

  • It should be somehow re-architected so that mumble-commands and the web interface access the same object/function (to minimize duplicate code).

Merge back to upstream repo

After we finished most (major) issues, properly reviewed, and tested them we should create pull requests to merge them back to the upstream repo. Either in one huge PR or in several independant smaller pull requests. Before that (but after implementing most issues) we should contact the upstream maintainer to talk about the changes.

Try to reconnect on connection loss

Currently when there's a connection issue between the bot and the connected mumble server (after successfully joining the server) the bot just quits. However, there are situations where it might be desired if the bot would try to reconnect:

  • There's just a temporary connection issue
  • Mumble server is restaring (for whatever reason)

In case the bot loses the connection to the server it should retry to connect a number of times (n) with some time (t) delay between each connection retry.

Each parameter should be configurable (command line and/or config file) with some meaningful default values if omitted.

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.