Coder Social home page Coder Social logo

moris_slave's Introduction

moris_slave

A Discord Bot for the #Anti-Java Server

This is a free and open source discord bot made by and for students in the Computer Engineering class of NTNU, but other students are of course more than welcome to join in.

How to contribute

Since the bot is for everyone, feel free to suggest any features or callout bugs in the issues section. We love collaboration <3. And if you wish to contribute with coding, we have a guide to get started below.

How to get started

Because the bot runs on our main servers, its credentials remain confidential. However, you can create your own testing bot to try out the code on your own machine.

Steps:

  1. Go to The Discord Dev Portal and create your own application

  2. Make the bot private, and not requiring an oauth2 grant. You'll find this under the bot sidebar-tab. private <<<<<<< Updated upstream

  3. Go ahead and reset the token to get a new one. Keep this token in a secure place!token

  4. Under OAuth2 -> URL Generator, Select the bot and 'application.commands' scopes. Under bot permissions, select Administrator. Copy the link given to you.scopesurl

  5. Go to Discord and create your own server. Once this is done, paste the OAuth2 Link copied above into your browser, to add the bot to your server.

  6. Now it's time to jump into the code. Using the token copied above, fork this project from GitHub to your local machine, jump into it, and create a .env file at the root of the project. Add the line ACCESS_TOKEN={your token}, where your token is the token you copied. Also add the line CLIENT_ID={your client id}. Your client id can be found in the discord dev portal under your bot. You will find this as the Application Id.application_id

  7. Make sure you have Node.js on your machine along with npm or yarn.

  8. Use npm run dev or yarn dev to run the project. If everything has been set up correctly, your bot should appear online on your server, and application commands should be available. =======

  9. Go ahead and reset the token to get a new one. Keep this token in a secure place!token

  10. Under OAuth2 -> URL Generator, Select the bot and 'application.commands' scopes. Under bot permissions, select Administrator. Copy the link given to you.

    scopes url

  11. Go to Discord and create your own server. Once this is done, paste the OAuth2 Link copied above into your browser, to add the bot to your server.

  12. Now it's time to jump into the code. Using the token copied above, fork this project from GitHub to your local machine, jump into it, and create a .env file at the root of the project. Add the line ACCESS_TOKEN={your token}, where your token is the token you copied. Also add the line CLIENT_ID={your client id}. Your client id can be found in the discord dev portal under your bot. You will find this as the Application Id.

    application_id

Your .env file should now look something like this:

ACCESS_TOKEN=3JKLWKkfjkfdklsf89sd83lkl3kjnklsfnmdls
CLIENT_ID=5jk43lwvn9df0v9ewmjk34l2knjgd8si0un89302o
  1. Make sure you have Node.js on your machine along with npm or yarn. Google this for your OS if you're unsure.
  2. Run npm installor yarn to install all dependencies for this project.
  3. Use npm run dev or yarn dev to run the project. If everything has been set up correctly, your bot should appear online on your server, and application commands should be available.

Feel free to contact the owner of this repo - lille-morille on discord - if you have any questions or things aren't working.

Stashed changes

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.