You've already forked NitroSniper
mirror of
https://github.com/neoarz/NitroSniper.git
synced 2026-05-11 13:15:37 +02:00
fix: author and header files
This commit is contained in:
@@ -1,8 +1,7 @@
|
|||||||
# NitroSniper
|
# NitroSniper
|
||||||
|
|
||||||
[](https://github.com/neoarz/NitroSniper)
|
[](https://6969.pro/neoarz/NitroSniper)
|
||||||
[](https://6969.pro/neoarz/NitroSniper)
|
[](https://github.com/neoarz/NitroSniper/blob/main/LICENSE)
|
||||||
[](https://github.com/neoarz/NitroSniper/blob/main/LICENSE)
|
|
||||||
[](https://github.com/sponsors/neoarz)
|
[](https://github.com/sponsors/neoarz)
|
||||||
[](https://github.com/neoarz/NitroSniper)
|
[](https://github.com/neoarz/NitroSniper)
|
||||||
|
|
||||||
@@ -30,4 +29,3 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
|
|||||||
Make a github issue if you find any bugs or have any questions or preferably dm me on discord `neoarz`.
|
Make a github issue if you find any bugs or have any questions or preferably dm me on discord `neoarz`.
|
||||||
<br>
|
<br>
|
||||||
<sub>If you find this project useful, consider leaving a star, would mean alot!! ❤️</sub>
|
<sub>If you find this project useful, consider leaving a star, would mean alot!! ❤️</sub>
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ dm @neoarz if u need help or have any questions
|
|||||||
https://github.com/neoarz/NitroSniper
|
https://github.com/neoarz/NitroSniper
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Devs } from "@utils/constants";
|
|
||||||
import { Logger } from "@utils/Logger";
|
import { Logger } from "@utils/Logger";
|
||||||
import definePlugin from "@utils/types";
|
import definePlugin from "@utils/types";
|
||||||
import { Message } from "@vencord/discord-types";
|
import { Message } from "@vencord/discord-types";
|
||||||
@@ -117,7 +116,10 @@ function processQueue() {
|
|||||||
export default definePlugin({
|
export default definePlugin({
|
||||||
name: "NitroSniper",
|
name: "NitroSniper",
|
||||||
description: "Automatically redeems Nitro gift links sent in chat",
|
description: "Automatically redeems Nitro gift links sent in chat",
|
||||||
authors: [Devs.neoarz],
|
authors: [{
|
||||||
|
name: "neoarz",
|
||||||
|
id: 218675193592283137n
|
||||||
|
}],
|
||||||
tags: ["Chat", "Utility"],
|
tags: ["Chat", "Utility"],
|
||||||
searchTerms: ["nitro", "gift", "redeem", "snipe"],
|
searchTerms: ["nitro", "gift", "redeem", "snipe"],
|
||||||
settings,
|
settings,
|
||||||
|
|||||||
@@ -1,3 +1,11 @@
|
|||||||
|
/*
|
||||||
|
Made with ❤️ by neoarz
|
||||||
|
I am not responsible for any damage caused by this plugin; use at your own risk
|
||||||
|
Vencord does not endorse/support this plugin (Works with Equicord as well)
|
||||||
|
dm @neoarz if u need help or have any questions
|
||||||
|
https://github.com/neoarz/NitroSniper
|
||||||
|
*/
|
||||||
|
|
||||||
import { IpcMainInvokeEvent } from "electron";
|
import { IpcMainInvokeEvent } from "electron";
|
||||||
|
|
||||||
import type { NativeWebhookResponse } from "./types";
|
import type { NativeWebhookResponse } from "./types";
|
||||||
|
|||||||
@@ -1,3 +1,11 @@
|
|||||||
|
/*
|
||||||
|
Made with ❤️ by neoarz
|
||||||
|
I am not responsible for any damage caused by this plugin; use at your own risk
|
||||||
|
Vencord does not endorse/support this plugin (Works with Equicord as well)
|
||||||
|
dm @neoarz if u need help or have any questions
|
||||||
|
https://github.com/neoarz/NitroSniper
|
||||||
|
*/
|
||||||
|
|
||||||
import { definePluginSettings } from "@api/Settings";
|
import { definePluginSettings } from "@api/Settings";
|
||||||
import { OptionType } from "@utils/types";
|
import { OptionType } from "@utils/types";
|
||||||
import { Button, showToast, Toasts } from "@webpack/common";
|
import { Button, showToast, Toasts } from "@webpack/common";
|
||||||
|
|||||||
8
types.ts
8
types.ts
@@ -1,3 +1,11 @@
|
|||||||
|
/*
|
||||||
|
Made with ❤️ by neoarz
|
||||||
|
I am not responsible for any damage caused by this plugin; use at your own risk
|
||||||
|
Vencord does not endorse/support this plugin (Works with Equicord as well)
|
||||||
|
dm @neoarz if u need help or have any questions
|
||||||
|
https://github.com/neoarz/NitroSniper
|
||||||
|
*/
|
||||||
|
|
||||||
export interface ClaimRequest {
|
export interface ClaimRequest {
|
||||||
code: string;
|
code: string;
|
||||||
authorId?: string;
|
authorId?: string;
|
||||||
|
|||||||
10
webhook.ts
10
webhook.ts
@@ -1,3 +1,11 @@
|
|||||||
|
/*
|
||||||
|
Made with ❤️ by neoarz
|
||||||
|
I am not responsible for any damage caused by this plugin; use at your own risk
|
||||||
|
Vencord does not endorse/support this plugin (Works with Equicord as well)
|
||||||
|
dm @neoarz if u need help or have any questions
|
||||||
|
https://github.com/neoarz/NitroSniper
|
||||||
|
*/
|
||||||
|
|
||||||
import type { PluginNative } from "@utils/types";
|
import type { PluginNative } from "@utils/types";
|
||||||
|
|
||||||
import type {
|
import type {
|
||||||
@@ -54,7 +62,7 @@ function buildMessageUrl(request: ClaimRequest) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function escapeMarkdown(value: string) {
|
function escapeMarkdown(value: string) {
|
||||||
return value.replace(/([\\`*_{}\[\]()#+\-.!|>~])/g, "\\$1");
|
return value.replace(/([\\`*_{}[\\]()#+.!|>~-])/g, "\\$1");
|
||||||
}
|
}
|
||||||
|
|
||||||
function buildAuthorField(request: ClaimRequest): WebhookField | null {
|
function buildAuthorField(request: ClaimRequest): WebhookField | null {
|
||||||
|
|||||||
Reference in New Issue
Block a user