Code Monkey home page Code Monkey logo

radium's Introduction

Radium (Radio) Bot

Logo

License: GPLv3

A music & dice bot made for personal use.

I made this for use by my friends and I on Discord. You're welcome to use it if you want to, but it isn't intended for widespread use.

Infrastructure

SponsorBlock Integration

While playing videos from YouTube, the bot will automatically skip sponsored segments, intros and outros, non-music sections in music videos, and more.

This uses the fantastic SponsorBlock service, which is run on curated user-submitted timestamps.

Dice Rolling

Parses the roll expression into Reverse Polish Notation, then processes dice rolls into numbers (by rolling) and calculates the result. Because of this, it supports arbitrary mathematical expressions - even with no dice involved.

For example, you can do crazy stuff like this:

-roll (3d20b2 + 11) ^ (d4 * 2) / 2d100w

Obviously this is beyond what a typical game would ever really require, but it was fun to implement.

The format for dice rolls is <count>d<size>. You can also do (dis)advantage with either [b]est or [w]orst after the roll, followed by the number of best/worst rolls you want to keep.

For example: 6d8b4 to roll 6 d8s and keep the best 4.

radium's People

Contributors

zedseven avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

mchangrh

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.