Skip to content

Coding Usage

[redacted] edited this page May 3, 2024 · 7 revisions

Getting Started

To begin using the bot hosting wrapper, follow these steps:

1. Retrieve Your Authorization Key:

  • Log in to your account on bot-hosting.net.
  • Open your browser's console (usually by pressing F12 or Control + Shift + I).
  • Navigate to the 'Console' tab.
  • Paste the following code:
    var token = localStorage.getItem('token');
    console.log('Your Auth ID:', token);

2. Initialize the Wrapper:

Import the necessary modules and define your authorization key:

from bot_hosting_wrapper import Account, Server
auth_id = "your_authorization_key"
acc = Account(auth_id)
serv = Server(auth_id)

3. ** How to use **

Server Specific Usage

View Specific Server Information:

serv.get_info(selected_server_id="your_server_id")

Change Server's Coding Language:

serv.change_language(server_id="your_server_id", language="example")
# Options for language: java, python, nodejs, lua, deno, nodemon

Delete a Server:

serv.delete(server_id="your_server_id")

Account Information

Get Account Overview:

acc.about()

Check If AUTH ID is Valid:

acc.id_check()

Get Current Coins Amount:

acc.coins_amount()

Generate a New SFTP Password:

acc.sftp_pass()