Bot should have configuration to turn on/off features. (an if statement would pretty much do).
See original GitHub issueRelated to https://github.com/EddieJaoudeCommunity/EddieBot/pull/247 and #134
This actually came from another discord server who looked at https://github.com/kentcdodds/kcd-discord-bot but the issue is you get all the features if you want to fork this bot but only need one piece of it’s functionality?
If bot had an enabledFeatures key, even better environment variables where you can simply enable features or even something as simple as an YAML/INI file if you really wish.
e.g. the .env.example
would make you need to implicitly state you wish to enable functionality.
ENABLE_THIS_FEATURE=0
ENABLE_THIS_FEATURE=0
This makes forks of the bot for usage outside of the community server possible e.g. someone may only want the high value
role feature.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:6
- Comments:13 (10 by maintainers)
Top Results From Across the Web
JavaScript Discord Bot Tutorial – Code a ...
This tutorial will show you how to use JavaScript and Node.js to build your own Discord bot completely in the cloud. You do...
Read more >Create and deploy a Power Virtual Agents bot online
Create and publish a Power Virtual Agents bot on the online portal in minutes with this quickstart guide.
Read more >Chat Bot Overview and Guide | StreamElements
Mainly chat commands the viewers run and the creator can manage, put to use through modules, custom commands, timers and even spam filters,...
Read more >How to Build Your First Telegram Bot: A Guide for Absolute ...
In this tutorial, we'll look at creating a Telegram bot from scratch. A Telegram bot could be used with the Intercom API to...
Read more >Create a Question and Answer Bot with Amazon Lex and ...
QnABot on AWS is now an official AWS Solution Implementation. ... questions and statements, so that our Lex bot and Alexa skill will...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@stemount this is a great idea 👍. Having feature flags could be very beneficial for the exact reason you said: someone may only want the
high value
role or reminders. I agree this should be configurated in env variables, and then exposed as fields in theconfig.ts
. Then each command/file that is responsible for a feature checks if that feature is enabled before continuing.I hope this can also make it easier for people that don’t want a DB setup (even if with docker this is easier). Maybe storing data on the DB can also be enabled/disabled like a feature flag, but what does everyone else think?
@BOLT04 @eddiejaoude this issue needs the feedback from the community, maybe another video on eddiebot would be cool?