Skip to content

Commit

Permalink
Merge branch 'dev' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
markxoe committed May 10, 2021
2 parents ddf57ac + 0a42a48 commit 222554d
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
dist/
dist/
.vscode/
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
const electron = require("electron");
const dc = require("discord-rpc");
const app = electron.app;
let mainWindow;

const dcClient = new dc.Client({ transport: "ipc" });

const create = () => {
mainWindow = new electron.BrowserWindow({
fullscreen: true,
Expand All @@ -11,6 +14,9 @@ const create = () => {
});
mainWindow.loadFile("index.html");
mainWindow.setMenu(null);
dcClient.login({ clientId: "841407204312743967" }).then(() => {
dcClient.setActivity({ state: "Rickrollt sich selber" });
});
};

app.on("ready", create);
21 changes: 20 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "always-going-to-give-you-down",
"version": "1.0.0",
"version": "1.1.0",
"description": "Always going to give you down",
"main": "index.js",
"license": "MIT",
Expand All @@ -14,7 +14,9 @@
"electron": "^12.0.7",
"electron-builder": "22.9.1"
},
"dependencies": {},
"dependencies": {
"discord-rpc": "^3.2.0"
},
"build": {
"productName": "Always going to give you down",
"copyright": "Copyright © 2021 Mark Oude Elberink",
Expand Down

0 comments on commit 222554d

Please sign in to comment.