.savechat will now be unlimited if ran by the bot owner
This commit is contained in:
parent
e77f85edc6
commit
fbb9064434
2 changed files with 85 additions and 79 deletions
src/EllieBot
|
@ -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);
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue