Skip to content

Commit 37ec8d4

Browse files
committed
release
1 parent 8be989a commit 37ec8d4

7 files changed

Lines changed: 5717 additions & 0 deletions

File tree

package-lock.json

Lines changed: 5550 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"name": "discord-webhook-spammer",
3+
"productName": "discord-webhook-spammer",
4+
"version": "1.0.0",
5+
"description": "Made by PapaSnags#1555",
6+
"main": "src/index.js",
7+
"scripts": {
8+
"start": "electron-forge start",
9+
"package": "electron-forge package",
10+
"make": "electron-forge make",
11+
"publish": "electron-forge publish",
12+
"lint": "echo \"No linting configured\""
13+
14+
},
15+
"keywords": [],
16+
"author": {
17+
"name": "PapaSnags",
18+
"email": "mail@papa-snags.com"
19+
},
20+
"license": "MIT",
21+
"config": {
22+
"forge": {
23+
"packagerConfig": {},
24+
"makers": [
25+
{
26+
"name": "@electron-forge/maker-squirrel",
27+
"config": {
28+
"name": "discord_webhook_spammer"
29+
}
30+
},
31+
{
32+
"name": "@electron-forge/maker-zip",
33+
"platforms": [
34+
"darwin"
35+
]
36+
},
37+
{
38+
"name": "@electron-forge/maker-deb",
39+
"config": {}
40+
},
41+
{
42+
"name": "@electron-forge/maker-rpm",
43+
"config": {}
44+
}
45+
]
46+
}
47+
},
48+
"dependencies": {
49+
"electron-builder": "^22.9.1",
50+
"electron-squirrel-startup": "^1.0.0",
51+
"os-utils": "0.0.14"
52+
},
53+
"devDependencies": {
54+
"@electron-forge/cli": "^6.0.0-beta.54",
55+
"@electron-forge/maker-deb": "^6.0.0-beta.54",
56+
"@electron-forge/maker-rpm": "^6.0.0-beta.54",
57+
"@electron-forge/maker-squirrel": "^6.0.0-beta.54",
58+
"@electron-forge/maker-zip": "^6.0.0-beta.54"
59+
}
60+
}

src/icon.ico

123 KB
Binary file not shown.

src/index.html

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head>
5+
<meta charset="utf-8">
6+
7+
<title>Discord - Webhook Spammer</title>
8+
9+
<!-- Stylesheets -->
10+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
11+
<link rel="stylesheet" href="./styles.css">
12+
13+
<!-- Scripts -->
14+
<script src="jquery.js"></script>
15+
<script src="main.js"></script>
16+
</head>
17+
18+
<body>
19+
<div id="container" class="container-fluid">
20+
<h2 class="hash-heading">Made by PapaSnags</h2>
21+
<!-- Webhook -->
22+
<div class="row">
23+
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 ">
24+
<h3 class="hash-heading">Webhook URL</h3>
25+
<input type="password" rows="2" id="link" class="form-control text-input" placeholder="Webhook URL."></input>
26+
</div>
27+
</div>
28+
29+
<!-- Username -->
30+
<div class="row">
31+
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 ">
32+
<h3 class="hash-heading">Username</h3>
33+
<input rows="2" id="username" class="form-control text-input" placeholder="Username."></input>
34+
</div>
35+
</div>
36+
37+
<!-- Avatar -->
38+
<div class="row">
39+
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 ">
40+
<h3 class="hash-heading">Input</h3>
41+
<input rows="2" id="avatar" class="form-control text-input" placeholder="Image URL"></input>
42+
</div>
43+
</div>
44+
45+
<!-- Input row -->
46+
<div class="row">
47+
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 ">
48+
<h3 class="hash-heading">Message</h3>
49+
<input rows="2" id="content" class="form-control text-input" placeholder="Enter text."></input>
50+
</div>
51+
</div>
52+
</br>
53+
<button id="btn">Send</button>
54+
</div>
55+
</body>

src/index.js

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
const {app, BrowserWindow} = require('electron')
2+
const path = require('path')
3+
const url = require('url')
4+
5+
let window = null
6+
7+
// Wait until the app is ready
8+
app.once('ready', () => {
9+
// Create a new window
10+
window = new BrowserWindow({
11+
// Set the initial width to 800px
12+
width: 800,
13+
// Set the initial height to 600px
14+
height: 600,
15+
// Set the default background color of the window to match the CSS
16+
// background color of the page, this prevents any white flickering
17+
backgroundColor: "#D6D8DC",
18+
icon: __dirname + '/icon.ico',
19+
// Don't show the window until it's ready, this prevents any white flickering
20+
show: false
21+
})
22+
23+
window.setMenuBarVisibility(false);
24+
25+
// Load a URL in the window to the local index.html path
26+
window.loadURL(url.format({
27+
pathname: path.join(__dirname, 'index.html'),
28+
protocol: 'file:',
29+
slashes: true
30+
}))
31+
32+
// Show window when page is ready
33+
window.once('ready-to-show', () => {
34+
window.show()
35+
})
36+
})

src/jquery.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
$(function(){
2+
$('#btn').click(function(){
3+
var link = $('#link').val();
4+
var username = $('#username').val();
5+
var content = $('#content').val();
6+
var avatar = $('#avatar').val();
7+
if (link==null || link=="",content==null || content=="")
8+
{
9+
return false;
10+
}
11+
$.post(link, {"content": content, "username": username, "avatar_url": avatar,});
12+
13+
});
14+
});

0 commit comments

Comments
 (0)