Comments (6)
Yeah, my level of thinking isn't even close as high as you can think X3.
Dig the idea to set it default on false and to use a nice table to keep track of everything.
And yes the re-download feature should only work if someone used the plugin command! It'll probably create issues if it would just be added manually (like for example when someone is testing out it's own made plugin).
Really dig the idea's you've thrown into this feature/issue! It would be insanely easy to host AvaIre on Heroku, withoud any limitations (aside of uptime obviously).
from avaire.
from avaire.
If this get's added, would it be possible that when say:
- User adds plugin using the command.
- Plugin get's added
- When the bot restarts, it checks if the plugin is present, if not, it adds it again (downloading).
That way, we could support plugins "natively" on Heroku aswell. Withoud the user needing to edit any files!
from avaire.
It could be done by creating an index of plugins that should exist as the bot starts up so it can re-download them if they're not present, however, it would have to be an option that the user has to turn on(some config option, or environment variable for Heroku), otherwise it might just create more confusion than anything else if people not using Heroku deletes a plugin manually and then the bot just re-download it again.
from avaire.
True, i suggest the idea of using an enviroment variable.
Maybe something like persistant plugin? Or plugin-check?
from avaire.
Doesn't really matter what the environment variable would be called, it would just be a boolean flag anyways, so by default, the option is false but can be turned on with the environment variable, when enabled, plugins installed via the ;plugin command would be indexed in some database table, allowing the bot to keep track of what plugins should exist, if they don't exist it can use the information in the database to re-loaded them.
The re-download feature would only work for plugins that are actually installed via the plugins command since that system uses the plugin index created for Ava, which points plugin projects to their respective GitHub/BitBucket/GitLab repositories where it can download the releases of the plugin.
from avaire.
Related Issues (20)
- A Status page site api link HOT 1
- Meme command doesn't allow either top or bottom to be empty HOT 2
- Feature Request - Play first song HOT 2
- Avalre is mute when the music starts
- Ticket System HOT 1
- How can we use mongodb as database? HOT 1
- Close all issues/archive the repo HOT 1
- DJ can change volume without being in voice
- Mute Command HOT 2
- Save music states and auto-resume playing after inactivity HOT 3
- Add support for providing YouTube and Twitch API keys HOT 2
- Add ability to repeat a single song to !repeatsongs
- Adding Enviorment Variables HOT 1
- [HEROKU] Plugin support HOT 4
- Aliases trigger the wrong command under certain conditions
- Add a channel medialock command HOT 1
- Feature Request: New bot command MediaLock
- Reaction roles do not work on servers set with type 1 or 2 HOT 1
- Global Ban command suggestion. HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from avaire.