A CLI-like Application around the SuperCell APis.
Raw
get_player_from_user
Get the tag of the useradd_account_to_database
Add an account to the databasecheck_if_player_is_valid
Check if the player is validcheck_if_tag_exists
Check if the tag exists in the databaserefresh_all_accounts
Update all accounts in the databaseshow_data_from_tag
Return a map with all the datadelete_account_from_database
Delete an account from the databaseget_all_accounts
Get all accounts from the databaseget_account_by_tag
Get an account by tagcheck_if_player_is_real_account
Check if an account existspurge_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()
Requirements
- Elixir 1.14
- OTP 24
- PostgreSQL 14.5+
- APi Key
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()