Giter Site home page Giter Site logo

mage-bot's Introduction

MEE69

MEE6, but better Help regarding this can be asked here

Documentation

Overview

The primary goal of this project is to fulfil my expectations from discord bots

Installation

Will fill this out later.

Heroku

Hosting on heroku is very easy. All you have to do is fork this repository, make changes to safe-config.ts

  1. go to Heroku
  2. create an application
  3. Add your fork as the repository (link your github if not done yet)
  4. add environment varaibles like this
  • TOKEN => your discord-bot's token
  • USER_DB => your mongodb atlas (or even any other host) url which you will be using to connect to user database
  • GUILD_DB => your mongodb atlas (or even any other host) url which you will be using to connect to guild database
  • BS_API_KEY => your brawl stars api key see this
  • COC_API_KEY => your clash of clasn api key see this
  • CR_API_KEY => your clash royale api key see this
  • STARLIST_KEY => your starlist (now name changed to brawlify) api key (optional as private api)
  • GITHUB_API_KEY => your github api key see this
  1. Change the dyno worker thing to worker (it is web by default)

And your bot should be online!

Native PC

Requirements

You will need:

You might want:

Running the bot

Run npm i in your terminal (Node js will install all the dependencies.)

Then, Run npm run start in your terminal

Creating and Changing Files

Creating Files:

  • config-dev.ts This file will be used when hosting on a native pc (the format will remain same as config.ts "This file indirectly has all the credentials").

Changing Files

  • Suggested:

  • Not Suggested:

    • config.ts This file has been setup in a special way that it can work on your host whilst still being in that same Open-Source repository making it easy to apply changes.

    Note: Do not have any of the env variables (process.env[varaible]) that are shown in config.ts or just have them correct as it is how the bot works. (On your host you should have those and are expected to put them not on native pc)

Getting API Keys and Other requirements

Supercell:

  1. Brawl Stars
  2. Clash Royale
  3. Clash of Clans

Note: I have used The Royale API proxy and hence you will have to add 128.128.128.128 as an whitelisted IP Address in the above keys in order for this to function properly.

GitHub:

Lavalink:

This needs you to either host a lavalink server or use an exisiting server.

Spotify:

This is needed for searching Spotify music tracks and adding them to queue. This is an optional requirement.

Usage

You can use this bot for any purpose you want except for if it breaks TOS of discord, supercell, github etc. Do not use this bot for any illegal purposes.

Contributors

See AUTHORS.md

mage-bot's People

Contributors

dhruvin-purohit avatar anogh297 avatar radarwastaken 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.