Code Monkey home page Code Monkey logo

Comments (5)

TruthSearchers avatar TruthSearchers commented on July 23, 2024

I just thought of it , it would be good feature

from oobabot.

wiredzax avatar wiredzax commented on July 23, 2024

this would be super useful. +1

from oobabot.

chrisrude avatar chrisrude commented on July 23, 2024

Still keeping this in the backlog, but tbh it may be a little while until I can get to it. I still think it's a good idea. Would welcome PRs though if anyone is interested!

from oobabot.

wiredzax avatar wiredzax commented on July 23, 2024

I was working on something. nothing PR worthy yet, but i have a list of userIDs
made a setting for it so that it can be set to a file like a persona.
the only issue i ran into was figuring out where to have the bot run the check against the file.
would decided_to_respond be the best for that? what's your thoughts on it?
after all, decide to respond already pulls from the settings.

from oobabot.

wiredzax avatar wiredzax commented on July 23, 2024
        ###########################################################
        self.blockids_settings = oesp.ConfigSettingGroup("blockids")
        self.setting_groups.append(self.blockids_settings)

        self.blockids_settings.add_setting(
            oesp.ConfigSetting[str](
                name="blockids",
                default=os.environ.get(self.OOBABOT_BLOCKIDS_ENV_VAR, ""),
                description_lines=[
                    textwrap.dedent(
                        f"""
                    path to a file containing a list of blockids to use,
                    If not set, the bot will use the default blockids of none."""
                    )
                ], 
                show_default_in_yaml=False,
            )
        )

haven't tested it yet, but i'm going to pass it in decide to respond like you do in persona with self.blockids :str = discord_settings["blockids"]

from oobabot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.