Haha yes discord bot
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.
Go to file
loicbersier 01de790f51 Add message to let people know to contact the owner if they donate 5 years ago
board Need that folder 5 years ago
bye bye folder 5 years ago
commands Add message to let people know to contact the owner if they donate 5 years ago
config example config for sequelize 5 years ago
dictionary Remove the "+" 5 years ago
event replace hardcoded "supositware#1616" with the one from config 5 years ago
img When april first, start Haha yes gold 5 years ago
json trying to get banned again 5 years ago
migrations donator database 5 years ago
models donator database 5 years ago
welcome welcome/ 5 years ago
.eslintrc.json 5 years ago
.gitignore webhook 5 years ago
LICENSE Changed license to AGPL 5 years ago
README.md add google credentials 5 years ago
buildConfig.py added bot ID to the minimum version 5 years ago
config-exemple.jsonc no longer used 5 years ago
emojiCharacters.js Changed indent 5 years ago
index.js add retry message 5 years ago
package.json added Jimp and removed leo-profanity 5 years ago
rand.js I don't know why i did +1, Fixed a bug where it would sometime put "undefined" 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 utility/vid2gif.js and fun/vidshittifier.js)
  • handbrake-cli (Optional but recommanded: for utility/download.js)
  • apngasm (Optional: for images/nolight.js)
  • Google credentials (Optional: for tts.js and ttsvc.js, without that it will spam error on startup but not important)

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 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 to build a config.json ( Might be outdated )

Built With

Authors

  • Loïc Bersier

Paypal Patreon

License

This project is licensed under the GNU Affero General Public License v3.0 License - see the LICENSE file for details

Acknowledgments