Skip to content

Latest commit

 

History

History
63 lines (48 loc) · 1.94 KB

README.md

File metadata and controls

63 lines (48 loc) · 1.94 KB

Discord Twitter MIT License

Clashgarage

A CLI-like Application around the SuperCell APis.

clashgarage

Functions

Raw

  • get_player_from_user Get the tag of the user
  • add_account_to_database Add an account to the database
  • check_if_player_is_valid Check if the player is valid
  • check_if_tag_exists Check if the tag exists in the database
  • refresh_all_accounts Update all accounts in the database
  • show_data_from_tag Return a map with all the data
  • delete_account_from_database Delete an account from the database
  • get_all_accounts Get all accounts from the database
  • get_account_by_tag Get an account by tag
  • check_if_player_is_real_account Check if an account exists
  • purge_data Delete all data from the database

Formatted

  • Queries.add_account_to_database()
  • Queries.show_data_from_tag()
  • Queries.delete_account_from_database()
  • Queries.refresh_all_accounts()
  • Queries.check_if_player_is_real_account()
  • Queries.get_all_accounts()

Self-hosting

Requirements

Installation

$ git clone https://github.com/vKxni/clashgarage.git
$ cd clashgarage

$ mix deps.get
  • Fill out the database credentials in config/config.exs

  • Enter the APi key in lib/utils/api.ex

$ mix ecto.create
$ mix ecto.migrate

$ iex -S mix

$ Clashgarage.main()