.savechat will now be unlimited if ran by the bot owner

This commit is contained in:
Toastie 2025-03-15 11:44:18 +13:00
parent e77f85edc6
commit fbb9064434
Signed by: toastie_t0ast
GPG key ID: 0861BE54AD481DC7
2 changed files with 85 additions and 79 deletions
src/EllieBot
Modules/Utility
strings/commands

View file

@ -649,7 +649,7 @@ public partial class Utility : EllieModule
[Ratelimit(3600)] [Ratelimit(3600)]
public async Task SaveChat(int cnt) public async Task SaveChat(int cnt)
{ {
if (cnt > 1000) if (!_creds.IsOwner(ctx.User) && cnt > 1000)
return; return;
var msgs = new List<IMessage>(cnt); var msgs = new List<IMessage>(cnt);

View file

@ -378,8 +378,8 @@ sargroupdelete:
desc: "The number of the group to delete." desc: "The number of the group to delete."
sarexclusive: sarexclusive:
desc: |- desc: |-
Toggles whether self-assigned roles are exclusive. Toggles the sar group as exclusive.
While enabled, users can only have one self-assignable role per group. While enabled, users can only have one self-assignable role from that group.
ex: ex:
- '1' - '1'
params: params:
@ -418,7 +418,11 @@ iamnot:
- role: - role:
desc: "The role to remove." desc: "The role to remove."
expradd: expradd:
desc: 'Add an expression with a trigger and a response. Bot will post a response whenever someone types the trigger word. Running this command in a server requires the Administrator permission. Running this command in DM is Bot Owner only and adds a new global expression. Guide [here](<https://docs.elliebot.net/ellie/features/expressions/>)' desc: |-
Add an expression with a trigger and a response.
Bot will post a response whenever someone types the trigger word.
Running this command in a server requires the Administrator permission.
Running this command in DM is Bot Owner only and adds a new global expression.
ex: ex:
- '"hello" Hi there %user.mention%' - '"hello" Hi there %user.mention%'
params: params:
@ -427,7 +431,7 @@ expradd:
response: response:
desc: "The text of the message that shows up when a user types the trigger word or phrase." 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`.'
ex: ex:
- '"hello" Hi there %user.mention%' - '"hello" Hi there %user.mention%'
params: params:
@ -892,7 +896,9 @@ send:
text: text:
desc: "The recipient's preferred format for the message, such as plain text or formatted text with images and links." desc: "The recipient's preferred format for the message, such as plain text or formatted text with images and links."
savechat: savechat:
desc: Saves a number of messages to a text file and sends it to you. desc: |-
Saves a number of messages to a text file and sends it to you.
Max is 1000, unless you're the bot owner.
ex: ex:
- 150 - 150
params: params:
@ -3695,16 +3701,16 @@ clubicon:
- url: - url:
desc: "The URL of an image file to use as the club icon." desc: "The URL of an image file to use as the club icon."
clubbanner: clubbanner:
desc: |- desc: |-
Sets an image as a club banner. Sets an image as a club banner.
The banner will be displayed when club information is shown. The banner will be displayed when club information is shown.
ex: ex:
- 'https://i.imgur.com/example.png' - 'https://i.imgur.com/example.png'
- '' - ''
params: params:
- { } - { }
- url: - url:
desc: "URL to the image to set as a club banner." desc: "URL to the image to set as a club banner."
clubapps: clubapps:
desc: Shows the list of users who have applied to your club. Paginated. You must be club owner to use this command. desc: Shows the list of users who have applied to your club. Paginated. You must be club owner to use this command.
ex: ex:
@ -4990,60 +4996,60 @@ xpratereset:
- channel: - channel:
desc: "The channel to reset the rate for." desc: "The channel to reset the rate for."
lyrics: lyrics:
desc: |- desc: |-
Looks up lyrics for a song. Very hit or miss. Looks up lyrics for a song. Very hit or miss.
ex: ex:
- 'biri biri' - 'biri biri'
params: params:
- song: - song:
desc: "The song to look up lyrics for." desc: "The song to look up lyrics for."
userroleassign: userroleassign:
desc: |- desc: |-
Assigns a role to a user that can later be modified by that user. Assigns a role to a user that can later be modified by that user.
ex: ex:
- '@User @Role' - '@User @Role'
params: params:
- user: - user:
desc: 'The user to assign the role to.' desc: 'The user to assign the role to.'
role: role:
desc: 'The role to assign.' desc: 'The role to assign.'
userroleremove: userroleremove:
desc: |- desc: |-
Removes a previously assigned role from a user. Removes a previously assigned role from a user.
ex: ex:
- '@User @Role' - '@User @Role'
params: params:
- user: - user:
desc: 'The user to remove the role from.' desc: 'The user to remove the role from.'
role: role:
desc: 'The role to remove.' desc: 'The role to remove.'
userrolelist: userrolelist:
desc: |- desc: |-
Lists all user roles in the server, or for a specific user. Lists all user roles in the server, or for a specific user.
ex: ex:
- '' - ''
- '@User' - '@User'
params: params:
- { } - { }
- user: - user:
desc: 'The user whose roles to list.' desc: 'The user whose roles to list.'
userrolemy: userrolemy:
desc: |- desc: |-
Lists all of the user roles assigned to you. Lists all of the user roles assigned to you.
ex: ex:
- '' - ''
params: params:
- { } - { }
userrolecolor: userrolecolor:
desc: |- desc: |-
Changes the color of your assigned role. Changes the color of your assigned role.
ex: ex:
- '@Role #ff0000' - '@Role #ff0000'
params: params:
- role: - role:
desc: 'The assigned role to change the color of.' desc: 'The assigned role to change the color of.'
color: color:
desc: 'The new color for the role in hex format.' desc: 'The new color for the role in hex format.'
userroleicon: userroleicon:
desc: |- desc: |-
Changes the icon of your assigned role. Changes the icon of your assigned role.
@ -5059,12 +5065,12 @@ userroleicon:
serverEmoji: serverEmoji:
desc: 'The server emoji to be used as a new icon for the role.' desc: 'The server emoji to be used as a new icon for the role.'
userrolename: userrolename:
desc: |- desc: |-
Changes the name of your assigned role. Changes the name of your assigned role.
ex: ex:
- '@Role New Role Name' - '@Role New Role Name'
params: params:
- role: - role:
desc: 'The assigned role to rename.' desc: 'The assigned role to rename.'
name: name:
desc: 'The new name for the role.' desc: 'The new name for the role.'