diff --git a/README.md b/README.md index ba2545e..4dd8245 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,21 @@ # NitroSniper -a Vencord/Equicord plugin to auto snipe nitro + +[![GitHub License](https://img.shields.io/github/license/neoarz/NitroSniper?color=%23C96FAD)](https://github.com/neoarz/NitroSniper/blob/main/LICENSE) +[![Sponsor Me](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86)](https://github.com/sponsors/neoarz) + +A simple Vencord/Equicord plugin to auto snipe nitro gift codes + +> [!CAUTION] +> **Use at your own risk** +> +> This plugin is against Discord's Terms of Service and can get you banned. In addition to that, Vencord does not in any way endorse this plugin. This is usermade and you will have to follow [Vencord's Installation Method](https://docs.vencord.dev/installing/) to build and install this plugin + +## License +This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details + +## Support +If you find this useful, consider leaving a star, would mean alot!! + +## Credits +- [Vencord](https://github.com/vencord/vencord) +- [Equicord](https://github.com/Equicord/Equicord) (The fork im currently using) \ No newline at end of file diff --git a/nitroSniper/index.tsx b/nitroSniper/index.tsx index e8c70c7..24548e3 100644 --- a/nitroSniper/index.tsx +++ b/nitroSniper/index.tsx @@ -28,8 +28,7 @@ export default definePlugin({ MESSAGE_CREATE({ message }) { if (!message.content) return; - // Regex to capture the code from various link formats - // Captures: discord.gift/CODE, discord.com/gifts/CODE, etc. + // Currently Captures: discord.gift/CODE, discord.com/gifts/CODE, im not sure if there are more but add/change the regex here const giftRegex = /(?:discord\.gift\/|discord\.com\/gifts?\/)([a-zA-Z0-9]{16,24})/; const match = message.content.match(giftRegex);