Compare commits
11 Commits
87488ddbf2
...
ef1dc849ad
Author | SHA1 | Date |
---|---|---|
|
ef1dc849ad | 9 months ago |
|
89caee11a0 | 9 months ago |
|
8c5b2859e3 | 9 months ago |
|
1bae803ff4 | 9 months ago |
|
bbefbb07fc | 9 months ago |
|
859d640dc7 | 9 months ago |
|
ddfdb58348 | 9 months ago |
|
e9cef23229 | 9 months ago |
|
07362ef68f | 9 months ago |
|
fee7dd9bd6 | 9 months ago |
|
02982ce78e | 9 months ago |
@ -1 +1,2 @@
|
|||||||
node_modules
|
node_modules
|
||||||
|
settings.json
|
@ -0,0 +1,33 @@
|
|||||||
|
Privacy Policy for Legendary Rem-chan
|
||||||
|
1. Introduction
|
||||||
|
This Privacy Policy describes how Legendary Rem-chan (the "Bot") collects, uses, and discloses your information. By using the Bot, you agree to the collection and use of information in accordance with this policy.
|
||||||
|
|
||||||
|
2. Information Collection
|
||||||
|
We may collect the following types of information when you use the Bot:
|
||||||
|
|
||||||
|
User Data: This includes your Discord user ID, username, and any other information you provide directly to the Bot.
|
||||||
|
Server Data: This includes server IDs, channel IDs, and messages sent in the server that are relevant to the Bot's functionalities.
|
||||||
|
Usage Data: Information about how you interact with the Bot, such as commands used, response times, and error reports.
|
||||||
|
3. Use of Information
|
||||||
|
We use the collected information for the following purposes:
|
||||||
|
|
||||||
|
To provide and maintain the Bot's functionalities.
|
||||||
|
To improve and personalize your experience with the Bot.
|
||||||
|
To monitor and analyze usage and trends to improve the Bot's performance.
|
||||||
|
To detect, prevent, and address technical issues.
|
||||||
|
4. Information Sharing and Disclosure
|
||||||
|
We do not share your personal information with third parties except in the following circumstances:
|
||||||
|
|
||||||
|
With your consent: We may share your information with third parties if you give us explicit consent to do so.
|
||||||
|
Legal requirements: We may disclose your information if required to do so by law or in response to valid requests by public authorities.
|
||||||
|
5. Data Security
|
||||||
|
We take reasonable measures to protect your information from unauthorized access, use, or disclosure. However, no method of transmission over the internet or electronic storage is completely secure, and we cannot guarantee its absolute security.
|
||||||
|
|
||||||
|
6. Data Retention
|
||||||
|
We will retain your information only for as long as is necessary for the purposes set out in this Privacy Policy.
|
||||||
|
|
||||||
|
7. Changes to This Privacy Policy
|
||||||
|
We may update our Privacy Policy from time to time. We will notify you of any changes by posting the new Privacy Policy on this page. You are advised to review this Privacy Policy periodically for any changes. Changes to this Privacy Policy are effective when they are posted on this page.
|
||||||
|
|
||||||
|
8. Contact Information
|
||||||
|
If you have any questions about this Privacy Policy, please contact us at cslegendaryremchan@gmail.com.
|
@ -0,0 +1,43 @@
|
|||||||
|
Terms of Service for Legendary Rem-chan
|
||||||
|
1. Acceptance of Terms
|
||||||
|
By using Legendary Rem-chan (the "Bot"), you agree to comply with and be bound by the following terms and conditions (the "Terms of Service"). If you do not agree to these terms, you are prohibited from using the Bot.
|
||||||
|
|
||||||
|
2. Description of the Bot
|
||||||
|
Legendary Rem-chan is a Discord bot designed to assist server administrators with various tools and functionalities to manage their servers effectively.
|
||||||
|
|
||||||
|
3. User Conduct
|
||||||
|
When using the Bot, you agree to:
|
||||||
|
|
||||||
|
Follow all applicable laws and regulations.
|
||||||
|
Respect the rights and privacy of other users.
|
||||||
|
Not use the Bot for any malicious, illegal, or unauthorized purposes.
|
||||||
|
Not attempt to decompile, reverse engineer, or modify the Bot.
|
||||||
|
4. Data Collection and Privacy
|
||||||
|
The Bot may collect and store data related to your usage for the purpose of providing and improving the Bot's services.
|
||||||
|
We will not share your personal information with third parties without your consent, except as required by law.
|
||||||
|
For more information on data collection and privacy, please refer to our Privacy Policy [https://git.wordfights.com/masterhc/Remchanv2/src/branch/master/PP.md].
|
||||||
|
5. Restrictions
|
||||||
|
You are prohibited from:
|
||||||
|
|
||||||
|
Using the Bot to harass, abuse, or harm others.
|
||||||
|
Using the Bot to distribute spam, unsolicited messages, or malware.
|
||||||
|
Using the Bot to infringe on the intellectual property rights of others.
|
||||||
|
Attempting to gain unauthorized access to the Bot, its servers, or other systems.
|
||||||
|
6. Intellectual Property
|
||||||
|
All intellectual property rights in the Bot and its content are owned by Legendary or its licensors. You may not reproduce, distribute, or create derivative works based on the Bot without our express permission.
|
||||||
|
|
||||||
|
7. Disclaimers
|
||||||
|
The Bot is provided "as is" and "as available" without warranties of any kind, either express or implied.
|
||||||
|
We do not warrant that the Bot will be uninterrupted, error-free, or free from viruses or other harmful components.
|
||||||
|
We are not responsible for any damage or loss resulting from your use of the Bot.
|
||||||
|
8. Limitation of Liability
|
||||||
|
To the fullest extent permitted by law, Legendary shall not be liable for any indirect, incidental, special, consequential, or punitive damages, or any loss of profits or revenues, whether incurred directly or indirectly, or any loss of data, use, goodwill, or other intangible losses, resulting from (a) your use or inability to use the Bot; (b) any unauthorized access to or use of our servers and/or any personal information stored therein.
|
||||||
|
|
||||||
|
9. Termination
|
||||||
|
We reserve the right to terminate or suspend your access to the Bot at our sole discretion, without notice or liability, for any reason, including if you breach these Terms of Service.
|
||||||
|
|
||||||
|
10. Changes to the Terms of Service
|
||||||
|
We may modify these Terms of Service at any time. We will notify you of any changes by posting the new Terms of Service on this page. Your continued use of the Bot after such modifications will constitute your acknowledgment of the modified terms and your agreement to abide by them.
|
||||||
|
|
||||||
|
11. Contact Information
|
||||||
|
If you have any questions about these Terms of Service, please contact us at cslegendaryremchan@gmail.com.
|
@ -0,0 +1,106 @@
|
|||||||
|
|
||||||
|
|
||||||
|
const {Command,ErrorMessage, ErrorType, EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle, Strikes} = require('../../lib.js')
|
||||||
|
const strikeM = require('../../models/strikes');
|
||||||
|
|
||||||
|
class strike extends Command{
|
||||||
|
constructor(client){
|
||||||
|
super(client, {
|
||||||
|
name: 'removePersonalData',
|
||||||
|
group:'admin',
|
||||||
|
aliases: ['removeData', 'PersonalData', 'deleteMe', 'removeMe', 'forgetMe', 'forgetme'],
|
||||||
|
description: 'Strikes an user. Usage !strike @USER REASON',
|
||||||
|
needsAdmin:false,
|
||||||
|
})
|
||||||
|
this.client = client;
|
||||||
|
this.message;
|
||||||
|
}
|
||||||
|
async run(message, args)
|
||||||
|
{
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Use Case:
|
||||||
|
* 1. User has strikes
|
||||||
|
* -> Send a warning:
|
||||||
|
!!* "You have pending strikes. If you wish to proceed, strikes will resolve by kicking you out of the server."
|
||||||
|
* 2. User has no strikes
|
||||||
|
* 3. User is a striker
|
||||||
|
! "You have pending strikes. If you wish to proceed please resolve the strikes at: rem.wordfights.com. If its unavailable contact @Masterhc."
|
||||||
|
*/
|
||||||
|
|
||||||
|
const author = message.author;
|
||||||
|
this.message = message;
|
||||||
|
let strokedID;
|
||||||
|
let strikerID = strokedID = author.id;
|
||||||
|
const Strikes = await strikeM.find({$or:[{strikerID},{strokedID} ]})
|
||||||
|
message.delete();
|
||||||
|
if(Strikes.length == 0) return new ErrorMessage(this.client).send(ErrorType.FullCustom, message,[`We don't have your data yet. We only store your data on strikes and for 15 days each strike. By data we mean userID and avatarID of the striker and the struck.`])
|
||||||
|
const strikerCount = Strikes.reduce((acc, item) =>
|
||||||
|
{
|
||||||
|
return acc + (item.strikerID === author.id ? 1 : 0);
|
||||||
|
},0);
|
||||||
|
|
||||||
|
// Step 2: Count occurrences in strokedID
|
||||||
|
const struckCount = Strikes.reduce((acc, item) =>
|
||||||
|
{
|
||||||
|
return acc + (item.strokedID === author.id ? 1 : 0);
|
||||||
|
}, 0);
|
||||||
|
const getStruckGuilds = (Strikes, id) =>
|
||||||
|
{
|
||||||
|
return Strikes.reduce((acc, item) =>
|
||||||
|
{
|
||||||
|
if (item.strokedID === id)
|
||||||
|
{
|
||||||
|
acc.push(item.guildID);
|
||||||
|
}
|
||||||
|
return acc;
|
||||||
|
}, []);
|
||||||
|
};
|
||||||
|
const guilds = getStruckGuilds(Strikes, author.id);
|
||||||
|
if(strikerCount > struckCount) return new ErrorMessage(this.client).send(ErrorType.FullCustom, message, [`You have pending strikes. Resolve the strikes you have given out, at the [dashboard](https://rem.wordfights.com 'Rem-chan Dashboard Link').`])
|
||||||
|
else this.sendMessage("You have pending strikes. If you wish to process, the strikes will be resolved by kicking you out of the servers were you have strikes issued.", author, guilds )
|
||||||
|
}
|
||||||
|
async sendMessage(text, author, guilds)
|
||||||
|
{
|
||||||
|
const embed = new EmbedBuilder()
|
||||||
|
embed.setFooter({text:'Rem-chan on ', iconURL:"https://i.imgur.com/g6FSNhL.png"})
|
||||||
|
embed.setAuthor({name:"Rem-chan", iconURL:"https://i.imgur.com/g6FSNhL.png",url:'https://rem.wordfights.com/addtodiscord'});
|
||||||
|
embed.setColor(0x110809);
|
||||||
|
embed.setTimestamp()
|
||||||
|
embed.setTitle(`Confirmation`)
|
||||||
|
embed.setDescription(text)
|
||||||
|
|
||||||
|
const row = new ActionRowBuilder()
|
||||||
|
.addComponents(
|
||||||
|
new ButtonBuilder()
|
||||||
|
.setCustomId(`decline${author.id}`)
|
||||||
|
.setLabel('Decline')
|
||||||
|
.setStyle(ButtonStyle.Success),
|
||||||
|
new ButtonBuilder()
|
||||||
|
.setCustomId(`acept${author.id}`)
|
||||||
|
.setLabel('Accept')
|
||||||
|
.setStyle(ButtonStyle.Danger),
|
||||||
|
);
|
||||||
|
const filter = i => i.customId.includes(author.id) ;
|
||||||
|
|
||||||
|
const Message = await this.message.channel.send({ephemeral: true, embeds: [embed], components: [row] });
|
||||||
|
const collector = this.message.channel.createMessageComponentCollector({ filter, time: 60000 });
|
||||||
|
collector.on('collect', async m =>
|
||||||
|
{
|
||||||
|
if(m.user.id !== author.id) return m.reply({content:'You are not the requester.', ephemeral:true})
|
||||||
|
m.message.delete();
|
||||||
|
if(m.customId.includes('decline')) return;
|
||||||
|
let strokedID;
|
||||||
|
let strikerID = strokedID = author.id;
|
||||||
|
for(let i = 0; i<guilds.length; i++)
|
||||||
|
{
|
||||||
|
const Strikes = await strikeM.deleteMany({$or:[{strikerID},{strokedID} ]})
|
||||||
|
this.client.guilds.cache.get(guilds[i]).members.cache.get(author.id).kick();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
collector.on('end', async ()=>
|
||||||
|
{
|
||||||
|
Message.edit({ components: [] });
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}module.exports = strike;
|
@ -0,0 +1,33 @@
|
|||||||
|
Privacy Policy for Legendary Rem-chan
|
||||||
|
1. Introduction
|
||||||
|
This Privacy Policy describes how Legendary Rem-chan (the "Bot") collects, uses, and discloses your information. By using the Bot, you agree to the collection and use of information in accordance with this policy.
|
||||||
|
|
||||||
|
2. Information Collection
|
||||||
|
We may collect the following types of information when you use the Bot:
|
||||||
|
|
||||||
|
User Data: This includes your Discord user ID, username, and any other information you provide directly to the Bot.
|
||||||
|
Server Data: This includes server IDs, channel IDs, and messages sent in the server that are relevant to the Bot's functionalities.
|
||||||
|
Usage Data: Information about how you interact with the Bot, such as commands used, response times, and error reports.
|
||||||
|
3. Use of Information
|
||||||
|
We use the collected information for the following purposes:
|
||||||
|
|
||||||
|
To provide and maintain the Bot's functionalities.
|
||||||
|
To improve and personalize your experience with the Bot.
|
||||||
|
To monitor and analyze usage and trends to improve the Bot's performance.
|
||||||
|
To detect, prevent, and address technical issues.
|
||||||
|
4. Information Sharing and Disclosure
|
||||||
|
We do not share your personal information with third parties except in the following circumstances:
|
||||||
|
|
||||||
|
With your consent: We may share your information with third parties if you give us explicit consent to do so.
|
||||||
|
Legal requirements: We may disclose your information if required to do so by law or in response to valid requests by public authorities.
|
||||||
|
5. Data Security
|
||||||
|
We take reasonable measures to protect your information from unauthorized access, use, or disclosure. However, no method of transmission over the internet or electronic storage is completely secure, and we cannot guarantee its absolute security.
|
||||||
|
|
||||||
|
6. Data Retention
|
||||||
|
We will retain your information only for as long as is necessary for the purposes set out in this Privacy Policy.
|
||||||
|
|
||||||
|
7. Changes to This Privacy Policy
|
||||||
|
We may update our Privacy Policy from time to time. We will notify you of any changes by posting the new Privacy Policy on this page. You are advised to review this Privacy Policy periodically for any changes. Changes to this Privacy Policy are effective when they are posted on this page.
|
||||||
|
|
||||||
|
8. Contact Information
|
||||||
|
If you have any questions about this Privacy Policy, please contact us at cslegendaryremchan@gmail.com.
|
@ -0,0 +1,43 @@
|
|||||||
|
Terms of Service for Legendary Rem-chan
|
||||||
|
1. Acceptance of Terms
|
||||||
|
By using Legendary Rem-chan (the "Bot"), you agree to comply with and be bound by the following terms and conditions (the "Terms of Service"). If you do not agree to these terms, you are prohibited from using the Bot.
|
||||||
|
|
||||||
|
2. Description of the Bot
|
||||||
|
Legendary Rem-chan is a Discord bot designed to assist server administrators with various tools and functionalities to manage their servers effectively.
|
||||||
|
|
||||||
|
3. User Conduct
|
||||||
|
When using the Bot, you agree to:
|
||||||
|
|
||||||
|
Follow all applicable laws and regulations.
|
||||||
|
Respect the rights and privacy of other users.
|
||||||
|
Not use the Bot for any malicious, illegal, or unauthorized purposes.
|
||||||
|
Not attempt to decompile, reverse engineer, or modify the Bot.
|
||||||
|
4. Data Collection and Privacy
|
||||||
|
The Bot may collect and store data related to your usage for the purpose of providing and improving the Bot's services.
|
||||||
|
We will not share your personal information with third parties without your consent, except as required by law.
|
||||||
|
For more information on data collection and privacy, please refer to our Privacy Policy [https://rem.wordfights.com/pp].
|
||||||
|
5. Restrictions
|
||||||
|
You are prohibited from:
|
||||||
|
|
||||||
|
Using the Bot to harass, abuse, or harm others.
|
||||||
|
Using the Bot to distribute spam, unsolicited messages, or malware.
|
||||||
|
Using the Bot to infringe on the intellectual property rights of others.
|
||||||
|
Attempting to gain unauthorized access to the Bot, its servers, or other systems.
|
||||||
|
6. Intellectual Property
|
||||||
|
All intellectual property rights in the Bot and its content are owned by Legendary or its licensors. You may not reproduce, distribute, or create derivative works based on the Bot without our express permission.
|
||||||
|
|
||||||
|
7. Disclaimers
|
||||||
|
The Bot is provided "as is" and "as available" without warranties of any kind, either express or implied.
|
||||||
|
We do not warrant that the Bot will be uninterrupted, error-free, or free from viruses or other harmful components.
|
||||||
|
We are not responsible for any damage or loss resulting from your use of the Bot.
|
||||||
|
8. Limitation of Liability
|
||||||
|
To the fullest extent permitted by law, Legendary shall not be liable for any indirect, incidental, special, consequential, or punitive damages, or any loss of profits or revenues, whether incurred directly or indirectly, or any loss of data, use, goodwill, or other intangible losses, resulting from (a) your use or inability to use the Bot; (b) any unauthorized access to or use of our servers and/or any personal information stored therein.
|
||||||
|
|
||||||
|
9. Termination
|
||||||
|
We reserve the right to terminate or suspend your access to the Bot at our sole discretion, without notice or liability, for any reason, including if you breach these Terms of Service.
|
||||||
|
|
||||||
|
10. Changes to the Terms of Service
|
||||||
|
We may modify these Terms of Service at any time. We will notify you of any changes by posting the new Terms of Service on this page. Your continued use of the Bot after such modifications will constitute your acknowledgment of the modified terms and your agreement to abide by them.
|
||||||
|
|
||||||
|
11. Contact Information
|
||||||
|
If you have any questions about these Terms of Service, please contact us at cslegendaryremchan@gmail.com.
|
Loading…
Reference in new issue