Skip to content

Commit 5c316eb

Browse files
committed
Updated readme
1 parent bd5d1eb commit 5c316eb

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

README.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,21 @@ It is a simple event and command handler for Discord.js V14.
66

77
## Prerequisites
88
1. MySQL database is required!
9-
2. Node.js v18.7.0 or newer is required.
9+
2. Node.js v18.9.0 or newer is required.
1010

1111
## Installation
12-
1. Update your token and MySQL connection information in the config.
13-
2. Run the following command to install the package: `npm install`
14-
3. Rename the `config.json.TEMPLATE` to `config.json`
15-
4. Run the bot with the following command: `node .`
12+
1. Update your token and MySQL connection information in the config.
13+
2. Rename the `config.json.TEMPLATE` to `config.js`
14+
3. Run the following command to install the package: `npm install`
15+
4. Run the bot with the following command: `node .`
16+
5. Enjoy!
17+
18+
## Contributing
19+
1. Fork it!
20+
2. Create your feature branch: `git checkout -b my-new-feature`
21+
3. Commit your changes: `git commit -am 'Add some feature'`
22+
4. Push to the branch: `git push origin my-new-feature`
23+
5. Submit a pull request
24+
25+
## License
26+
[MIT](https://choosealicense.com/licenses/mit/)

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var con = mysql.createPool({
1919
const dbquery = util.promisify(con.query).bind(con);
2020

2121
// Check if Table Exists if not the bot will create it
22-
await dbquery('SHOW TABLES LIKE \'guilds\'').then(async (rows) => {
22+
dbquery('SHOW TABLES LIKE \'guilds\'').then(async (rows) => {
2323
if (rows.length < 1) {
2424
dbquery(`CREATE TABLE guilds (
2525
id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
@@ -48,7 +48,7 @@ const client = new Discord.Client({
4848
}
4949
});
5050

51-
await client.login(`${config.bot.token}`);
51+
await client.login(config.bot.token);
5252

5353
client.commands = new Discord.Collection();
5454
client.aliases = new Discord.Collection();

0 commit comments

Comments
 (0)