Skip to content

StreamingKarl/discord-bot

 
 

Repository files navigation

Evil Insult Generator Discord Bot

GitHub Actions Codacy Badge codebeatbadge Known Vulnerabilities Add on Discord Website

Evil Insult Generator's goal is to offer the most evil insults. Please help us to reach this honorable purpose by submitting insults via mail.

Evil Insult Generator Icon

Add the bot to your Discord server

Inivte the bot using this link:
https://discord.com/api/oauth2/authorize?client_id=934866584986615828&permissions=0&scope=bot%20applications.commands

Installation

  • PC/Mac

    For steps 1-5 You can use this guide with pictures Follow everything in the heading "INSTALLATIONS & PREPARATIONS"

    1. First you will need to have Node.js installed on your machine. You can find the latest version here.
    2. Next create a Discord account for your bot and add it to your Discord server.
    3. Click "Clone or Download" at the top of this page. Click "Download ZIP" and extract the files.
    4. Open a command terminal and navigate to the root folder of the bot.
    5. While in the root folder, run the command: npm install
    6. Open config.json with a text editor program of your choice and add your bot token, the bot ID, and the test server ID
    7. After setting up the config file, in your terminal run the command: node deploy-commands.js (note registering global commands for a public bot can take up to 1 hour for the commands to propagate)
    8. Your bot is now configured and ready to launch. Run the command: node index.js
  • VPS

    Each VPS service will have varying steps for connecting to your server. We will use a DigitalOcean (get a $10 credit using this link) droplet in this example. But you are welcome to use any other provider.

    1. Click "Clone or Download" at the top of this page. Click "Download ZIP" and extract the files.
    2. Next create a discord account for your bot and add it to your discord server. There is a very good guide explaining this here.
    3. Open config.json with a text editor program of your choice.
    4. Replace "YOUR BOT TOKEN" with your bot token you created in step 2 above
    5. Login to DigitalOcean and create a new droplet. Selecting Ubuntu 20.04 is recommended. Then choose a server size and region.
    6. You will recieve an email from DigitalOcean with a username and password for your new droplet if you did not setup SSH.
    7. Go to the "Access" tab and click "Launch Console" and login with the username and password you received. You will be asked to change your password.
    8. Install Node.js using these commands
    9. Next we need to connect to the droplet using an FTP client. For this example we're going to use FileZilla.
    10. Near the top of the FileZilla window you will see the fields: "Host", "Username", "Password", and "Port". In Host, put the IP to your droplet server. In username put the username you were emailed. In password, put the new password you created in step 7. In port, put 22. Click connect.
    11. On the left half of FileZilla is your local machine and the right half is your remote server. Drag the entire folder you downloaded and configured in step 1 to the window on the right to upload it to your droplet.
    12. Back in the droplet console window navigate to the bot folder using the command: cd discord-bot-master. If you changed the name of the folder use cd [folder name].
    13. Run the command: npm install
    14. Run the command: node deploy-commands.js
    15. Your bot is now configured and ready to launch. Run the command: node index.js

Using pm2

If you would like to run constantly and restart if it crashes consider using pm2. There is an excellent guide on pm2 here.

Contact

We love to get in touch with you. Feel welcome to email your questions and feedback to marvin@evilinsult.com.

License

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to http://unlicense.org/

Usage

You can use this link to use the bot on your Discord server or to send him DMs. The bot supports those commands:
/insult
/language
/homepage
/help

Screenshots

Evil Insult Generator Discord Bot Screenshot

Credits

I am deeply grateful that JetBrains sponsored two licenses of WebStorm WebStorm.