nwithan8 / Arca

Arca, a Discord bot for BigBox. Cogs for discord.py bots
GNU General Public License v3.0
21 stars 5 forks source link

It seems like a wonderful bot. #26

Closed amokster88 closed 1 year ago

amokster88 commented 1 year ago

It seems like a wonderful bot, but unfortunately not able to use it because last update was 3 years ago which is too much. Discord has changed it's bot requirements since then, and when running the bot I am getting the following error.

`Traceback (most recent call last):
  File "/home/server/python_scripts/Arca/./bot.py", line 9, in <module>
    bot = commands.Bot(command_prefix=settings.PREFIX)
TypeError: BotBase.__init__() missing 1 required keyword-only argument: 'intents'`

any quick fix suggestions that I can do in the code, for it to make it work for now?

amokster88 commented 1 year ago

@nwithan8 Hmm, I am able to run the bot after some changes but when typing *help I am getting nothing like your youtube video P.S- I have uncommented all the cogs... but I am only getting

No Category:
  help Shows this message

Type *help command for more info on a command.
You can also type *help category for more info on a category.

when using command like *plex rec movie I am getting this in the logs

discord.ext.commands.errors.CommandNotFound: Command "plex" is not found

I am now really desperate and excited to get this bot going now lol. Please a reply from Nate will be great. Thank you.

amokster88 commented 1 year ago

For reference when I started the bot, this is the whole log from the start till to the time I am getting error when passing commands.

sysadmin@homeserver:~/python_scripts/Arca$ python3 ./bot.py
Loading media_server.plex.plex...
/home/server/python_scripts/Arca/./bot.py:26: RuntimeWarning: coroutine 'BotBase.load_extension' was never awaited
  bot.load_extension(path)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
Loading media_server.plex.plex_manager...
Loading media_server.plex.plex_namanger_nodb...
Loading media_server.jellyfin.jellyfin...
Loading media_server.jellyfin.jellyfin_manager...
Loading media_server.emby.emby_manager...
Loading media_server.olaris.olaris_manager...
Loading media_server.booksonic.booksonic...
Loading media_server.rclone.rclone...
Loading news.news...
Loading MARTA.marta...
Loading discord_cogs.roles...
Loading sports.espn.espn...
Loading sports.yahoofantasy.yahoofantasy...
Loading smart_home.sengled_lights.sengled...
Loading smart_home.google_home.google_home...
Loading smart_home.wink.wink...
Loading general.coronavirus...
Loading general.speedtest...
Loading discord_cogs.__init__...
/home/server/python_scripts/Arca/./bot.py:29: RuntimeWarning: coroutine 'BotBase.load_extension' was never awaited
  bot.load_extension("helper.cog_handler")  # Always enabled, never disabled
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
Arca Copyright (C) 2020  Nathan Harris
This program comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions.
2022-11-06 13:15:11 INFO     discord.client logging in using static token
2022-11-06 13:15:13 INFO     discord.gateway Shard ID None has connected to Gateway (Session ID: b03a55aff1a21e1c076a14ffad9539d7).

Logged in as : RANDOM BOT - "Bot User ID(I have removed for here)"
Version: 2.0.1

Successfully logged in and booted...!

2022-11-06 13:16:00 ERROR    discord.ext.commands.bot Ignoring exception in command None
discord.ext.commands.errors.CommandNotFound: Command "marta" is not found
2022-11-06 13:21:08 ERROR    discord.ext.commands.bot Ignoring exception in command None
discord.ext.commands.errors.CommandNotFound: Command "plex" is not found
nwithan8 commented 1 year ago

This bot is deprecated. Concepts of it are being split in modules for RedBot: https://github.com/nwithan8/nwithan8-cogs