Git Product home page Git Product logo

wombo_bot's Introduction

Wombo Art Discord Bot

wombo_stable

####Simple discord bot for wombo art ai using discord.py 2.0 alpha

Installing

python -m pip install -r requirements.txt

     

alt text

(Version used in this repository: discord.py 2.0.0a*)

wombo_bot's People

Contributors

axsddlr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

wombo_bot's Issues

I'm doing a program robustness test and found a problem

Traceback (most recent call last):
File "D:\513\py_wombo\main.py", line 281, in
主程序()
File "D:\513\py_wombo\main.py", line 237, in 主程序
返回内容 = requests.get(图片下载地址)
File "D:\513\py_wombo\venv\lib\site-packages\requests\api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "D:\513\py_wombo\venv\lib\site-packages\requests\api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "D:\513\py_wombo\venv\lib\site-packages\requests\sessions.py", line 515, in request
prep = self.prepare_request(req)
File "D:\513\py_wombo\venv\lib\site-packages\requests\sessions.py", line 443, in prepare_request
p.prepare(
File "D:\513\py_wombo\venv\lib\site-packages\requests\models.py", line 318, in prepare
self.prepare_url(url, params)
File "D:\513\py_wombo\venv\lib\site-packages\requests\models.py", line 392, in prepare_url
raise MissingSchema(error)
requests.exceptions.MissingSchema: Invalid URL 'None': No scheme supplied. Perhaps you meant http://None?

#requests.exceptions.MissingSchema: Invalid URL 'None': No scheme supplied. Perhaps you meant http://None?
#Literally a blank url was visited
#I guess the problem is in these lines of code

with requests.Session() as session:
    r = session.post(
        "https://identitytoolkit.googleapis.com/v1/accounts:signUp?key=AIzaSyDCvp5MTJLUdtBYEKYWXJrlLzu1zuKM6Xw",
        json={"returnSecureToken": True})

commands

Anything a user setting should setup such as commands/redirection for google?

file a bug

in generator.py

    r = session.get("https://app.wombo.art/api/tasks/" + task_id, headers=auth_headers)
    data = r.json()

    #data["state"]   Sometimes kererror occurs, I checked it, and the value of "state" does not exist
    state = data["state"]

    if state == "completed":
        break
    if state == "failed":
        print(data)
        raise RuntimeError(data)

I changed it to this

    data = r.json()
    if "state" in data:
        state = data["state"]

        if state == "completed":
            break
        if state == "failed":
            print(data)

            raise RuntimeError(data)

    if ("state" in data) == False:
        return

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.