-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow prefix change #45
Comments
Env variable would mean redeploy, so it would be more like, each server owner picks one and launches the bot and that is it. The |
I think that the environment variable is out of the question because one deployment of the bot can work on multiple servers (just tested it to verify). What this means is that multiple servers can have different prefixes. As such, I think we should opt for something dynamic so that they can change prefixes at will. Additionally, we should save the prefix in some file so that it gets associated with the server ID in case of a reboot. This way the prefix is always saved and restored. |
I'll try to take on this issue if everyone is okay with it ✌ |
Give it to @Dannyps , if he wants it, because he is short on PRs for Hacktoberfest |
Merci. Going with the customisable prefix stored somehow. Files may be tricky because of permissions, though. Any input on this? |
I already started implementing 🥴 |
I'll kill you 🔫 |
I'll admit I'm having difficulty considering this is my first interaction with Rust. I'm keeping an eye on you. Stashed! |
I'm locking this one to @afonsojramos then. |
@afonsojramos Any advancements on this? 🙂 |
I think this issue and the listening party mode both require storing simple data but that needs to be associated with the server that called the command. As we discussed, a single parrot instance can then be used by multiple servers. The way current commands work for parrot running in the current server, is by the received context (which allows us to extract the server and a lock to the parrot instance on that discord server). For this prefix issue and for others, we want to store simple settings but only for the discord server that called it. |
I'm already mid-development on this, I just need some time to figure out the inner workings of serenity. In theory, it should be easy by using dynamic prefixes. |
Good find, looks promising!
|
Great, this is what I wanted: https://docs.rs/serenity/latest/serenity/client/struct.Client.html#structfield.data |
Forcing users to use the
!
prefix can cause conflicts with other bots on the server.Should this be an environment variable (easier but requires redeploying) or does it justify a whole new
!prefix
command usable only by admins (harder but allows for changing on the fly)? Requesting your inputs here, @afonsojramos and @joao-conde.Regardless of the chosen approach:
The text was updated successfully, but these errors were encountered: