####Simple discord bot for wombo art ai using discord.py 2.0 alpha
python -m pip install -r requirements.txt
(Version used in this repository: discord.py 2.0.0a*
)
discord bot that generates AI art from https://app.wombo.art
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})
Anything a user setting should setup such as commands/redirection for google?
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.