question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bot should have configuration to turn on/off features. (an if statement would pretty much do).

See original GitHub issue

Related 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:closed
  • Created 3 years ago
  • Reactions:6
  • Comments:13 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
BOLT04commented, Sep 25, 2020

@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 the config.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?

2reactions
stemountcommented, Oct 28, 2020

@BOLT04 @eddiejaoude this issue needs the feedback from the community, maybe another video on eddiebot would be cool?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found