Voxel-Fox-Ltd / MarriageBot

A Discord bot for fake marriages
GNU Affero General Public License v3.0
82 stars 45 forks source link

Bot fails to run #137

Closed oliver408i closed 2 years ago

oliver408i commented 2 years ago

Error I get: 2021-12-24 18:05:42,854 | CRITICAL | vbu.bot: * cogs.block_commands... failed - Extension 'cogs.block_commands' raised an error: AttributeError: module 'voxelbotutils' has no attribute 'bot_has_permissions'

4Kaylum commented 2 years ago

You've installed the wrong version of VoxelBotUtils. Install 0.6 as listed in requirements.txt.

oliver408i commented 2 years ago

How would I do that? I used pip install VoxelBotUtils and pip install -r requirements.txt

4Kaylum commented 2 years ago

pip install voxelbotutils==0.6

oliver408i commented 2 years ago

Thank you. I think I got that working, but now it says ImportError: cannot import name 'PartialMessageable' from 'discord.channel' (/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/channel.py) Thanks again

4Kaylum commented 2 years ago

Because you installed the later version of voxelbotutils it will have installed Novus. Uninstall that and instead install Discord.py.

oliver408i commented 2 years ago

Alright thanks again, I got the bot up, but it needs a database, so I made one and it doesn't want to connect to it asyncpg.exceptions.ConnectionDoesNotExistError: connection was closed in the middle of operation

4Kaylum commented 2 years ago

Sounds like an issue with your database rather than with the code.

oliver408i commented 2 years ago

I used an SQL database. Do I need another kind?

4Kaylum commented 2 years ago

It connects to a PostgreSQL database.