-
Notifications
You must be signed in to change notification settings - Fork 0
Coding Usage
[redacted] edited this page May 3, 2024
·
7 revisions
To begin using the bot hosting wrapper, follow these steps:
- 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);
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)
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")
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()