Modis

Latest version: v0.3.2

Safety actively analyzes 621654 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.3.2

Music Module Improvements

The music module now downloads songs to the file system in a song cache, and plays from there. This means that the disconnection problems caused by large files, sites with slow downloads, and pure music files played by uploading to Discord or Google Drive, as well as general problems with FFmpeg, should be less frequent and less prone to bugs across different platforms and setups.

The uploader and source of a song now show in the music module UI for all sources that support it. This is mostly to bring us in line with the attribution requirements from SoundCloud and YouTube for using their APIs, and also it's nice to give people credit for their work.

UI Log

The UI log now logs more errors, and does it in style with red errors and orange warnings.

Hex

Bring more color into your life! Hex now works with multiple colors in a message.

0.3.1

That's right folks! We have a naming system now. Along with that, this release adds some major improvements to the music module (as well as a few other bug fixes and quality-of-life improvements).

Music Module

SoundCloud

Modis now supports SoundCloud! Using the `!play sc` family of commands, you can do all sorts of things like play the top songs in a given genre with `!play sc genre house`, or queue a song with `!play sc song hello`. Links to SoundCloud users, songs and playlists, also work with `!play [link]`.

Time Bar

You can now see how much of a song has played, how much is left, and how long the song goes for. You can even change how it looks by editing `_timebar.py`.

![timebar](https://user-images.githubusercontent.com/16248789/33163174-3c310ebc-d081-11e7-8cdf-d01d6d8aeaa3.PNG)

Stay on Topic

You set the topic, with the new `!settopic` command, which will tell Modis to update the topic for this channel with whatever music is playing, or `!cleartopic` to stop Modis from updating the topic.

Rewind Command

Go back in time! Rewind your queue with the `!rewind [n]` command.

Remove Command

Remove songs from the queue with `!remove [index]`, or remove a whole bunch at once with `!remove [from]-[to]`.

Loop it!

Play the queue again once it's finished with the `!loop` commands. `!loop on` will loop everything in the order it was played, `!loop shuffle` will shuffle the queue before looping, and `!loop off` will go back to stopping Modis once the queue is finished.

Now Playing Command

Find out what's playing with the !nowplaying command, which gives info about the song, who wrote it, when it was uploaded, cool stuff like that.

Improvements

In this release, we've also made some improvements to Modis:

- Music module now connects better and handles playlists much better.
- Fixed non-youtube links not playing in some cases.
- Much better support for livestreams from sources such as Twitch.
- Version checking now works for versions ending in `.0`.
- Help files now support multiple command headings, and Modis now doesn't crash on large help files.
- Caught errors now log, so that you can diagnose problems better.
- Logs now log to a different file for each session.
- Running from console no longer requires tkinter.

Pip!

If you just want to run vanilla Modis, you can now install it using `pip`. Running `pip3 install modis --upgrade` will install Modis as a Python package and install the requirements, so that you can run Modis without worrying about the code.

0.3.0

New Modules

In v0.3, we've added new modules to Modis. `help` provides information and commands for modules using the `help` and `help [module]` command. `manager` lets you enable and disable modules on a per-server basis.

Module UIs

Modules can now have their own UIs. Modis will look for a `_ui.py` file in the root of your module, and use this to create a UI for your module in the Modis control panel.

Improvements and Bugfixes

We've made many improvements to many of Modis' modules, both in terms of stability and features. We will continue to add and expand upon these modules in our upcoming releases.

Documentation Improvements

As part of our goal to make Modis an easy and expandable framework that anyone can use, we'll be continuing to add and improve our documentation and tutorials. We currently have guides for [installing Modis](https://infraxion.github.io/modis/guides/setup/), and [creating your own module](https://infraxion.github.io/modis/guides/ping-pong/), with more coming for features such as embeds, UIs, and more!

0.2.3

Everything looks mostly stable; there's still some problems with music module, but they don't cause exceptions server side as far as I can tell.

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.