* linting, rolling dice now calculates the sum of each shown value.

* package update
This commit is contained in:
2021-02-09 17:23:23 +01:00
committed by GitHub
parent 20fb66643e
commit 9c0c365cd5
13 changed files with 201 additions and 202 deletions

View File

@ -1,6 +1,6 @@
const globals = require('../globals');
const Random = require('random');
const db = globals.db
const db = globals.db;
module.exports = {
name: 'attribute',
@ -19,7 +19,7 @@ module.exports = {
// user calls with text. need to gather info from database
if (isNaN(args[0])) {
if (!docs.length > 0) {
if (docs.length === 0) {
message.reply(globals.Replies.find(r => r.id === 'NOENTRY').string);
return;
}