freyacodes / archived-bot

A Discord music bot serving music in over 3 million discord servers
https://fredboat.com/docs
MIT License
488 stars 210 forks source link

[suggestion] Let users create their own aliases with ;;alias #168

Open sidesvvipe opened 7 years ago

sidesvvipe commented 7 years ago

Not sure how you'd implement this for non self hosted bot but this would be really usefully to have

freyacodes commented 7 years ago

Can you elaborate? Do you mean allowing server admins to create aliases, or allowing selfhosters to configure a list of aliases?

sidesvvipe commented 7 years ago

Both ideally, but I was thinking about first option - allowing admins to do ;;alias

freyacodes commented 7 years ago

Why both? Wouldn't the first just make the second mostly obsolete?

sidesvvipe commented 7 years ago

looking away ashamed of own stupidity yeah...

Almighty-Alpaca commented 7 years ago

The only thing you'd need for this is a database with a really fast access. Not sure what FredBoat currently uses, but redis for example could work.

freyacodes commented 7 years ago

We use Postgres

freyacodes commented 7 years ago

We actually cache our entities with ehcache, so it wouldn't really cause much delay, even if the database is located on a different continent