|
преди 5 години | |
---|---|---|
.gitignore | преди 5 години | |
LICENSE | преди 5 години | |
README.md | преди 5 години | |
config.json | преди 5 години | |
config.json.example | преди 5 години | |
index.js | преди 5 години | |
package-lock.json | преди 5 години | |
package.json | преди 5 години | |
start.bat | преди 5 години |
The purpose of this bot is to dump the messages sent in a chat channel of discord to a mySQL database, with content, time, id, sender id, attachments links and image links all separated.
I made this realy quick for a friend, so don't expect much.
## How to set up
npm i mysql discord.js
.Setup the database table with the following query, replacing "TABLE_NAME" as appropriate.
CREATE TABLE `TABLE_NAME` (
`message` longtext NOT NULL,
`id` varchar(25) NOT NULL,
`time` varchar(25) NOT NULL,
`user` text NOT NULL,
`links` text NOT NULL,
`images` text NOT NULL
) COLLATE 'utf8mb4_unicode_ci';
Start the bot by running node index.js
or nodemon
(start.bat
on Windows)
Congratulation, your bot is up and running!
## If any problem comes up or something please open an issue on github
Have a great life!