A simple API Wrapper for bot-hosting.net
Project description
Bot-Hosting.net API Wrapper
Important: Your account token expires every 2 weeks! If something isnt working, make sure you use an up-to-date token :)
A simple API Wrapper for certain information in python for bot-hosting.net Information: This is made by @vortexsys on discord, staff member but not developer of bot-hosting.net
Table of Contents
Installation
Dependencies :
- requests
- colorama
- datetime
Usage
How to get the Authorization key
Please 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);
Now you got your Auth ID and can use all the scripts, congrats!
Servers Information
Show all Servers and some Information about them:
from bot_hosting_wrapper import show_servers
auth_key = "your_authorization_key"
show_servers(auth_key)
Specific Server Information
View general information about a Server:
from bot_hosting_wrapper import get_server_info
auth_key = "your_authorization_key"
get_server_info(auth_key)
Change your server's Coding Language:
from bot_hosting_wrapper import change_language
auth_key = "your_authorization_key"
change_language(auth_key)
//Optionally like this (already including the new coding language)
//change_language(auth_id, language="example") //options: java, python, nodejs, lua, deno, nodemon
Account Information
Getting genuine Account Information:
from bot_hosting_wrapper import about_account
auth_key = "your_authorization_key"
about_account(auth_key)
Checking if AUTH ID is valid:
from bot_hosting_wrapper import id_check
auth_key = "your-authorization_key"
id_check(auth_key)
Getting your current coins amount:
from bot_hosting_wrapper import coins_amount
auth_key = "your_authorization_key"
coins_amount(auth_key)
Changelog
- Updated Usage (added id_check, optimised about_account, etc.)
- Tested for optimisation
- Updated/fixed the README file
License
MIT License
Copyright (c) 2024 Vortex
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Contributing
- Follow these simple steps for contributing via Github
- Fork the repository.
- Create a new branch: git checkout -b feature/my-feature.
- Commit your changes: git commit -am 'Add my feature'.
- Push to the branch: git push origin feature/my-feature.
- Submit a pull request.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file bot_hosting_wrapper-1.0.4.tar.gz
.
File metadata
- Download URL: bot_hosting_wrapper-1.0.4.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c2b7c335b1a162392e25c09147e3872313a43a2c4f907694ecfd1dfbdd97e3f |
|
MD5 | 62d95a71c803a964ef7a58cc9d91c628 |
|
BLAKE2b-256 | 5b9ad4263407ed44642202e99e9394e0071f5ae91180204baf946ee9de9279d1 |
File details
Details for the file bot_hosting_wrapper-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: bot_hosting_wrapper-1.0.4-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40d3fa28eb8caee43495fd00c0d21ad32d601c084cd56aff23206269f83ca569 |
|
MD5 | 9e236f60f3e8fba45560688640fc0af2 |
|
BLAKE2b-256 | 4991060331ad98b8519073c25929b62f6696cf2fb44445ff33444722a5745eb7 |