Added custom status overload for .adpl. Removed some mentions of nsfw in strings'
This commit is contained in:
parent
52b15131b9
commit
892eed4196
4 changed files with 34 additions and 26 deletions
|
@ -20,9 +20,14 @@ public partial class Administration
|
|||
|
||||
[Cmd]
|
||||
[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();
|
||||
}
|
||||
|
|
|
@ -57,14 +57,14 @@ public partial class EllieExpressions : EllieModule<EllieExpressionsService>
|
|||
|
||||
[Cmd]
|
||||
[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;
|
||||
}
|
||||
|
||||
await ExprAddInternalAsync(key, message);
|
||||
await ExprAddInternalAsync(trigger, response);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -175,9 +175,9 @@ logignore:
|
|||
params:
|
||||
- { }
|
||||
- target:
|
||||
desc: "The channel to ignore or show the list of ignored channels for."
|
||||
desc: "The channel to ignore."
|
||||
- target:
|
||||
desc: "The user or channel being targeted for logging ignore or inclusion."
|
||||
desc: "The user to ignore."
|
||||
repeatlist:
|
||||
desc: Lists currently repeating messages and their indexes.
|
||||
ex:
|
||||
|
@ -283,10 +283,12 @@ addplaying:
|
|||
- Playing with you
|
||||
- Watching you sleep
|
||||
params:
|
||||
- t:
|
||||
- statusType:
|
||||
desc: "The type of status, allowed values are `Playing`, `Watching`, or `Listening`."
|
||||
status:
|
||||
desc: "The status text."
|
||||
- status:
|
||||
desc: "The status text."
|
||||
listplaying:
|
||||
desc: Lists all playing statuses and their indexes.
|
||||
ex:
|
||||
|
@ -387,18 +389,18 @@ expradd:
|
|||
- '"hello" Hi there %user.mention%'
|
||||
params:
|
||||
- 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:
|
||||
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:
|
||||
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:
|
||||
- '"hello" Hi there %user.mention%'
|
||||
params:
|
||||
- key:
|
||||
desc: "The trigger word or phrase for the bot to respond to users typing."
|
||||
message:
|
||||
desc: "The text of the message that shows up when a user types the trigger word."
|
||||
- trigger:
|
||||
desc: "The trigger word or phrase (phrase must be in quotes)."
|
||||
response:
|
||||
desc: "The text of the message that shows up when a user types the trigger word or phrase."
|
||||
exprlist:
|
||||
desc: |-
|
||||
Lists global or server expressions (20 expressions per page).
|
||||
|
@ -496,21 +498,21 @@ delmsgoncmd:
|
|||
- list
|
||||
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:
|
||||
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:
|
||||
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:
|
||||
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:
|
||||
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:
|
||||
desc: Restarts the bot. Might not work.
|
||||
ex:
|
||||
|
@ -1623,7 +1625,7 @@ gencurlist:
|
|||
- page:
|
||||
desc: "The current page number for pagination."
|
||||
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:
|
||||
- Get up;Sleep;Sleep more
|
||||
params:
|
||||
|
@ -3341,7 +3343,7 @@ globalcommand:
|
|||
globalmodule:
|
||||
desc: Toggles whether a module can be used on any server.
|
||||
ex:
|
||||
- nsfw
|
||||
- 'Gambling'
|
||||
params:
|
||||
- module:
|
||||
desc: "The type of module or configuration information being toggled."
|
||||
|
@ -4563,4 +4565,6 @@ leaveunkeptservers:
|
|||
- ''
|
||||
params:
|
||||
- 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"
|
|
@ -991,7 +991,6 @@
|
|||
"module_description_help": "Get command help, descriptions and usage examples",
|
||||
"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_nsfw": "NSFW commands.",
|
||||
"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_administration": "Moderation, punish users, setup self assignable roles and greet messages",
|
||||
|
|
Loading…
Reference in a new issue