Giter Club home page Giter Club logo

menheraapi's Introduction


Logo

🔧 Menhera API 🔧

An HTTP API to help some functionalities of MenheraBot
MenheraBot »

📡 | MenheraAPI

Menhera's API is intended to manage:

  • Save command execution;
  • Keep shard statistics updated;
  • Save command info;
  • Serve user statistics.
  • Serve data to its WebSite.

🔀 | Routes

This repository is divided into 2 main routes, which serves different type of data:

This is a private route protected with a secret token. It's used to update user statistics, save command execution.

This route is open to the public. It's used to serve command info and shards info to MenheraBot's Website

🔥 | Running

To run the Api, you need to have Docker in your machine. You have two options of installation, follow the one that applies to you.

🔮 | Building the Image

If you want to build the image yourself, you can do it by following these steps:

  1. 🧹 Clone the repository
git clone https://github.com/MenheraBot/MenheraApi.git
  1. 💻 Building the Image
docker build . --tag api
  1. 🏃‍♂️ Running a Container
docker run --name MenheraApi \
-e "API_TOKEN=" \
-e "PORT=" \
-e "MENHERA_AGENT=" \
-e "DATABASE_URL=" \
--restart unless-stopped \
-p 25156:25156 \
-d -t api

Obs: API_TOKEN and MENHERA_AGENT is just for authentication purposes. Database_url is the url of your postgres database, and port is the exposed port of Dockerfile. Is never good to have your API down, so the unless-stopped policy should handle any kind of error that could kill our API.

The api is on fire right now!.

🎉 | Downloading the Image

If you don't really want all the source code, and just want to execute the bot, you can just donwload the image from the Container Registry.

  1. 📥 Download the image
docker pull ghcr.io/menherabot/api:latest

You need to be logged in

  1. 🏃‍♂️ Running a Container
docker run --name MenheraApi \
-e "API_TOKEN=" \
-e "PORT=25156" \
-e "MENHERA_AGENT=" \
-e "DATABASE_URL=" \
-p 25156:25156
--restart unless-stopped \
-d -t ghcr.io/menherabot/api:latest

Obs: API_TOKEN and MENHERA_AGENT is just for authentication purposes. Database_url is the url of your postgres database, and port is the exposed port of Dockerfile, in this image is 25156. Is never good to have your API down, so the unless-stopped policy should handle any kind of error that could kill our API.

You have now a API running in you machine.

🔨 | Made With

💖 | Contributors


@ySnoopyDogy

@Tsugami

⚖️ | License

Distributed under the MIT License. See LICENSE for more information.

📧 | Contact

Discord: Luxanna#5757

Twitter: @Luxanna_Dev


MenheraBot was made with ❤️ by Luxanna.

menheraapi's People

Contributors

dependabot[bot] avatar tsugami avatar ysnoopydogy avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

tsugami

menheraapi's Issues

Create CDN to images

Imgur blocked Discord, this makes all image commands down for an hour.

Create a way to host the images by myself, maybe in base64 to put them all in a database, and cache them to send them faster

Fix Docker

Docker can't run npm install because of logger that are in other folder

Add request counter

Add a command request counter to show how many commands each shard execute

Create Top Statistics

Create top users for best users in statistics (a.k.a. all /status commands)

  • Blackjack
  • Coinflip
  • Hunt
  • JogoDoBicho
  • Roulette

CREATE MENHERA MASTER DASHBOARD

Criar uma dashboard para fazer as coisas da Menhera que eu necessitaria entrar na vps, como:

Reiniciar ela, reiniciar o redis, reiniciar a beta, desligar todas aplicações, enviar webhook de status no servidor de suporte, anunciar atualizações com um editor intuitivo, mostrar graficos de desempenho, mostrar real time data, poder fazer requisições http pra api, como editar as activities ou até mesmo enviar novos links para o futuro CDN. Permitir fazer requisições pra Menhera, como dar deploy em comandos globais ou no servidor de suporte (Util para dar deploy de slash quando todos somem) podendo escolher se quer global, ou em um servidor, caso num servidor, pedir o ID pra isso, deixando o de suporte predefinido.

TUDO ISSO PRECISA DE UM SISTEMA DE AUTH MTO PIKOSO

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.