nashiradeer / hydrogen Goto Github PK
View Code? Open in Web Editor NEWOpen-source Lavalink-based music bot for Discord written in Rust.
Home Page: https://hub.docker.com/r/nashiradeer/hydrogen
License: GNU General Public License v3.0
Open-source Lavalink-based music bot for Discord written in Rust.
Home Page: https://hub.docker.com/r/nashiradeer/hydrogen
License: GNU General Public License v3.0
Panicking in Rust doesn't crash (closes) Hydrogen because panics are thread-local.
Today, the public instance has experienced this bug after a restart on the only Lavalink node available, making the music commands fail because no Lavalink node is available.
A solution is to use exit() instead of panic!(), forcing the program to close instead of crashing the thread.
The current parser is rolling any dice that can be found inside a message and is rounded by spaces, but sometimes the Dungeon Master is only describing the dice that the player needs to roll, but Hydrogen will roll even if the roll isn't wanted, so is better to use explicit way instead of implicit one, in other words, requires that rolls inside the message is prefixed with '/'.
Rustls 0.23 is using the aws-lc-rs that doesn't have pre-generated bindings to Alpine Linux (musl), and it is not guaranteed to work, so native-tls will be used, as Alpine Linux is used to build the Docker image, making it a priority.
Some Discord bots already rolls dices detected from messages, so to make Hydrogen works better on the servers that already has these bots, a suggestion is to disable rolls from messages when one of these bots is detected.
A list of bots with this feature:
If Hydrogen has one of the IDs from the list, that ID will not be considered.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.