Giter Site home page Giter Site logo

Comments (8)

freyacodes avatar freyacodes commented on July 20, 2024

This is currently planned to be a feature to go alongside https://github.com/Frederikam/FredBoat/issues/23

And yes, I know the clear command is broken.

Edit: Except that you are talking about selfhosting, in which case a config option would be the way to go.

from archived-bot.

schnapster avatar schnapster commented on July 20, 2024

Trying to break this down into steps:

  • Make FredBoat universally react to mentions, like so: @FredBoat play <link>.
    This requires adjusting the regex for parsing the CommandContext. This is important so that there is always a fallback if a weird prefix is set / to find out the current prefix. #369
  • create a prefix command, that saves the prefix in the GuildConfig entity.

from archived-bot.

schnapster avatar schnapster commented on July 20, 2024

One edge case to keep in mind when testing this would be empty prefixes.

from archived-bot.

Nanabell avatar Nanabell commented on July 20, 2024

if empty fallback to ;;

from archived-bot.

schnapster avatar schnapster commented on July 20, 2024

I am thinking of empty prefixes as a feature here. It needs the following questions answered when implementing: How to set it? How to persist it and differentiate from the default prefix? How to regex it?

from archived-bot.

Nanabell avatar Nanabell commented on July 20, 2024

as general question SHOULD we continue to use regex? or should we limit ourself to a simple string? if we stay with the regex do we allow or even force users to use regex as well or limit them to simple strings?

from archived-bot.

schnapster avatar schnapster commented on July 20, 2024

Good question probably just going to use String#startsWith.

from archived-bot.

schnapster avatar schnapster commented on July 20, 2024

This issue is solved: Selfhosters can edit the default prefix of their whole bot in the config file (this was possible for some time), guild admins can edit the prefix in their guilds since #375 .

from archived-bot.

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.