Add commands for admins to directly manage database settings #79

Closed
opened 4 months ago by kimimaru · 1 comments
Owner

Add the following new commands:

  • GetDBSettingCommand - Retrieves the value of a setting in the database.
    • Arguments: "settingName (string), string/int (for ValueStr/ValueInt)"
  • SetDBSettingCommand - Sets the value of a database setting. If the setting doesn't exist in the database, it will be added.
    • Arguments: "settingName (string), string/int (for ValueStr/ValueInt), string/int (the value to set)
  • RemoveDBSettingCommand - Removes a setting from the database.
    • Arguments: "settingName (string)"

All of these commands pertain only to the Settings table in the database. Make the commands accessible to users with a level of Admin and above by default. This should help hosts make quick changes to the database without having to jump into it directly.

Add the following new commands: * `GetDBSettingCommand` - Retrieves the value of a setting in the database. * Arguments: "settingName (string), string/int (for ValueStr/ValueInt)" * `SetDBSettingCommand` - Sets the value of a database setting. If the setting doesn't exist in the database, it will be added. * Arguments: "settingName (string), string/int (for ValueStr/ValueInt), string/int (the value to set) * `RemoveDBSettingCommand` - Removes a setting from the database. * Arguments: "settingName (string)" All of these commands pertain only to the **Settings** table in the database. Make the commands accessible to users with a level of **Admin** and above by default. This should help hosts make quick changes to the database without having to jump into it directly.
kimimaru added this to the TRBot 2.4 project 4 months ago
Poster
Owner

Completed in d2d43f4d9e.

Completed in https://codeberg.org/kimimaru/TRBot/commit/d2d43f4d9effffdec1d82f9549ec0c0fa2ea59bf.
kimimaru closed this issue 4 months ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.