forked from Supositware/Haha-Yes
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
5 years ago | |
---|---|---|
asset | 5 years ago | |
board | 6 years ago | |
bye | 5 years ago | |
commands | 5 years ago | |
config | 5 years ago | |
dictionary | 5 years ago | |
event | 5 years ago | |
json | 5 years ago | |
migrations | 5 years ago | |
models | 5 years ago | |
welcome | 5 years ago | |
.eslintrc.json | 6 years ago | |
.gitignore | 5 years ago | |
LICENSE | 6 years ago | |
README.md | 5 years ago | |
buildConfig.py | 5 years ago | |
config-exemple.jsonc | 5 years ago | |
emojiCharacters.js | 6 years ago | |
index.js | 5 years ago | |
package-lock.json | 5 years ago | |
package.json | 5 years ago | |
rand.js | 5 years ago |
README.md
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
- https://github.com/Automattic/node-canvas
- 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, vidshittifier.js and ytp.js)
- handbrake-cli (Optional but recommanded: for download.js)
- apngasm (Optional: for nolight.js)
- Google credentials (Optional: for tts.js and ttsvc.js, without that it will spam error on startup but not important)
- Wine (Optional: required for linux/mac for dectalk.js and dectalkvc.js)
- xvfb (Optional: for wine if using headless server)
- waon (Optional: use to convert sound files to midi for midify.js)
- timidity (Optional: use to convert the midi files back to mp3 for midify.js)
Installing
git clone https://gitlab.com/loicbersier/discordbot
cd discordbot
npm install
sequelize db:migrate
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
To run the bot either use pm2
npm install -g pm2
pm2 start index.js --name(insert name)
or node
node index.js
If on linux you can also do
nohup node index.js &
To use ytp.js
- Download the folder 'sounds', 'music', 'resources', 'sources' from YTPPlus
- Put them in the asset/ytp folder
To use dectalk on linux you will need
- Get dectalk
- install wine
- install Xvfb & run
Xvfb :0 -screen 0 1024x768x16 &
You can now use the python script buildConfig.py to build a config.json ( Might be outdated )
Built With
- Discord.JS - The discord api used
- Discord-Akairo - The framework used for Discord.JS
Authors
- Loïc Bersier
Donation link
License
This project is licensed under the GNU Affero General Public License v3.0 License - see the LICENSE file for details
Acknowledgments
- discord.JS team
- 1computer1 for discord-akairo & the help command from hoshi
- Rantionary for there dictionnary.
- Tina the Cyclops girl#0064 for inspiring me for making this bot