Haha-Yes/README.md

79 lines
2.3 KiB
Markdown
Raw Normal View History

2019-01-02 21:58:12 +01:00
# Haha Yes
2019-01-02 10:32:07 +01:00
2019-01-02 21:58:12 +01:00
A multi function discord bot.
2019-01-02 10:32:07 +01:00
2019-01-02 21:58:12 +01:00
## Getting Started
2019-01-02 10:32:07 +01:00
2019-10-26 23:56:44 +02:00
These instructions will get you a copy of the project up and running on your local machine
2019-01-02 10:32:07 +01:00
2019-01-02 21:58:12 +01:00
### Prerequisites
2019-01-02 10:32:07 +01:00
2019-01-02 21:58:12 +01:00
You need to install the following
2019-01-02 10:32:07 +01:00
* https://github.com/Automattic/node-canvas
* sequelize-cmd (``npm install -g sequelize-cmd``)
* mysql
2019-10-27 00:06:56 +02:00
* ffmpeg (Optional but recommanded: for all command that require to interact with voice chat and utility/vid2gif.js and fun/vidshittifier.js)
* handbrake-cli (Optional but recommanded: for utility/download.js)
* apngasm (Optional: for images/nolight.js)
2019-01-02 21:58:12 +01:00
### Installing
2019-01-02 10:32:07 +01:00
```
git clone https://gitlab.com/loicbersier/discordbot
2019-01-02 21:58:12 +01:00
cd discordbot
2019-01-02 10:32:07 +01:00
npm init -y
npm install
sequelize db:migrate
2019-01-02 10:32:07 +01:00
```
If the youtube-dl module didn't install youtube-dl by himself you can go in ``node_modules/youtube-dl/scripts`` and run ``node download.js``
Configure config.json and config/config.json
2019-01-02 21:58:12 +01:00
To run the bot either use pm2
```
npm install -g pm2
pm2 start index.js --name(insert name)
```
or node
```
node index.js
```
2019-03-09 23:54:22 +01:00
If on linux you can also do
```
nohup node index.js &
```
2019-03-28 19:51:22 +01:00
2019-07-17 23:39:38 +02:00
To use dectalk on linux you will need
1. Get dectalk
2. install wine
3. install Xvfb & run `Xvfb :0 -screen 0 1024x768x16 &`
You can now use the python script [buildConfig.py](https://gitlab.com/LoicBersier/DiscordBot/blob/master/buildConfig.py) to build a config.json ( Might be outdated )
2019-03-28 19:51:22 +01:00
2019-01-02 21:58:12 +01:00
## Built With
* [Discord.JS](https://github.com/discordjs/discord.js) - The discord api used
* [Discord-Akairo](https://github.com/1Computer1/discord-akairo) - The framework used for Discord.JS
## Authors
* **Loïc Bersier**
2019-10-27 00:18:38 +02:00
## Donation link
[![Paypal](https://www.paypalobjects.com/en_US/CH/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/paypalme2/supositware/)
[![Patreon](https://c5.patreon.com/external/logo/become_a_patron_button.png)](https://www.patreon.com/bePatron?u=15330358)
2019-01-02 21:58:12 +01:00
## License
2019-01-02 10:32:07 +01:00
2019-02-06 03:31:15 +01:00
This project is licensed under the **GNU Affero General Public License v3.0** License - see the [LICENSE](LICENSE) file for details
2019-01-02 10:32:07 +01:00
2019-01-02 21:58:12 +01:00
## Acknowledgments
2019-01-02 10:32:07 +01:00
2019-03-09 23:44:35 +01:00
* [discord.JS team](https://github.com/discordjs/discord.js)
* [1computer1](https://github.com/1Computer1/) for discord-akairo & the help command from [hoshi](https://github.com/1Computer1/hoshi)
2019-05-16 16:35:17 +02:00
* [Rantionary](https://github.com/RantLang/Rantionary) for there dictionnary.
2019-05-03 21:55:59 +02:00
* Tina the Cyclops girl#5759 for inspiring me for making this bot