rawandahmad698 / Dalle-Discord

DALL·E mini as a Discord bot? Say no more!
45 stars 44 forks source link

I am so confused as to how to run this. #10

Closed Gabocota closed 2 years ago

Gabocota commented 2 years ago

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?

comicsansgreenki commented 2 years ago

It seems to be an issue in the repo's code iteself. I received the same TypeError trying to run it on an Ubuntu 22.04 server.

rawandahmad698 commented 2 years ago

Hey, discord has enforced the messaging intent, thus this error, It’s a one line code fix and i’ll update it soon

comicsansgreenki commented 2 years ago

oop, my bad. same-timestamp comment >v<

comicsansgreenki commented 2 years ago

@Gabocota Bug patched. Try cloning and running the bot now.

Gabocota commented 2 years ago

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

comicsansgreenki commented 2 years ago

hmm. I suppose it's time for a new issue.