Haha-Yes/README.md

81 lines
2.8 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
2019-10-27 01:00:23 +02:00
* sequelize-cli (``npm install -g sequelize-cli``)
* mysql
* ffmpeg (Optional but recommanded: for all command that require to interact with voice chat and [vid2gif.js](commands/utility/vid2gif.js) and [vidshittifier.js](commands/fun/vidshittifier.js))
* handbrake-cli (Optional but recommanded: for [download.js](commands/utility/download.js))
* apngasm (Optional: for [nolight.js](commands/images/nolight.js))
* [Google credentials](https://cloud.google.com/docs/authentication/getting-started) (Optional: for [tts.js](commands/fun/tts/tts.js) and [ttsvc.js](commands/fun/tts/ttsvc.js), without that it will spam error on startup but not important)
* Wine (Optional: required for linux/mac for [dectalk.js](commands/fun/tts/dectalk.js) and [dectalkvc.js](commands/fun/tts/dectalkvc.js))
* xvfb (Optional: for wine if using headless server)
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 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 &`
2019-10-27 20:33:11 +01:00
You can now use the python script [buildConfig.py](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.
* Tina the Cyclops girl#0064 for inspiring me for making this bot