GithubHelp home page GithubHelp logo

Comments (5)

FasterSpeeding avatar FasterSpeeding commented on June 12, 2024 1

It can be used to customize prefixes for each guild, e.g. check the database with the guild ID and return the prefix set

In theory you can add custom prefix handling by subclassing the main bot class right now but I'm planning on moving away from any subclassing specific behaviour that's present in the lib sooner or later so i'll add something like this (although probably gonna consider whether I'll use builder style methods for this rather than putting everything in the init)

from tanjun.

FasterSpeeding avatar FasterSpeeding commented on June 12, 2024

Sry for the late response, been a busy week for me but what exactly is the purpose of this function idea (like what would be done with the result of it)? kind of sounds like a arg parser but i'm not sure i'm quite understand this idea.

from tanjun.

YodaPY avatar YodaPY commented on June 12, 2024

It can be used to customize prefixes for each guild, e.g. check the database with the guild ID and return the prefix set

from tanjun.

FasterSpeeding avatar FasterSpeeding commented on June 12, 2024

BTW as a follow up, this is being implemented by #29 but likely won't be released until 2.1.0 along with slash command support and some refactors to how resources like commands are loaded into to components and the interface (probably also gonna have dependency injection)

from tanjun.

FasterSpeeding avatar FasterSpeeding commented on June 12, 2024

This is now on #master along with other improvements

from tanjun.

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.