You've already forked NitroSniper
mirror of
https://github.com/neoarz/NitroSniper.git
synced 2025-12-25 03:00:13 +01:00
chore: readme
This commit is contained in:
21
README.md
21
README.md
@@ -1,2 +1,21 @@
|
|||||||
# NitroSniper
|
# NitroSniper
|
||||||
a Vencord/Equicord plugin to auto snipe nitro
|
|
||||||
|
[](https://github.com/neoarz/NitroSniper/blob/main/LICENSE)
|
||||||
|
[](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)
|
||||||
@@ -28,8 +28,7 @@ export default definePlugin({
|
|||||||
MESSAGE_CREATE({ message }) {
|
MESSAGE_CREATE({ message }) {
|
||||||
if (!message.content) return;
|
if (!message.content) return;
|
||||||
|
|
||||||
// Regex to capture the code from various link formats
|
// Currently Captures: discord.gift/CODE, discord.com/gifts/CODE, im not sure if there are more but add/change the regex here
|
||||||
// Captures: discord.gift/CODE, discord.com/gifts/CODE, etc.
|
|
||||||
const giftRegex = /(?:discord\.gift\/|discord\.com\/gifts?\/)([a-zA-Z0-9]{16,24})/;
|
const giftRegex = /(?:discord\.gift\/|discord\.com\/gifts?\/)([a-zA-Z0-9]{16,24})/;
|
||||||
|
|
||||||
const match = message.content.match(giftRegex);
|
const match = message.content.match(giftRegex);
|
||||||
|
|||||||
Reference in New Issue
Block a user