Giter Club home page Giter Club logo

dalle-discord's Introduction

👋 𝙷𝚎𝚕𝚕𝚘! 𝙸'𝚖 Rawa

[email protected]

👤 About

Rawand Ahmed Shaswar

I have been programming since I was 14, and I have been working on a tens of projects since then.

I'm genuinely passionate about writing great code, with maintainability in-mind. I care a lot about privacy and security, and I'm always looking to improve my skills.

When I'm not at the keyboard, I like movies, astronomy and hanging out with friends.


🛠️ Tech Stack

Category Technologies
Mobile Swift
Cloud Heroku Netlify Google Cloud AWS
DevOps Docker
Testing Selenium
Misc Linux Bash Markdown
Editors PyCharm Vim VS Code

Contribution Stats

dalle-discord's People

Contributors

comicsansgreenki avatar cosmin96 avatar jacobcb avatar rawandahmad698 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

dalle-discord's Issues

Public bot

Why dont you guys make this a public bot and host it for everyone. I can see alot of servers using it

Crash when deploying via Heroku

Trying to get this bot running but I'm running into issues. I cloned the repository and edited data.yaml to include my bot's token (the rest of the file is unchanged), but whenever I deploy it I get a Syntax Error. Here is the log from Heroku.

2022-09-09T12:43:49.000000+00:00 app[api]: Build started by user [hidden]

2022-09-09T12:44:06.350070+00:00 heroku[worker.1]: State changed from crashed to starting

2022-09-09T12:44:07.841598+00:00 heroku[worker.1]: Starting process with command `python3 bot.py`

2022-09-09T12:44:08.506307+00:00 heroku[worker.1]: State changed from starting to up

2022-09-09T12:44:09.225595+00:00 heroku[worker.1]: Process exited with status 1

2022-09-09T12:44:09.298751+00:00 heroku[worker.1]: State changed from up to crashed

2022-09-09T12:44:09.064966+00:00 app[worker.1]:   File "/app/bot.py", line 61

2022-09-09T12:44:09.065001+00:00 app[worker.1]:     commands.Bot.__init__(self, command_prefix=command_prefix, self_bot=self_bot intents=bot_intents)

2022-09-09T12:44:09.065359+00:00 app[worker.1]:                                                                         ^^^^^^^^^^^^^^^^

2022-09-09T12:44:09.065380+00:00 app[worker.1]: SyntaxError: invalid syntax. Perhaps you forgot a comma?

2022-09-09T12:44:05.457554+00:00 app[api]: Release v9 created by user [hidden]

2022-09-09T12:44:05.457554+00:00 app[api]: Deploy 3eaa9e51 by user [hidden]

2022-09-09T12:44:10.000000+00:00 app[api]: Build succeeded

Would appreciate any assistance resolving this. Thank you.

Payload Too Large

I am currently running the bot through play with docker and plan to use it on Google Cloud Platform. Sometimes the bot will respond

Internal Error, please try again later.
HTTPException('413 Payload Too Large (error code: 40005): Request entity too large').

Also are there any recommended settings for the instance in terms of core count and memory?

Is there an exception for hitting the rate limit?

Hi! I'm running this bot on my server and it has been throwing

ClientConnectorError(ConnectionKey(host='bf.dallemini.ai', port=443, is_ssl=True, ssl=None, proxy=None, proxy_auth=None, proxy_headers_hash=None), ConnectionRefusedError(111, "Connect call failed ('10.20.201.9', 443)"))

Is that an exception for hitting the rate limit or a more generic one? For whatever it's worth my internet connection seems stable and I can connect to hugging faces just fine in browser.

I am so confused as to how to run this.

I tried windows cmd and pip and python 3.10.5 : didn't work.
I tried linux ubuntu latest version with the correct python and pip and packages :
image

It just does not work.
Can someone explain how am i supposed to use this?

CERTIFICATE_VERIFY_FAILED

Running into the following:

[-] MyDiscord#1234 called !dalle robocop returns to monke
Ignoring exception in command dalle:
Traceback (most recent call last):
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\aiohttp\connector.py", line 969, in _wrap_create_connection
    return await self._loop.create_connection(*args, **kwargs)  # type: ignore  # noqa
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1089, in create_connection
    transport, protocol = await self._create_connection_transport(
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1119, in _create_connection_transport
    await waiter
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\asyncio\sslproto.py", line 534, in data_received
    ssldata, appdata = self._sslpipe.feed_ssldata(data)
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\asyncio\sslproto.py", line 188, in feed_ssldata
    self._sslobj.do_handshake()
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 975, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:997)```

Good Bot!

generated_DallE_1
generated_DallE_2
generated_DallE_3
generated_DallE_4
generated_DallE_5
generated_DallE_6
generated_DallE_7
generated_DallE_8
generated_DallE_9
This is good bot, the generate pictures of this DallE are so beautiful =))

discord.py borked an asyncio function

in #10, @Gabocota said:

dalle-discord-master-dalle-discord-1 | Traceback (most recent call last):
dalle-discord-master-dalle-discord-1 | File "/app/bot.py", line 214, in
dalle-discord-master-dalle-discord-1 | bot.loop.create_task(background_task())
dalle-discord-master-dalle-discord-1 | File "/usr/local/lib/python3.10/site-packages/discord/client.py", line 108, in getattr
dalle-discord-master-dalle-discord-1 | raise AttributeError(msg)
dalle-discord-master-dalle-discord-1 | AttributeError: loop attribute cannot be accessed in non-async contexts. Consider using either an asynchronous main function and passing it to asyncio.run or using asynchronous initialisation hooks such as Client.setup_hook

Based on slight research, I think the master version of discord.py may have broken some things in asyncio.

How To Run The File And Setup In Your Server ??

how to use and install this app ? i didnt understand where to run the docker-compose command
can someone guide me step by step of how to install this bot into my server
this is the error nessage that i got if i run ther commands through cmd
image

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.