Skip to content

Coding Usage

Vortex edited this page Jan 29, 2024 · 19 revisions

First things first, follow the instructions to get your auth id:

  • Login to your account and go to this page
  • Open your browser's console (usually by pressing F12 or pressing Control + Shift + I)
  • Navigate to the 'Console' tab
  • Paste in the following code:
var token = localStorage.getItem('token');
console.log('Your Auth ID:', token);

Generally define the next line in your code:

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

Servers Information

Show all Servers and some Information about them:

serv.show()

Specific Server Information

View general information about a Server:

serv.get_info()

Change your server's Coding Language:

serv.change_language()
#Optionally like this (already including the new coding language)
#change_language(auth_id, language="example") //options: java, python, nodejs, lua, deno, nodemon

Delete a certain server:

serv.delete()
#Optionally like this (already including server id)
#serv.delete("12345")

Account Information

Getting genuine Account Information:

acc.about()

Checking if AUTH ID is valid:

acc.id_check()

Getting your current coins amount:

acc.coins_amount()

Getting a new SFTP Password:

acc.sftp_pass()

Clone this wiki locally