You've already forked NitroSniper
mirror of
https://github.com/neoarz/NitroSniper.git
synced 2025-12-25 03:00:13 +01:00
feat: add warning, and better screenshot
This commit is contained in:
@@ -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}!`);
|
||||
|
||||
Reference in New Issue
Block a user