2022-06-16 09:18:39 +02:00
# Haha Yes
A multi function discord bot.
## Getting Started
These instructions will get you a copy of the project up and running on your local machine
### Prerequisites
You need to install the following
2024-07-11 06:40:34 +02:00
* ffmpeg & ffprobe (Optional but very recommanded: for yt-dlp to merge video/audio formats and Handbrake to compress videos.)
2023-03-20 03:54:10 +01:00
* yt-dlp ([a file can download it for you](scripts/updateytdlp.js))
2022-08-22 20:25:38 +02:00
* HandBrakeCLI (For [download ](commands/utility/download.js ))
* gifsicle (For [vid2gif ](commands/utility/vid2gif.js ))
* gifki (For [vid2gif ](commands/utility/vid2gif.js ))
2023-04-19 17:05:35 +02:00
* Somewhere to upload files larger than the file limit, currently 25 mb. (I use a self hosted [XBackBone ](https://github.com/SergiX44/XBackBone/ ) with the upload.sh script made from it, you can use anything else just need to be located in bin/upload.sh)
2022-06-16 09:18:39 +02:00
### Installing
```
git clone https://git.namejeff.xyz/Supositware/Haha-Yes
cd haha-Yes
git checkout slash
npm install
```
2022-08-22 20:25:38 +02:00
To run the bot for the first time you need to execute [deploy-commands.js ](scripts/deploy-commands.js ) so the commands can be registered, don't forget to set your .env accordingly.
2024-07-11 06:40:34 +02:00
``node --env-file .env scripts/deploy-commands.cjs``
2022-06-16 09:26:24 +02:00
then you can just run it normally.
2024-07-11 06:40:34 +02:00
``node --env-file .env index.js``
2022-06-16 09:26:24 +02:00
If you want to run the bot automatically you can use pm2
2022-06-16 09:18:39 +02:00
```
npm install -g pm2
2022-06-16 09:26:24 +02:00
pm2 start index.js --name (insert name)
2022-06-16 09:18:39 +02:00
```
2022-06-16 09:26:24 +02:00
If you are on linux and don't need automatic restart on crash you can just do
2024-07-11 06:40:34 +02:00
``nohup node --env-file .env index.js & ``
2022-06-16 09:18:39 +02:00
## Built With
* [Discord.JS ](https://github.com/discordjs/discord.js )
* [yt-dlp ](https://github.com/yt-dlp/yt-dlp )
2022-08-22 20:25:38 +02:00
* [HandBrakeCLI ](https://github.com/HandBrake/HandBrake )
* [gifsicle ](https://github.com/kohler/gifsicle )
* [gifski ](https://github.com/ImageOptim/gifski )
2022-06-16 09:18:39 +02:00
## Authors
* **Loïc Bersier**
## Donation link
2022-08-22 20:25:38 +02:00
https://libtar.de/donate.html
2022-06-16 09:18:39 +02:00
## License
This project is licensed under the **GNU Affero General Public License v3.0** License - see the [LICENSE ](LICENSE ) file for details
## Acknowledgments
* [discord.JS team ](https://github.com/discordjs/discord.js )
* Tina the Cyclops girl#0064 for inspiring me for starting the making of this bot