Coder Social home page Coder Social logo

hoseanrc / shad-api Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 0.0 894 KB

An unofficial Python Library for deploying bots and user-bots (client-bots) on Shad

License: GNU Lesser General Public License v3.0

Python 100.00%
chat python shad asyncio bot socket-io shad-bot shad-client shadapi

shad-api's Introduction

INFO

a small dev trying to be a better one works on any programming language in need

what I have worked on:

  • Web front end and back end
  • Arduino on C/C++
  • ESP8266 on LUA + C/C++
  • ESP32 on C/C++
  • CMD (Batch) code
  • SH (Bash) code
  • Python and Javascript
  • C and Java
  • Ruby and Basic
  • brainfuck
  • Linux (<3)
  • NodeJS (Discord.js and Mineflayer bots)
  • LOGO PLC
  • DELTA PLC (using instruction list)
  • DELTA HMI (using LUA)
  • React.js

Currently working on react projects

shad-api's People

Contributors

hoseanrc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

shad-api's Issues

NotRegistered Error

Hello
I am using this package for the first time, when I insert my auth token and run my project, I get "shadapi.exceptions.NotRegistered:" error.

`from shadapi import Client

app = Client("******************************")

async def my_bot(bot):
await bot.sendText('object_guid', 'Hello from Shad Api!')

app.run(my_bot)`

Error:

(venv) C:\Users\MHany\Desktop\AdabBot>c:/Users/MHany/Desktop/AdabBot/venv/Scripts/python.exe c:/Users/MHany/Desktop/AdabBot/test.py Traceback (most recent call last): File "c:\Users\MHany\Desktop\AdabBot\test.py", line 8, in <module> app.run(my_bot) File "c:\Users\MHany\Desktop\AdabBot\venv\Lib\site-packages\shadapi\accounts\_client.py", line 439, in run RUN(runner()) File "C:\Program Files\Python311\Lib\asyncio\runners.py", line 190, in run return runner.run(main) ^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\asyncio\runners.py", line 118, in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\asyncio\base_events.py", line 653, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "c:\Users\MHany\Desktop\AdabBot\venv\Lib\site-packages\shadapi\accounts\_client.py", line 438, in runner await func(methods) File "c:\Users\MHany\Desktop\AdabBot\test.py", line 6, in my_bot await bot.sendText('object_guid', '``Hello`` __from__ **Shad Api**!') File "c:\Users\MHany\Desktop\AdabBot\venv\Lib\site-packages\shadapi\accounts\methods\__init__.py", line 140, in sendText data = await self.make.request( ^^^^^^^^^^^^^^^^^^^^^^^^ File "c:\Users\MHany\Desktop\AdabBot\venv\Lib\site-packages\shadapi\accounts\methods\__init__.py", line 55, in request raise NotRegistered('Your AUTH is incorrect') shadapi.exceptions.NotRegistered: Your AUTH is incorrect

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.