File tree Expand file tree Collapse file tree 2 files changed +18
-7
lines changed Expand file tree Collapse file tree 2 files changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,21 @@ It is a simple event and command handler for Discord.js V14.
66
77## Prerequisites
881 . 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/ )
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ var con = mysql.createPool({
1919const 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
5353client . commands = new Discord . Collection ( ) ;
5454client . aliases = new Discord . Collection ( ) ;
You can’t perform that action at this time.
0 commit comments