/bot-hosting-wrapper

a small api wrapper for bot-hosting.net

Primary LanguagePythonMIT LicenseMIT

Bot-Hosting.net API Wrapper | Information

This README will probably only work on github, not pypi, idk why

Important: Your account token expires every 2 weeks! If something isnt working, make sure you use an up-to-date Auth ID :)

A simple API Wrapper for certain information in python for bot-hosting.net

This is made by @suspectedesp, an ex-staff member of bot-hosting.net

What a blessing that pdactyl exists

Table of Contents

Installation

Dependencies (+ used version) :

  • requests==2.31.0
  • colorama==0.4.6
  • datetime==5.4

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!

For an usage of the commands etc. please go to this page

Changelog

Latest Changelog:

  • Added an api wrapper for the control panel
  • Fixed Stupid Bugs
  • Tested & rewritten for optimization & automation
  • Updated the latest README & Usage Wiki & EXAMPLES

License

MIT License

Copyright (c) 2024 [redacted]

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.

Credits

Many thanks to:

  • @mathiasDPX for giving me some ideas and remaking the code
  • @pondwader for letting me upload this
  • @iamkubi api wrapper for pterodactyl panel
  • @Aidan-The-Dev for the useful PR

Many thanks guys! I appreciate it <3