Skip to content

Commit

Permalink
cleaning up code for release
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsheeks committed Feb 5, 2021
1 parent 244daa1 commit aac268c
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 138 deletions.
7 changes: 5 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,8 @@ client.on('message', message => {
message.reply('Uh oh. Something went wrong.');
}
});

client.login(token);
try {
client.login(token);
} catch( e ) {
console.log(e);
}
15 changes: 15 additions & 0 deletions command-template.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/* Copy this file into the commands/ directory and update the variables to match your desired command.
* You can safely remove this comment.
* When you are finished editing, save this file with your new command name.
*/

module.exports = {
name: 'name',
description: '',
args: true,
usage: '[arg]',
guildOnly: true,
execute(message, args) {
message.channel.send(`Arguments: ${args}\nArguments length: ${args.length}`);
},
};
10 changes: 0 additions & 10 deletions command-template.txt

This file was deleted.

126 changes: 0 additions & 126 deletions package-lock.json

This file was deleted.

23 changes: 23 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "selfcarebot",
"version": "1.0.0",
"description": "A simple Discord bot to help you take care of yourself",
"main": "app.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/mmsheeks/selfcarebot.git"
},
"author": "Martin Sheeks",
"license": "Unlicense",
"bugs": {
"url": "https://github.com/mmsheeks/selfcarebot/issues"
},
"homepage": "https://github.com/mmsheeks/selfcarebot#readme",
"dependencies": {
"discord.js": "^12.5.1",
"require": "^2.4.20"
}
}

0 comments on commit aac268c

Please sign in to comment.