From 301cb6a9af6acca41b5f7b9991498da30bc19dd9 Mon Sep 17 00:00:00 2001 From: Unknown Date: Fri, 17 Nov 2017 17:12:42 -0500 Subject: Removed electron and changed on what AleeBot's playing --- README.md | 4 +--- Start Electron.bat | 4 ---- gource.sh | 1 - package.json | 5 ++--- src/bot.js | 2 +- src/index.js | 42 ------------------------------------------ src/renderer.js | 0 src/setup.html | 26 -------------------------- 8 files changed, 4 insertions(+), 80 deletions(-) delete mode 100644 Start Electron.bat delete mode 100644 gource.sh delete mode 100644 src/index.js delete mode 100644 src/renderer.js delete mode 100644 src/setup.html diff --git a/README.md b/README.md index 4b7d27f..445515a 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,9 @@ # AleeBot Welcome to the AleeBot github repo! So here's the planned features so far -1. Electron -2. Command handler +1. Command handler If you want to help do a pull request, also submit a problem/suggestion to issues. -Get gource at: https://gource.io # Contributors Here's the list of people who helped me with AleeBot diff --git a/Start Electron.bat b/Start Electron.bat deleted file mode 100644 index f9bdcf3..0000000 --- a/Start Electron.bat +++ /dev/null @@ -1,4 +0,0 @@ -@echo off -title Starting Electron -echo Starting Electron -npm start \ No newline at end of file diff --git a/gource.sh b/gource.sh deleted file mode 100644 index 47d1eb7..0000000 --- a/gource.sh +++ /dev/null @@ -1 +0,0 @@ -gource -f --key \ No newline at end of file diff --git a/package.json b/package.json index 407f2d1..e18f25a 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "A chat bot for discord written in discord.js.", "main": "src/bot.js", "scripts": { - "start": "electron ./src/." + "test": "" }, "repository": { "type": "git", @@ -17,7 +17,6 @@ }, "homepage": "https://github.com/AleeCorp/AleeBot#readme", "dependencies": { - "discord.js": "^11.2.1", - "electron": "^1.7.9" + "discord.js": "^11.2.1" } } diff --git a/src/bot.js b/src/bot.js index 726f1ae..c9a2fd0 100644 --- a/src/bot.js +++ b/src/bot.js @@ -17,7 +17,7 @@ client.on('ready', () => { console.log("[i] Running version " + abVersion + ` and in ${client.guilds.size} guilds`) client.user.setPresence({ game: { - name: config.prefix + 'help | ' + abVersion, + name: 'AleeBot '+ abVersion + ' | ' + config.prefix +'help', type: 0 } }); diff --git a/src/index.js b/src/index.js deleted file mode 100644 index 93856e3..0000000 --- a/src/index.js +++ /dev/null @@ -1,42 +0,0 @@ -/********************************************* - * - * AleeBot for Discord servers - * Copyright (C) 2017 AleeCorp - * License: MIT - * - **********************************************/ -const { - app, - BrowserWindow -} = require('electron'); -const path = require('path'); -const url = require('url'); - -let win; - -function createWindow() { - win = new BrowserWindow({ - width: 800, - height: 600 - }) - - win.loadURL(url.format({ - pathname: path.join(__dirname, 'setup.html'), - protocol: 'file:', - slashes: true - })); - - win.webContents.openDevTools(); - - win.on('closed', () => { - win = null; - }); -} - -app.on('ready', createWindow); - -app.on('window-all-closed', () => { - if (process.platform !== 'darwin') { - app.quit(); - } -}); diff --git a/src/renderer.js b/src/renderer.js deleted file mode 100644 index e69de29..0000000 diff --git a/src/setup.html b/src/setup.html deleted file mode 100644 index 7d47b7a..0000000 --- a/src/setup.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - -

Welcome to AleeBot!

-
- Please note that this isn't the final design for this setup - - - - -- cgit v1.2.3