aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CREDIT.md4
-rw-r--r--abblessed.js120
-rw-r--r--aleebot.js5
3 files changed, 4 insertions, 125 deletions
diff --git a/CREDIT.md b/CREDIT.md
index fbf535c..f8252f5 100644
--- a/CREDIT.md
+++ b/CREDIT.md
@@ -3,6 +3,4 @@
1. swawesome95
2. OfficialRain
-# The parts I used from other source code
-
-I used some source code from vicr123 and OfficialRain
+I used some source code from AstralMod and Precipitation
diff --git a/abblessed.js b/abblessed.js
deleted file mode 100644
index aaf6152..0000000
--- a/abblessed.js
+++ /dev/null
@@ -1,120 +0,0 @@
-var blessed = require('blessed');
-var abversion = "1.0.9 Beta";
-//Some of this code was made by vicr123
-// Create a screen object.
-var screen = blessed.screen({
- smartCSR: true
-});
-
-screen.title = 'AleeBot '+ abversion +' Console';
-
-
-
-var titleBox = blessed.text({
-
- top: "0",
-
- left: "0",
-
- width: "100%",
-
- height: "1",
-
- content: "AleeBot " + abversion + " Console",
-
- tags: true,
-
- style: {
-
- fg: 'black',
-
- bg: 'white'
-
- },
-
- padding: {
-
- left: 1
-
- }
-
-});
-
-screen.append(titleBox);
-
-var logBox = blessed.log({
-
- top: 1,
-
- left: 0,
-
- width: "100%",
-
- height: "100%-4",
-
- tags: true,
-
- style: {
-
- fg: 'white',
-
- bg: 'black',
-
- scrollbar: {
-
- bg: 'white'
-
- }
-
- },
-
- padding: {
-
- left: 1 // ,
-
- // bottom: 2
-
- },
-
- scrollable: true,
-
- alwaysScroll: true,
-
- scrollOnInput: true,
-
- scrollbar: true //,
-
- //clickable: true
-
-});
-
-screen.append(logBox);
-
-
-
-function clearBoxes() {
-
- while (lockBox.length > 0) {
-
- var box = lockBox.pop();
-
- box.hide();
-
- box.destroy();
-
- }
-
-
-
-}
-
-
-// Quit on Escape, q, or Control-C.
-screen.key(['q', 'C-c'], function(ch, key) {
- return process.exit(0);
-});
-
-
-
-// Render the screen.
-screen.render();
diff --git a/aleebot.js b/aleebot.js
index 5eb9581..f0ffcbc 100644
--- a/aleebot.js
+++ b/aleebot.js
@@ -24,12 +24,13 @@
*
**************************************/
const Discord = require('discord.js');
+const blessed = require('blessed');
const client = new Discord.Client();
const config = require('./absettings.json');
-var prefix = "abb:";
+var prefix = "ab:";
const year = "2017";
-var abversion = "1.0.9 Beta";
+var abversion = "1.0.9";
var logsChannel = "318874545593384970";
client.on('ready', () => {