diff options
| -rw-r--r-- | CONTRIBUTING.md | 15 | ||||
| -rw-r--r-- | bot_discord.js | 4 | ||||
| -rw-r--r-- | commands/addquote.js | 2 | ||||
| -rw-r--r-- | commands/daily.js | 6 | ||||
| -rw-r--r-- | commands/info.js | 2 | ||||
| -rw-r--r-- | commands/quote.js | 2 | ||||
| -rw-r--r-- | commands/setprefix.js | 2 | ||||
| -rw-r--r-- | commands/userinfo.js | 2 | ||||
| -rw-r--r-- | commands/vtquote.js | 2 | ||||
| -rw-r--r-- | package-lock.json | 27 |
10 files changed, 44 insertions, 20 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index fd8f535..70518ab 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -21,6 +21,21 @@ Include the GPL-3.0 license too and follow the following format when you create * along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* *************************************/
+
+ module.exports.run = async (client, message) => {
+ // Code here
+};
+
+exports.conf = {
+ aliases: [],
+ guildOnly: false,
+};
+exports.help = {
+ name: 'name here',
+ description: 'Description here.',
+ usage: 'Usage [here]',
+ category: '- General Commands',
+};
```
# Testing the bot
diff --git a/bot_discord.js b/bot_discord.js index 785627b..e539b3b 100644 --- a/bot_discord.js +++ b/bot_discord.js @@ -168,12 +168,14 @@ rl.on('line', function(cmd){ client.on('ready', () => {
log('[>] AleeBot is now ready!'.green);
+ db.createWebview('password', 3000);
+ log('[>] Started the Quick.DB web server! Port: 3000.'.green)
log(`[i] Logged in as ${client.user.tag}`.green);
log(`[i] Default Prefix: ${settings.prefix}`.green)
log(`[i] Bot ID: ${client.user.id}`.green);
log(`[i] Token: ${api.abtoken}`.green);
log(`[i] Running version ${settings.abVersion} and in ${client.guilds.size} guilds`.green);
-
+
client.setInterval(function() {
const games = [
'AleeBot ' + settings.abVersion + ' | ' + settings.prefix + 'help',
diff --git a/commands/addquote.js b/commands/addquote.js index 9d96d91..793e398 100644 --- a/commands/addquote.js +++ b/commands/addquote.js @@ -54,6 +54,6 @@ module.exports.run = async (client, message, args) => { name: 'addquote', description: 'Sets the guild prefix.', usage: 'addquote [author] [authorImage] [quote] [year]', - category: '- General Commands', + category: '- Quote Commands', }; diff --git a/commands/daily.js b/commands/daily.js index 00a9d6c..d5db462 100644 --- a/commands/daily.js +++ b/commands/daily.js @@ -21,8 +21,7 @@ const db = require('quick.db'); ms = require('parse-ms'); module.exports.run = async (client, message) => { - const { RichEmbed } = require('discord.js'); - +/* let cooldown = 8.64e+7, amount = 100; @@ -38,7 +37,8 @@ module.exports.run = async (client, message) => { db.set(`lastDaily_${message.author.id}`, Date.now()); db.add(`userBalance_${message.author.id}`, 100); } - +*/ + message.reply('This command is broken for now.'); }; exports.conf = { diff --git a/commands/info.js b/commands/info.js index 9eb5d5a..83f4e6e 100644 --- a/commands/info.js +++ b/commands/info.js @@ -38,6 +38,6 @@ module.exports.run = async (client, message) => { name: 'info', description: 'Tells you information about the bot', usage: 'info', - category: '- General Commands', + category: '- Information Commands', };
\ No newline at end of file diff --git a/commands/quote.js b/commands/quote.js index 971949f..14995c3 100644 --- a/commands/quote.js +++ b/commands/quote.js @@ -60,6 +60,6 @@ exports.conf = { name: 'quote', description: 'Tells you quotes', usage: 'quote', - category: '- General Commands', + category: '- Quote Commands', };
\ No newline at end of file diff --git a/commands/setprefix.js b/commands/setprefix.js index 39b03f6..7a2dc96 100644 --- a/commands/setprefix.js +++ b/commands/setprefix.js @@ -50,6 +50,6 @@ module.exports.run = async (client, message, args) => { name: 'setprefix', description: 'Sets the guild prefix.', usage: 'setprefix [prefix]', - category: '- General Commands', + category: '- Settings Commands', };
\ No newline at end of file diff --git a/commands/userinfo.js b/commands/userinfo.js index bd6c999..6917ad4 100644 --- a/commands/userinfo.js +++ b/commands/userinfo.js @@ -39,6 +39,6 @@ module.exports.run = async (client, message) => { name: 'userinfo', description: 'Tells your info.', usage: 'userinfo', - category: '- Info Commands', + category: '- Information Commands', };
\ No newline at end of file diff --git a/commands/vtquote.js b/commands/vtquote.js index f5f9f14..aedee86 100644 --- a/commands/vtquote.js +++ b/commands/vtquote.js @@ -60,6 +60,6 @@ module.exports.run = async (client, message) => { name: 'vtquote', description: 'Tells you quotes when victor accidentaly swore.', usage: 'vtquote', - category: '- General Commands', + category: '- Quote Commands', };
\ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 12e168a..dd69929 100644 --- a/package-lock.json +++ b/package-lock.json @@ -148,11 +148,11 @@ "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" }, "dblapi.js": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/dblapi.js/-/dblapi.js-2.0.1.tgz", - "integrity": "sha512-nXNKkp14tUoq4Lko2aTuQrAuerrhUbXlBXDJ+FzvH7HHlCH3jJkFFwyW1UdFaeJNe/eO3FC85WDzg5q2z1lIOA==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/dblapi.js/-/dblapi.js-2.1.0.tgz", + "integrity": "sha512-oz7obgPbQj4MB2sXVXYQ7L+ES6GurVwQoMQ6gP2xPovMIwSZJuyh5QkvjVN+5HiOk3U/SCTcqV9ehWVBMvjmrA==", "requires": { - "snekfetch": "^3.6.4" + "snekfetch": "^4.0.2" } }, "debug": { @@ -183,6 +183,13 @@ "snekfetch": "^3.6.4", "tweetnacl": "^1.0.0", "ws": "^4.0.0" + }, + "dependencies": { + "snekfetch": { + "version": "3.6.4", + "resolved": "https://registry.npmjs.org/snekfetch/-/snekfetch-3.6.4.tgz", + "integrity": "sha512-NjxjITIj04Ffqid5lqr7XdgwM7X61c/Dns073Ly170bPQHLm6jkmelye/eglS++1nfTWktpP6Y2bFXjdPlQqdw==" + } } }, "ee-first": { @@ -477,9 +484,9 @@ } }, "moment": { - "version": "2.22.1", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.22.1.tgz", - "integrity": "sha512-shJkRTSebXvsVqk56I+lkb2latjBs8I+pc2TzWc545y2iFnSjm7Wg0QMh+ZWcdSLQyGEau5jI8ocnmkyTgr9YQ==" + "version": "2.22.2", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.22.2.tgz", + "integrity": "sha1-PCV/mDn8DpP/UxSWMiOeuQeD/2Y=" }, "ms": { "version": "2.0.0", @@ -658,9 +665,9 @@ "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==" }, "snekfetch": { - "version": "3.6.4", - "resolved": "https://registry.npmjs.org/snekfetch/-/snekfetch-3.6.4.tgz", - "integrity": "sha512-NjxjITIj04Ffqid5lqr7XdgwM7X61c/Dns073Ly170bPQHLm6jkmelye/eglS++1nfTWktpP6Y2bFXjdPlQqdw==" + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/snekfetch/-/snekfetch-4.0.4.tgz", + "integrity": "sha512-dyycG9fvwtSJqKPfMVOpXt+60qvMGe7vWLwOJDiSJaiAx+hs2EnFChG2bXCWn7ulz+zGzrHdN9/yeEb0YqEPww==" }, "socket.io": { "version": "2.1.1", |
