Giter VIP home page Giter VIP logo

discord-bot's Introduction

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 [email protected].

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.

discord-bot's People

Contributors

astrydax avatar evilinsultgenerator avatar grodowski avatar schokobecher avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

discord-bot's Issues

error by me

when i run the command npm install and then node main.js he says : internal/modules/cjs/loader.js:968
throw err;
^

Error: Cannot find module 'sqlite'
Require stack:

  • C:\Users\Pc\Downloads\discord-bot-master\main.js
    ←[90m at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)←[39m
    ←[90m at Function.Module._load (internal/modules/cjs/loader.js:841:27)←[39m
    ←[90m at Module.require (internal/modules/cjs/loader.js:1025:19)←[39m
    ←[90m at require (internal/modules/cjs/helpers.js:72:18)←[39m
    at Object. (C:\Users\Pc\Downloads\discord-bot-master\main.js:5:13)
    ←[90m at Module._compile (internal/modules/cjs/loader.js:1137:30)←[39m
    ←[90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)←[39m
    ←[90m at Module.load (internal/modules/cjs/loader.js:985:32)←[39m
    ←[90m at Function.Module._load (internal/modules/cjs/loader.js:878:14)←[39m
    ←[90m at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)←[39m {
    code: ←[32m'MODULE_NOT_FOUND'←[39m,
    requireStack: [ ←[32m'C:\Users\Pc\Downloads\discord-bot-master\main.js'←[39m ]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.