feat: add warning, and better screenshot

This commit is contained in:
neoarz
2025-12-16 19:32:34 -05:00
parent 4e6ee2c1f9
commit cd96edc170
5 changed files with 8 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ dm @neoarz if u need help or have any questions
https://github.com/neoarz/NitroSniper
*/
import { Alert } from "@components/Alert";
import { Devs } from "@utils/constants";
import { Logger } from "@utils/Logger";
import definePlugin from "@utils/types";
@@ -17,6 +18,11 @@ export default definePlugin({
name: "NitroSniper",
description: "Automatically redeems Nitro gift links sent in chat",
authors: [Devs.neoarz],
settingsAboutComponent: () => (
<Alert.Error>
This plugin breaks Discord's TOS. Use at your own risk.
</Alert.Error>
),
enabledByDefault: false, // Safer to have off by default?
start() {
@@ -47,6 +53,7 @@ export default definePlugin({
return;
}
// TODO: Add webhook support
GiftActions.redeemGiftCode({ code })
.then(() => {
logger.log(`Successfully redeemed code: ${code}!`);