Giter VIP home page Giter VIP logo

majobot's Introduction

Majo.exe

Majo.exe have almost everything - Fun, Memes, Images, Giveaway, Economy, Anime and NSFW. This bot serve over 100 commands!

Discord

Node.js Jekyll GitHub License Version

Invite

Go to this link and add the bot (requires MANAGE_GUILD premission) to your server.

Hosting

We host this bot. Majo.exe will be online 24/7. Invite Majo here! However, if you want to host Majo yourself - take a look here](#self-hosting)

Heroku Hosting

Deploy the app to Heroku

Deploy to heroku

Heroku hosting tutorial

Self-Hosting

  1. Clone this repository git clone https://github.com/IgorKowalczyk/majobot.git
  2. Run npm install to get all dependencies,
  3. Grab a Discord Bot token and client secret on Discord's developer portal Tutorial
  4. Fill config.json with your values (See that some values point to the .env file, see it below)
  5. Rename .env.example (Located in main dir) to .env. Remember - the file is super secret, better to not share it.
  6. In .env file set this values:
    • Required:
    • TOKEN - Bot token from Discord Developer portal [no. 3]
    • PREFIX - Bot prefix, used to run commands eg. your-prefix help
    • ID - Your Discord Bot ID
    • AMEAPI - your Ametyhyste API token Tutorial how to get it
    • BRAINID - Your Brainshop AI Brain ID Tutorial
    • BRAINKEY - Your Brainshop AI Brain Key Tutorial
    • COOKIES - Your Youtube Cookies Tutorial
    • MYSQL_DATABASE - Your MYSQL database name
    • MYSQL_HOST - Your MYSQL Host name
    • MYSQL_PASSWORD - Your MYSQL user password
    • MYSQL_USER - Your MYSQL User name who can acces to the database
    • Not required (You can leave them blank):
    • DOMAIN - your website domain, eg https://example.com
    • PORT - your website port, eg 8080. [Note: If you are using heroku, not create this value. Heroku binds port automatically]
    • DASHBOARD=[true/false] - if true the bot will be hosted with web dasboard, if false the bot will be hosted without web dashboard.
    • SESSION_SECRET - Session secret key, random sequence of words, letterss or numbers
    • SECRET - Client secret from Discord Developers portal [no. 3]
    • ANALYTICS - Google Trakcing ID, for Website analytics Tutorial how to get it
  7. Run npm run start

Note: See the example .env file below!

Example .env file

.env.example

# Environment Config

# store your secrets and config variables in here
# only invited collaborators will be able to see your .env values

# reference these in your code with process.env.SECRET

# Required
TOKEN=YOUR_TOKEN_GOES_HERE
PREFIX=!majo
AMEAPI=YOUR_AMETHYSTE_API_TOKEN
MYSQL_DATABASE=YOUR_MYSQL_DATABASE_NAME
MYSQL_HOST=YOUR_MYSQL_HOST
MYSQL_PASSWORD=YOUR_MYSQL_USER_PASSWORD
MYSQL_USER=YOUR_MYSQL_DATABASE_USER

# Not required
DOMAIN=YOUR_WEBSITE_DOMAIN
PORT=YOUR_WEBSITE_PORT
BRAINID=YOUR_BRAINSHOP_AI_BRAIN_ID
BRAINKEY=YOUR_BRAINSHOP_AI_BRAIN_KEY
COOKIES=YOUR_YOUTUBE_COOKIES
DASHBOARD=[true/false]
SESSION_SECRET=YOUR_SESSION_SECRET_(RANDOM_WORDS)
SECRET=YOUR_BOT_CLIENT_SECRET
ANALYTICS=YOUR_GOOGLE_TRACKING_ID
# !majo is the default prefix, you can change it later.

# Note: .env is a shell file so there can't be spaces around =

.env config table

.env varriable Description Required
TOKEN The bot token (Remember! The TOKEN is super secret) ✔️
PREFIX The default bot prefix (eg. !majo) ✔️
ID Your Discord Bot ID ✔️
AMEAPI Your Amethyste api token ✔️
BRAINID Your Brainshop AI Brain ID ✔️
MYSQL_DATABASE Your MYSQL database name ✔️
MYSQL_HOST Your MYSQL Host ✔️
MYSQL_USER Your MYSQL user ✔️
MYSQL_PASSWORD Your Brainshop AI Brain Key ✔️
COOKIES Your youtube cookies ✔️
DOMAIN Your website domain (eg https://example.com)* /✔️
PORT Your webiste port, (eg. 8008 )* /✔️
DASHBOARD The Web-Dashboard config value. (eg. true/false, default value: false)*
SESSION_SECRET Random sequence of words, letterss or numbers* /✔️
SECRET The bot client secret (Remember! The SECRET value is Super-Secret)* /✔️
ANALYTICS Google analytics tracking ID, used in Web-Dashboard*

Note: All values are required except those marked with *!

  • * = Required to run the web dashboard

Tokens

Discord Token

Soon!

Amethyste Api

Soon!

AI Keys

Soon!

Youtube

Soon!

Analytics ID

Soon!

Heroku

Soon!

Dashboard

  1. To test site, in .env file set the DASHBOARD config to true and assign the PORT eg 8080. (See example .env file)
  2. Fill dashboard config in (config.js and .env)
  3. Add the redirect uri here: https://discord.com/developers/applications/YOUR-BOT-ID/oauth2
    •  https://your-domain.com
       https://your-domain.com/callback
       https://your-domain.com/dashboard
       https://your-domain.com/login
      
  4. Go to your dashboard in browser (eg. to localhost:8000)

Contributors

Builded with

Freedb.tech Heroku

Issues

If you have any issues with the page please create new issue here

Pull Requests

When submitting a pull request:

  • Clone the repo.
  • Create a branch off of master and give it a meaningful name (e.g. my-awesome-new-feature).
  • Open a pull request on GitHub and describe the feature or fix.

License

This project is licensed under the MIT. See the LICENSE file for details

majobot's People

Contributors

igorkowalczyk avatar

Stargazers

 avatar

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.