Added custom status overload for .adpl. Removed some mentions of nsfw in strings'

This commit is contained in:
Toastie (DCS Team) 2024-09-14 00:45:49 +12:00
parent 52b15131b9
commit 892eed4196
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4
4 changed files with 34 additions and 26 deletions

View file

@ -20,9 +20,14 @@ public partial class Administration
[Cmd] [Cmd]
[OwnerOnly] [OwnerOnly]
public async Task AddPlaying(ActivityType t, [Leftover] string status) public Task AddPlaying([Leftover] string status)
=> AddPlaying(ActivityType.CustomStatus, status);
[Cmd]
[OwnerOnly]
public async Task AddPlaying(ActivityType statusType, [Leftover] string status)
{ {
await _service.AddPlaying(t, status); await _service.AddPlaying(statusType, status);
await Response().Confirm(strs.ropl_added).SendAsync(); await Response().Confirm(strs.ropl_added).SendAsync();
} }

View file

@ -57,14 +57,14 @@ public partial class EllieExpressions : EllieModule<EllieExpressionsService>
[Cmd] [Cmd]
[UserPerm(GuildPerm.Administrator)] [UserPerm(GuildPerm.Administrator)]
public async Task ExprAddServer(string key, [Leftover] string message) public async Task ExprAddServer(string trigger, [Leftover] string response)
{ {
if (string.IsNullOrWhiteSpace(message) || string.IsNullOrWhiteSpace(key)) if (string.IsNullOrWhiteSpace(response) || string.IsNullOrWhiteSpace(trigger))
{ {
return; return;
} }
await ExprAddInternalAsync(key, message); await ExprAddInternalAsync(trigger, response);
} }

View file

@ -175,9 +175,9 @@ logignore:
params: params:
- { } - { }
- target: - target:
desc: "The channel to ignore or show the list of ignored channels for." desc: "The channel to ignore."
- target: - target:
desc: "The user or channel being targeted for logging ignore or inclusion." desc: "The user to ignore."
repeatlist: repeatlist:
desc: Lists currently repeating messages and their indexes. desc: Lists currently repeating messages and their indexes.
ex: ex:
@ -283,10 +283,12 @@ addplaying:
- Playing with you - Playing with you
- Watching you sleep - Watching you sleep
params: params:
- t: - statusType:
desc: "The type of status, allowed values are `Playing`, `Watching`, or `Listening`." desc: "The type of status, allowed values are `Playing`, `Watching`, or `Listening`."
status: status:
desc: "The status text." desc: "The status text."
- status:
desc: "The status text."
listplaying: listplaying:
desc: Lists all playing statuses and their indexes. desc: Lists all playing statuses and their indexes.
ex: ex:
@ -387,18 +389,18 @@ expradd:
- '"hello" Hi there %user.mention%' - '"hello" Hi there %user.mention%'
params: params:
- trigger: - trigger:
desc: "The trigger word or phrase for the bot to respond to users typing." desc: "The trigger word or phrase (phrase must be in quotes)."
response: response:
desc: "The text of the message that shows up when a user types the trigger word." desc: "The text of the message that shows up when a user types the trigger word or phrase."
expraddserver: expraddserver:
desc: 'Add an expression with a trigger and a response in this server. Bot will post a response whenever someone types the trigger word. This command is useful if you want to lower the permission requirement for managing expressions by using `{0}dpo`. Guide [here](<https://docs.elliebot.net/ellie/features/expressions/>).' desc: 'Add an expression with a trigger and a response in this server. Bot will post a response whenever someone types the trigger word. This command is useful if you want to lower the permission requirement for managing expressions by using `{0}dpo`. Guide [here](<https://docs.elliebot.net/ellie/features/expressions/>).'
ex: ex:
- '"hello" Hi there %user.mention%' - '"hello" Hi there %user.mention%'
params: params:
- key: - trigger:
desc: "The trigger word or phrase for the bot to respond to users typing." desc: "The trigger word or phrase (phrase must be in quotes)."
message: response:
desc: "The text of the message that shows up when a user types the trigger word." desc: "The text of the message that shows up when a user types the trigger word or phrase."
exprlist: exprlist:
desc: |- desc: |-
Lists global or server expressions (20 expressions per page). Lists global or server expressions (20 expressions per page).
@ -496,21 +498,21 @@ delmsgoncmd:
- list - list
params: params:
- _: - _:
desc: "The list of channels or servers where the automatic deletion is enabled, disabled, or inherited." desc: "The word 'list'"
- _: - _:
desc: "The server where the command is being executed or monitored for chat flood prevention." desc: "The word 'server'"
- _: - _:
desc: "The channel where the automatic deletion of successful command messages should be toggled." desc: "The word 'channel'"
s: s:
desc: "The state of whether automatic deletion is enabled or disabled for a specific channel." desc: "The state to set. One of 'enable', 'disable', or 'inherit'."
ch: ch:
desc: "The channel where the automatic deletion of successful command messages should be toggled for." desc: "Channel in which to set"
- _: - _:
desc: "The channel where the automatic deletion of successful command messages should be toggled." desc: "The word 'channel'"
s: s:
desc: "The state of whether automatic deletion is enabled or disabled for a specific channel." desc: "The state to set. One of 'enable', 'disable', or 'inherit'."
chId: chId:
desc: "The ID of a channel where the automatic deletion should be toggled or inherited." desc: "Optional channel id. If omitted, defaults to the current channel."
restart: restart:
desc: Restarts the bot. Might not work. desc: Restarts the bot. Might not work.
ex: ex:
@ -1623,7 +1625,7 @@ gencurlist:
- page: - page:
desc: "The current page number for pagination." desc: "The current page number for pagination."
choose: choose:
desc: Chooses a thing from a list of things. Seperate items with a semicolon ; desc: Chooses a thing from a list of things. Separate items with a semicolon ;
ex: ex:
- Get up;Sleep;Sleep more - Get up;Sleep;Sleep more
params: params:
@ -3341,7 +3343,7 @@ globalcommand:
globalmodule: globalmodule:
desc: Toggles whether a module can be used on any server. desc: Toggles whether a module can be used on any server.
ex: ex:
- nsfw - 'Gambling'
params: params:
- module: - module:
desc: "The type of module or configuration information being toggled." desc: "The type of module or configuration information being toggled."
@ -4563,4 +4565,6 @@ leaveunkeptservers:
- '' - ''
params: params:
- shardId: - shardId:
desc: "Shard id from which to start leaving unkept servers." desc: "Shard id from which to start leaving unkept servers."
- delay:
desc: "Delay in miliseconds between leaves"

View file

@ -991,7 +991,6 @@
"module_description_help": "Get command help, descriptions and usage examples", "module_description_help": "Get command help, descriptions and usage examples",
"module_description_gambling": "Bet on dice rolls, blackjack, slots, coinflips and others", "module_description_gambling": "Bet on dice rolls, blackjack, slots, coinflips and others",
"module_description_games": "Play trivia, nunchi, hangman, connect4 and other games", "module_description_games": "Play trivia, nunchi, hangman, connect4 and other games",
"module_description_nsfw": "NSFW commands.",
"module_description_music": "Play music from youtube, local files and radio streams", "module_description_music": "Play music from youtube, local files and radio streams",
"module_description_utility": "Manage custom quotes, repeating messages and check facts about the server", "module_description_utility": "Manage custom quotes, repeating messages and check facts about the server",
"module_description_administration": "Moderation, punish users, setup self assignable roles and greet messages", "module_description_administration": "Moderation, punish users, setup self assignable roles and greet messages",