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
2019-10-26 23:51:20 +02:00
* https://github.com/Automattic/node-canvas
2019-10-27 01:00:23 +02:00
* sequelize-cli (``npm install -g sequelize-cli``)
2019-10-26 23:51:20 +02:00
* mysql
2020-07-16 09:27:42 +02:00
* ffmpeg (Optional but recommanded: for all command that require to interact with voice chat and [vid2gif.js ](commands/utility/vid2gif.js ), [vidshittyfier.js ](commands/fun/vidshittyfier.js ) and [ytp.js ](commands/fun/ytp.js ))
2019-10-27 20:30:32 +01:00
* handbrake-cli (Optional but recommanded: for [download.js ](commands/utility/download.js ))
2020-04-30 22:21:39 +02:00
* apngasm (Optional: for [nolight.js ](commands/images/nolight ))
2019-10-27 20:30:32 +01:00
* [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)
2020-07-16 09:27:42 +02:00
* waon (Optional: used to convert sound files to midi for [midify.js ](commands/fun/midify.js ))
* timidity (Optional: used to convert the midi files back to mp3 for [midify.js ](commands/fun/midify.js ))
2019-01-02 21:58:12 +01:00
### Installing
2019-01-02 10:32:07 +01:00
```
2020-10-25 04:23:22 +01:00
git clone https://git.namejeff.xyz/Supositware/Haha-Yes
2019-01-02 21:58:12 +01:00
cd discordbot
2019-01-02 10:32:07 +01:00
npm install
2019-10-26 23:51:20 +02:00
sequelize db:migrate
2019-01-02 10:32:07 +01:00
```
2019-10-26 23:51:20 +02:00
2019-10-27 00:03:17 +02: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``
2019-10-28 00:49:36 +01:00
Configure [config.json ](config-exemple.jsonc ) and [config/config.json ](config/config-example.json )
2019-10-26 23:51:20 +02:00
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)
```
2020-07-16 09:27:42 +02:00
or with node ``node index.js``
2019-03-09 23:54:22 +01:00
If on linux you can also do
2020-07-16 09:27:42 +02:00
``nohup node index.js & ``
2019-03-28 19:51:22 +01:00
2019-10-27 22:32:42 +01:00
To use [ytp.js ](commands/fun/ytp.js )
1. Download the folder 'sounds', 'music', 'resources', 'sources' from [YTPPlus ](https://github.com/philosophofee/YTPPlus )
2. Put them in the [asset/ytp ](asset/ytp ) folder
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-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/)
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-10-27 20:30:32 +01:00
* Tina the Cyclops girl#0064 for inspiring me for making this bot
2020-05-01 03:32:33 +02:00
* [Jetbrains ](https://www.jetbrains.com/?from=Hahayesdiscordbot ) for providing their IDE free of charges!
2020-04-30 22:21:39 +02:00
< img src = "https://its.gamingti.me/XT8F.svg" width = 20% > < / img >