Skip to content

Commit

Permalink
1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
IceHacks committed Nov 19, 2019
1 parent 15d73bb commit 72d4927
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ui",
"version": "1.0.2",
"version": "1.0.3",
"description": "",
"main": "src/main.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</div>


<input id="start" type="button" value="START" />
<input id="start" type="button" value="INITIALIZE" />
<input style="margin:0;" id="stop" type="button" value="STOP" disabled />

<script src="script.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const electron = require("electron");
const { app, BrowserWindow, Menu } = electron;
const path = require("path");

if (process.platform !== "darwin") Menu.setApplicationMenu(null);
//if (process.platform !== "darwin") Menu.setApplicationMenu(null);

let win;

Expand Down
8 changes: 8 additions & 0 deletions src/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ $("#start").on("click", () => {
$("#start").attr("disabled", true);
$("#stop").removeAttr("disabled");
$("#send").removeAttr("disabled");

$("#start").val("START");
} else {
if (!bot) console.log("Didn't make bot");
}
Expand Down Expand Up @@ -50,6 +52,12 @@ $("#send").on("click", () => {
}
});

$("#co").on("keyup", e => {
if (e.key == "Enter") {
$("#send").click();
}
});

$(document).on("change", "#token", () => {
localStorage.setItem("token", $("#token").val());
});
Expand Down
2 changes: 1 addition & 1 deletion src/spam.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ module.exports = class {

setChannel(c) {
this.channelId = c;
this.channel = client.channels.get(this.channelId);
this.channel = this.client.channels.get(this.channelId);
}

start() {
Expand Down

0 comments on commit 72d4927

Please sign in to comment.