A very rookie mistake, my bad...

This commit is contained in:
kita 2024-03-21 17:49:17 +05:00
parent 83b8077fe4
commit 8c7131defa
Signed by: kita
GPG key ID: 1E3B374E5F392590
2 changed files with 1 additions and 549 deletions

1
.gitignore vendored
View file

@ -1,4 +1,5 @@
__pycache__
codeijika.log
.initDone
config.json
venv

View file

@ -1,549 +0,0 @@
[03-19-2024 06:35:39] [WARNING] discord.client: PyNaCl is not installed, voice will NOT be supported
[03-19-2024 06:35:39] [INFO ] discord.client: logging in using static token
[03-19-2024 06:39:02] [WARNING] discord.client: PyNaCl is not installed, voice will NOT be supported
[03-19-2024 06:39:02] [INFO ] discord.client: logging in using static token
[03-19-2024 06:39:03] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/version "HTTP/1.1 200 OK"
[03-19-2024 06:39:04] [INFO ] discord.gateway: Shard ID None has connected to Gateway (Session ID: 01006cc3082e419cc4a95e6926c32151).
[03-19-2024 06:47:09] [WARNING] discord.client: PyNaCl is not installed, voice will NOT be supported
[03-19-2024 06:47:09] [INFO ] discord.client: logging in using static token
[03-19-2024 06:47:10] [INFO ] nijika: Checking connectivity to Forgejo API
[03-19-2024 06:47:10] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/version "HTTP/1.1 200 OK"
[03-19-2024 06:47:10] [INFO ] nijika: Forgejo version: 1.21.7+0-102-gb99cd96
[03-19-2024 06:47:11] [INFO ] discord.gateway: Shard ID None has connected to Gateway (Session ID: 822c96c15805f3f4107a436d4be19b7c).
[03-19-2024 06:47:13] [INFO ] nijika: Bot Codeijika#5127 (1218900062219010108) is up and running!
[03-19-2024 07:05:50] [WARNING] discord.client: PyNaCl is not installed, voice will NOT be supported
[03-19-2024 07:05:50] [INFO ] discord.client: logging in using static token
[03-19-2024 07:05:51] [INFO ] nijika: Checking connectivity to Forgejo API
[03-19-2024 07:05:52] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/version "HTTP/1.1 200 OK"
[03-19-2024 07:05:52] [INFO ] nijika: Forgejo version: 1.21.7+0-102-gb99cd96
[03-19-2024 07:05:53] [INFO ] discord.gateway: Shard ID None has connected to Gateway (Session ID: 69085bce10099f1b6f6647dd5b7455ce).
[03-19-2024 07:05:55] [INFO ] nijika: Bot Codeijika#5127 (1218900062219010108) is up and running!
[03-19-2024 07:05:55] [INFO ] nijika: Invite the bot to your server: https://discord.com/oauth2/authorize?client_id=1218900062219010108&scope=bot+applications.commands&permissions=51200
[03-19-2024 07:41:44] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session 69085bce10099f1b6f6647dd5b7455ce.
[03-19-2024 09:11:54] [WARNING] discord.client: PyNaCl is not installed, voice will NOT be supported
[03-19-2024 09:11:54] [WARNING] discord.ext.commands.bot: Privileged message content intent is missing, commands may not work as expected.
[03-19-2024 09:11:54] [INFO ] discord.client: logging in using static token
[03-19-2024 09:11:55] [INFO ] nijika: Checking connectivity to Forgejo API
[03-19-2024 09:11:55] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/version "HTTP/1.1 200 OK"
[03-19-2024 09:11:55] [INFO ] nijika: Forgejo version: 1.21.7+0-102-gb99cd96
[03-19-2024 09:11:56] [INFO ] discord.gateway: Shard ID None has connected to Gateway (Session ID: e94130729f48c9560d21d74bb541cd83).
[03-19-2024 09:11:58] [INFO ] nijika: Bot Codeijika#5127 (1218900062219010108) is up and running!
[03-19-2024 09:11:58] [INFO ] nijika: Invite the bot to your server: https://discord.com/oauth2/authorize?client_id=1218900062219010108&scope=bot+applications.commands&permissions=51200
[03-19-2024 10:38:50] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session e94130729f48c9560d21d74bb541cd83.
[03-19-2024 13:22:10] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session e94130729f48c9560d21d74bb541cd83.
[03-19-2024 15:17:52] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session e94130729f48c9560d21d74bb541cd83.
[03-19-2024 16:36:00] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session e94130729f48c9560d21d74bb541cd83.
[03-19-2024 18:53:58] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session e94130729f48c9560d21d74bb541cd83.
[03-19-2024 21:07:22] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session e94130729f48c9560d21d74bb541cd83.
[03-19-2024 23:38:42] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session e94130729f48c9560d21d74bb541cd83.
[03-20-2024 02:55:48] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session e94130729f48c9560d21d74bb541cd83.
[03-20-2024 02:56:23] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session e94130729f48c9560d21d74bb541cd83.
[03-20-2024 03:37:11] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session e94130729f48c9560d21d74bb541cd83.
[03-20-2024 03:52:33] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session e94130729f48c9560d21d74bb541cd83.
[03-20-2024 04:59:22] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session e94130729f48c9560d21d74bb541cd83.
[03-20-2024 06:23:00] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session e94130729f48c9560d21d74bb541cd83.
[03-20-2024 08:10:45] [WARNING] discord.client: PyNaCl is not installed, voice will NOT be supported
[03-20-2024 08:10:45] [WARNING] discord.ext.commands.bot: Privileged message content intent is missing, commands may not work as expected.
[03-20-2024 08:10:45] [INFO ] discord.client: logging in using static token
[03-20-2024 08:10:46] [INFO ] nijika: Checking connectivity to Forgejo API
[03-20-2024 08:10:47] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/version "HTTP/1.1 200 OK"
[03-20-2024 08:10:47] [INFO ] nijika: Forgejo version: 1.21.7+0-102-gb99cd96
[03-20-2024 08:10:47] [INFO ] discord.gateway: Shard ID None has connected to Gateway (Session ID: 3a1cd5cd1ffa4468d8d7ccba8069db0a).
[03-20-2024 08:10:50] [INFO ] nijika: Bot Codeijika#5127 (1218900062219010108) is up and running!
[03-20-2024 08:10:50] [INFO ] nijika: Invite the bot to your server: https://discord.com/oauth2/authorize?client_id=1218900062219010108&scope=bot+applications.commands&permissions=51200
[03-20-2024 08:11:13] [WARNING] discord.client: PyNaCl is not installed, voice will NOT be supported
[03-20-2024 08:11:13] [WARNING] discord.ext.commands.bot: Privileged message content intent is missing, commands may not work as expected.
[03-20-2024 08:11:13] [INFO ] discord.client: logging in using static token
[03-20-2024 08:11:13] [INFO ] nijika: Checking connectivity to Forgejo API
[03-20-2024 08:11:14] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/version "HTTP/1.1 200 OK"
[03-20-2024 08:11:14] [INFO ] nijika: Forgejo version: 1.21.7+0-102-gb99cd96
[03-20-2024 08:11:15] [INFO ] discord.gateway: Shard ID None has connected to Gateway (Session ID: 352ee76934958984cc1379ee9364daa3).
[03-20-2024 08:11:17] [ERROR ] nijika: Cannot load cog: cogs.core
Traceback (most recent call last):
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/ext/commands/bot.py", line 935, in _load_from_module_spec
spec.loader.exec_module(lib) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/home/searinminecraft/Bots/Codeijika/cogs/core.py", line 12, in <module>
class Core(commands.Cog):
File "/home/searinminecraft/Bots/Codeijika/cogs/core.py", line 14, in Core
def __init__(self, bot: Nijika):
^^^^^^
NameError: name 'Nijika' is not defined
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/searinminecraft/Bots/Codeijika/bot.py", line 52, in on_ready
await self.load_extension(cog)
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/ext/commands/bot.py", line 1013, in load_extension
await self._load_from_module_spec(spec, name)
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/ext/commands/bot.py", line 938, in _load_from_module_spec
raise errors.ExtensionFailed(key, e) from e
discord.ext.commands.errors.ExtensionFailed: Extension 'cogs.core' raised an error: NameError: name 'Nijika' is not defined
[03-20-2024 08:11:17] [INFO ] nijika: Bot Codeijika#5127 (1218900062219010108) is up and running!
[03-20-2024 08:11:17] [INFO ] nijika: Invite the bot to your server: https://discord.com/oauth2/authorize?client_id=1218900062219010108&scope=bot+applications.commands&permissions=51200
[03-20-2024 08:12:10] [WARNING] discord.client: PyNaCl is not installed, voice will NOT be supported
[03-20-2024 08:12:10] [WARNING] discord.ext.commands.bot: Privileged message content intent is missing, commands may not work as expected.
[03-20-2024 08:12:10] [INFO ] discord.client: logging in using static token
[03-20-2024 08:12:10] [INFO ] nijika: Checking connectivity to Forgejo API
[03-20-2024 08:12:11] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/version "HTTP/1.1 200 OK"
[03-20-2024 08:12:11] [INFO ] nijika: Forgejo version: 1.21.7+0-102-gb99cd96
[03-20-2024 08:12:12] [INFO ] discord.gateway: Shard ID None has connected to Gateway (Session ID: 5be702a2917a81fa26c0b57434e11f4e).
[03-20-2024 08:12:14] [ERROR ] nijika: Cannot load cog: cogs.core
Traceback (most recent call last):
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/ext/commands/bot.py", line 935, in _load_from_module_spec
spec.loader.exec_module(lib) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/home/searinminecraft/Bots/Codeijika/cogs/core.py", line 14, in <module>
class Core(commands.Cog):
File "/home/searinminecraft/Bots/Codeijika/cogs/core.py", line 32, in Core
cogGroup = app_commands.Group(name="cog")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/app_commands/commands.py", line 1549, in __init__
raise TypeError('groups must have a description')
TypeError: groups must have a description
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/searinminecraft/Bots/Codeijika/bot.py", line 52, in on_ready
await self.load_extension(cog)
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/ext/commands/bot.py", line 1013, in load_extension
await self._load_from_module_spec(spec, name)
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/ext/commands/bot.py", line 938, in _load_from_module_spec
raise errors.ExtensionFailed(key, e) from e
discord.ext.commands.errors.ExtensionFailed: Extension 'cogs.core' raised an error: TypeError: groups must have a description
[03-20-2024 08:12:14] [INFO ] nijika: Bot Codeijika#5127 (1218900062219010108) is up and running!
[03-20-2024 08:12:14] [INFO ] nijika: Invite the bot to your server: https://discord.com/oauth2/authorize?client_id=1218900062219010108&scope=bot+applications.commands&permissions=51200
[03-20-2024 08:13:06] [WARNING] discord.client: PyNaCl is not installed, voice will NOT be supported
[03-20-2024 08:13:06] [WARNING] discord.ext.commands.bot: Privileged message content intent is missing, commands may not work as expected.
[03-20-2024 08:13:06] [INFO ] discord.client: logging in using static token
[03-20-2024 08:13:06] [INFO ] nijika: Checking connectivity to Forgejo API
[03-20-2024 08:13:07] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/version "HTTP/1.1 200 OK"
[03-20-2024 08:13:07] [INFO ] nijika: Forgejo version: 1.21.7+0-102-gb99cd96
[03-20-2024 08:13:08] [INFO ] discord.gateway: Shard ID None has connected to Gateway (Session ID: 784e4d3c58db48c7e4d3dd52416d0797).
[03-20-2024 08:13:10] [ERROR ] nijika: Cannot load cog: cogs.core
Traceback (most recent call last):
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/ext/commands/bot.py", line 941, in _load_from_module_spec
setup = getattr(lib, 'setup')
^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'cogs.core' has no attribute 'setup'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/searinminecraft/Bots/Codeijika/bot.py", line 52, in on_ready
await self.load_extension(cog)
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/ext/commands/bot.py", line 1013, in load_extension
await self._load_from_module_spec(spec, name)
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/ext/commands/bot.py", line 944, in _load_from_module_spec
raise errors.NoEntryPointError(key)
discord.ext.commands.errors.NoEntryPointError: Extension 'cogs.core' has no 'setup' function.
[03-20-2024 08:13:10] [INFO ] nijika: Bot Codeijika#5127 (1218900062219010108) is up and running!
[03-20-2024 08:13:10] [INFO ] nijika: Invite the bot to your server: https://discord.com/oauth2/authorize?client_id=1218900062219010108&scope=bot+applications.commands&permissions=51200
[03-20-2024 08:14:22] [WARNING] discord.client: PyNaCl is not installed, voice will NOT be supported
[03-20-2024 08:14:22] [WARNING] discord.ext.commands.bot: Privileged message content intent is missing, commands may not work as expected.
[03-20-2024 08:14:22] [INFO ] discord.client: logging in using static token
[03-20-2024 08:14:23] [INFO ] nijika: Checking connectivity to Forgejo API
[03-20-2024 08:14:24] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/version "HTTP/1.1 200 OK"
[03-20-2024 08:14:24] [INFO ] nijika: Forgejo version: 1.21.7+0-102-gb99cd96
[03-20-2024 08:14:24] [INFO ] discord.gateway: Shard ID None has connected to Gateway (Session ID: e64f70b3501aedf9b414edeb4372931e).
[03-20-2024 08:14:26] [ERROR ] nijika: Cannot load cog: cogs.core
Traceback (most recent call last):
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/ext/commands/bot.py", line 947, in _load_from_module_spec
await setup(self)
File "/home/searinminecraft/Bots/Codeijika/cogs/core.py", line 103, in setup
await bot.add_cog(Core(bot))
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/ext/commands/bot.py", line 783, in add_cog
cog = await cog._inject(self, override=override, guild=guild, guilds=guilds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/ext/commands/cog.py", line 684, in _inject
await maybe_coroutine(self.cog_load)
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/utils.py", line 693, in maybe_coroutine
return await value
^^^^^^^^^^^
File "/home/searinminecraft/Bots/Codeijika/cogs/core.py", line 29, in cog_load
if len(self.bot.tree) == 0:
^^^^^^^^^^^^^^^^^^
TypeError: object of type 'CommandTree' has no len()
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/searinminecraft/Bots/Codeijika/bot.py", line 52, in on_ready
await self.load_extension(cog)
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/ext/commands/bot.py", line 1013, in load_extension
await self._load_from_module_spec(spec, name)
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/ext/commands/bot.py", line 952, in _load_from_module_spec
raise errors.ExtensionFailed(key, e) from e
discord.ext.commands.errors.ExtensionFailed: Extension 'cogs.core' raised an error: TypeError: object of type 'CommandTree' has no len()
[03-20-2024 08:14:26] [INFO ] nijika: Bot Codeijika#5127 (1218900062219010108) is up and running!
[03-20-2024 08:14:26] [INFO ] nijika: Invite the bot to your server: https://discord.com/oauth2/authorize?client_id=1218900062219010108&scope=bot+applications.commands&permissions=51200
[03-20-2024 08:17:30] [WARNING] discord.client: PyNaCl is not installed, voice will NOT be supported
[03-20-2024 08:17:30] [WARNING] discord.ext.commands.bot: Privileged message content intent is missing, commands may not work as expected.
[03-20-2024 08:17:30] [INFO ] discord.client: logging in using static token
[03-20-2024 08:17:30] [INFO ] nijika: Checking connectivity to Forgejo API
[03-20-2024 08:17:31] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/version "HTTP/1.1 200 OK"
[03-20-2024 08:17:31] [INFO ] nijika: Forgejo version: 1.21.7+0-102-gb99cd96
[03-20-2024 08:17:32] [INFO ] discord.gateway: Shard ID None has connected to Gateway (Session ID: daa19c45865f87d261feaa02f8d297ed).
[03-20-2024 08:17:34] [ERROR ] nijika: Cannot load cog: cogs.core
Traceback (most recent call last):
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/ext/commands/bot.py", line 947, in _load_from_module_spec
await setup(self)
File "/home/searinminecraft/Bots/Codeijika/cogs/core.py", line 103, in setup
await bot.add_cog(Core(bot))
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/ext/commands/bot.py", line 783, in add_cog
cog = await cog._inject(self, override=override, guild=guild, guilds=guilds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/ext/commands/cog.py", line 684, in _inject
await maybe_coroutine(self.cog_load)
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/utils.py", line 693, in maybe_coroutine
return await value
^^^^^^^^^^^
File "/home/searinminecraft/Bots/Codeijika/cogs/core.py", line 29, in cog_load
if len(self.bot.tree.walk_commands()) == 0:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: object of type 'generator' has no len()
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/searinminecraft/Bots/Codeijika/bot.py", line 52, in on_ready
await self.load_extension(cog)
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/ext/commands/bot.py", line 1013, in load_extension
await self._load_from_module_spec(spec, name)
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/ext/commands/bot.py", line 952, in _load_from_module_spec
raise errors.ExtensionFailed(key, e) from e
discord.ext.commands.errors.ExtensionFailed: Extension 'cogs.core' raised an error: TypeError: object of type 'generator' has no len()
[03-20-2024 08:17:34] [INFO ] nijika: Bot Codeijika#5127 (1218900062219010108) is up and running!
[03-20-2024 08:17:34] [INFO ] nijika: Invite the bot to your server: https://discord.com/oauth2/authorize?client_id=1218900062219010108&scope=bot+applications.commands&permissions=51200
[03-20-2024 08:18:34] [WARNING] discord.client: PyNaCl is not installed, voice will NOT be supported
[03-20-2024 08:18:34] [WARNING] discord.ext.commands.bot: Privileged message content intent is missing, commands may not work as expected.
[03-20-2024 08:18:34] [INFO ] discord.client: logging in using static token
[03-20-2024 08:18:35] [INFO ] nijika: Checking connectivity to Forgejo API
[03-20-2024 08:18:36] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/version "HTTP/1.1 200 OK"
[03-20-2024 08:18:36] [INFO ] nijika: Forgejo version: 1.21.7+0-102-gb99cd96
[03-20-2024 08:18:37] [INFO ] discord.gateway: Shard ID None has connected to Gateway (Session ID: c72998d6fd1936fc5d18adb6ad9f57bf).
[03-20-2024 08:18:39] [INFO ] nijika: Bot Codeijika#5127 (1218900062219010108) is up and running!
[03-20-2024 08:18:39] [INFO ] nijika: Invite the bot to your server: https://discord.com/oauth2/authorize?client_id=1218900062219010108&scope=bot+applications.commands&permissions=51200
[03-20-2024 08:20:28] [WARNING] discord.client: PyNaCl is not installed, voice will NOT be supported
[03-20-2024 08:20:28] [WARNING] discord.ext.commands.bot: Privileged message content intent is missing, commands may not work as expected.
[03-20-2024 08:20:28] [INFO ] discord.client: logging in using static token
[03-20-2024 08:20:29] [INFO ] nijika: Checking connectivity to Forgejo API
[03-20-2024 08:20:29] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/version "HTTP/1.1 200 OK"
[03-20-2024 08:20:29] [INFO ] nijika: Forgejo version: 1.21.7+0-102-gb99cd96
[03-20-2024 08:20:30] [INFO ] discord.gateway: Shard ID None has connected to Gateway (Session ID: 2d9518c15a57f229861a4757f125971a).
[03-20-2024 08:20:32] [INFO ] nijika: Bot Codeijika#5127 (1218900062219010108) is up and running!
[03-20-2024 08:20:32] [INFO ] nijika: Invite the bot to your server: https://discord.com/oauth2/authorize?client_id=1218900062219010108&scope=bot+applications.commands&permissions=51200
[03-20-2024 08:29:39] [WARNING] discord.client: PyNaCl is not installed, voice will NOT be supported
[03-20-2024 08:29:39] [WARNING] discord.ext.commands.bot: Privileged message content intent is missing, commands may not work as expected.
[03-20-2024 08:29:39] [INFO ] discord.client: logging in using static token
[03-20-2024 08:29:39] [INFO ] nijika: Checking connectivity to Forgejo API
[03-20-2024 08:29:40] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/version "HTTP/1.1 200 OK"
[03-20-2024 08:29:40] [INFO ] nijika: Forgejo version: 1.21.7+0-102-gb99cd96
[03-20-2024 08:29:41] [INFO ] discord.gateway: Shard ID None has connected to Gateway (Session ID: ee1388a580fc80e81e237b59d7ea2840).
[03-20-2024 08:29:43] [INFO ] nijika: Bot Codeijika#5127 (1218900062219010108) is up and running!
[03-20-2024 08:29:43] [INFO ] nijika: Invite the bot to your server: https://discord.com/oauth2/authorize?client_id=1218900062219010108&scope=bot+applications.commands&permissions=51200
[03-20-2024 08:31:32] [WARNING] discord.client: PyNaCl is not installed, voice will NOT be supported
[03-20-2024 08:31:32] [WARNING] discord.ext.commands.bot: Privileged message content intent is missing, commands may not work as expected.
[03-20-2024 08:31:32] [INFO ] discord.client: logging in using static token
[03-20-2024 08:31:33] [INFO ] nijika: Checking connectivity to Forgejo API
[03-20-2024 08:31:34] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/version "HTTP/1.1 200 OK"
[03-20-2024 08:31:34] [INFO ] nijika: Forgejo version: 1.21.7+0-102-gb99cd96
[03-20-2024 08:31:35] [INFO ] discord.gateway: Shard ID None has connected to Gateway (Session ID: 49856e665bd8e3208ad8abed3bbec0ae).
[03-20-2024 08:31:37] [ERROR ] discord.client: Ignoring exception in on_ready
Traceback (most recent call last):
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/client.py", line 441, in _run_event
await coro(*args, **kwargs)
File "/home/searinminecraft/Bots/Codeijika/bot.py", line 55, in on_ready
print(len(await self.bot.tree.sync()))
^^^^^^^^
AttributeError: 'Nijika' object has no attribute 'bot'
[03-20-2024 08:32:16] [WARNING] discord.client: PyNaCl is not installed, voice will NOT be supported
[03-20-2024 08:32:16] [WARNING] discord.ext.commands.bot: Privileged message content intent is missing, commands may not work as expected.
[03-20-2024 08:32:16] [INFO ] discord.client: logging in using static token
[03-20-2024 08:32:17] [INFO ] nijika: Checking connectivity to Forgejo API
[03-20-2024 08:32:17] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/version "HTTP/1.1 200 OK"
[03-20-2024 08:32:17] [INFO ] nijika: Forgejo version: 1.21.7+0-102-gb99cd96
[03-20-2024 08:32:18] [INFO ] discord.gateway: Shard ID None has connected to Gateway (Session ID: 5e387c5d508249edba1fe8a05c809535).
[03-20-2024 08:32:21] [INFO ] nijika: Bot Codeijika#5127 (1218900062219010108) is up and running!
[03-20-2024 08:32:21] [INFO ] nijika: Invite the bot to your server: https://discord.com/oauth2/authorize?client_id=1218900062219010108&scope=bot+applications.commands&permissions=51200
[03-20-2024 08:33:08] [ERROR ] discord.app_commands.tree: Ignoring exception in command 'reload'
Traceback (most recent call last):
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/app_commands/tree.py", line 1248, in _call
await command._invoke_with_namespace(interaction, namespace)
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/app_commands/commands.py", line 850, in _invoke_with_namespace
raise CheckFailure(f'The check functions for command {self.name!r} failed.')
discord.app_commands.errors.CheckFailure: The check functions for command 'reload' failed.
[03-20-2024 08:44:11] [WARNING] discord.client: PyNaCl is not installed, voice will NOT be supported
[03-20-2024 08:44:11] [WARNING] discord.ext.commands.bot: Privileged message content intent is missing, commands may not work as expected.
[03-20-2024 08:44:11] [INFO ] discord.client: logging in using static token
[03-20-2024 08:44:12] [INFO ] nijika: Checking connectivity to Forgejo API
[03-20-2024 08:44:12] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/version "HTTP/1.1 200 OK"
[03-20-2024 08:44:12] [INFO ] nijika: Forgejo version: 1.21.7+0-102-gb99cd96
[03-20-2024 08:44:13] [INFO ] discord.gateway: Shard ID None has connected to Gateway (Session ID: 879740042af89cd2313046a70ae16881).
[03-20-2024 08:44:16] [INFO ] nijika: Bot Codeijika#5127 (1218900062219010108) is up and running!
[03-20-2024 08:44:16] [INFO ] nijika: Invite the bot to your server: https://discord.com/oauth2/authorize?client_id=1218900062219010108&scope=bot+applications.commands&permissions=51200
[03-20-2024 08:44:25] [ERROR ] discord.app_commands.tree: Ignoring exception in command 'reload'
Traceback (most recent call last):
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/app_commands/tree.py", line 1248, in _call
await command._invoke_with_namespace(interaction, namespace)
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/app_commands/commands.py", line 850, in _invoke_with_namespace
raise CheckFailure(f'The check functions for command {self.name!r} failed.')
discord.app_commands.errors.CheckFailure: The check functions for command 'reload' failed.
[03-20-2024 08:48:52] [WARNING] discord.client: PyNaCl is not installed, voice will NOT be supported
[03-20-2024 08:48:52] [WARNING] discord.ext.commands.bot: Privileged message content intent is missing, commands may not work as expected.
[03-20-2024 08:48:52] [INFO ] discord.client: logging in using static token
[03-20-2024 08:48:52] [INFO ] nijika: Checking connectivity to Forgejo API
[03-20-2024 08:48:53] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/version "HTTP/1.1 200 OK"
[03-20-2024 08:48:53] [INFO ] nijika: Forgejo version: 1.21.7+0-102-gb99cd96
[03-20-2024 08:48:54] [INFO ] discord.gateway: Shard ID None has connected to Gateway (Session ID: bb4044ccf2321d00d957f5239b46135b).
[03-20-2024 08:48:56] [INFO ] nijika: Bot Codeijika#5127 (1218900062219010108) is up and running!
[03-20-2024 08:48:56] [INFO ] nijika: Invite the bot to your server: https://discord.com/oauth2/authorize?client_id=1218900062219010108&scope=bot+applications.commands&permissions=51200
[03-20-2024 08:50:25] [WARNING] discord.client: PyNaCl is not installed, voice will NOT be supported
[03-20-2024 08:50:25] [WARNING] discord.ext.commands.bot: Privileged message content intent is missing, commands may not work as expected.
[03-20-2024 08:50:25] [INFO ] discord.client: logging in using static token
[03-20-2024 08:50:26] [INFO ] nijika: Checking connectivity to Forgejo API
[03-20-2024 08:50:27] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/version "HTTP/1.1 200 OK"
[03-20-2024 08:50:27] [INFO ] nijika: Forgejo version: 1.21.7+0-102-gb99cd96
[03-20-2024 08:50:28] [INFO ] discord.gateway: Shard ID None has connected to Gateway (Session ID: c8a382b2f102b4d7dfd797baee42779b).
[03-20-2024 08:50:30] [INFO ] nijika: Bot Codeijika#5127 (1218900062219010108) is up and running!
[03-20-2024 08:50:30] [INFO ] nijika: Invite the bot to your server: https://discord.com/oauth2/authorize?client_id=1218900062219010108&scope=bot+applications.commands&permissions=51200
[03-20-2024 08:51:48] [ERROR ] discord.app_commands.tree: Ignoring exception in command 'load'
Traceback (most recent call last):
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/app_commands/tree.py", line 1248, in _call
await command._invoke_with_namespace(interaction, namespace)
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/app_commands/commands.py", line 850, in _invoke_with_namespace
raise CheckFailure(f'The check functions for command {self.name!r} failed.')
discord.app_commands.errors.CheckFailure: The check functions for command 'load' failed.
[03-20-2024 10:18:59] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session c8a382b2f102b4d7dfd797baee42779b.
[03-20-2024 11:07:29] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session c8a382b2f102b4d7dfd797baee42779b.
[03-20-2024 12:46:37] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session c8a382b2f102b4d7dfd797baee42779b.
[03-20-2024 13:49:28] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session c8a382b2f102b4d7dfd797baee42779b.
[03-20-2024 15:20:06] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session c8a382b2f102b4d7dfd797baee42779b.
[03-20-2024 16:30:19] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session c8a382b2f102b4d7dfd797baee42779b.
[03-20-2024 16:59:03] [ERROR ] discord.app_commands.tree: Ignoring exception in command 'sync'
Traceback (most recent call last):
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/app_commands/tree.py", line 1248, in _call
await command._invoke_with_namespace(interaction, namespace)
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/app_commands/commands.py", line 850, in _invoke_with_namespace
raise CheckFailure(f'The check functions for command {self.name!r} failed.')
discord.app_commands.errors.CheckFailure: The check functions for command 'sync' failed.
[03-20-2024 16:59:15] [ERROR ] discord.app_commands.tree: Ignoring exception in command 'sync'
Traceback (most recent call last):
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/app_commands/tree.py", line 1248, in _call
await command._invoke_with_namespace(interaction, namespace)
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/app_commands/commands.py", line 850, in _invoke_with_namespace
raise CheckFailure(f'The check functions for command {self.name!r} failed.')
discord.app_commands.errors.CheckFailure: The check functions for command 'sync' failed.
[03-20-2024 17:33:26] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session c8a382b2f102b4d7dfd797baee42779b.
[03-20-2024 17:38:14] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/user "HTTP/1.1 200 OK"
[03-20-2024 17:38:14] [ERROR ] discord.app_commands.tree: Ignoring exception in command 'whoami'
Traceback (most recent call last):
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/app_commands/commands.py", line 827, in _do_call
return await self._callback(self.binding, interaction, **params) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/searinminecraft/Bots/Codeijika/cogs/core.py", line 127, in _whoami
fullName=data["fullName"] if data["fullName"] != "" else "None",
~~~~^^^^^^^^^^^^
KeyError: 'fullName'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/app_commands/tree.py", line 1248, in _call
await command._invoke_with_namespace(interaction, namespace)
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/app_commands/commands.py", line 853, in _invoke_with_namespace
return await self._do_call(interaction, transformed_values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/app_commands/commands.py", line 846, in _do_call
raise CommandInvokeError(self, e) from e
discord.app_commands.errors.CommandInvokeError: Command 'whoami' raised an exception: KeyError: 'fullName'
[03-20-2024 17:38:51] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/user "HTTP/1.1 200 OK"
[03-20-2024 17:46:30] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/user "HTTP/1.1 200 OK"
[03-20-2024 18:00:37] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/users/kita "HTTP/1.1 200 OK"
[03-20-2024 18:00:48] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/users/teamkrash "HTTP/1.1 200 OK"
[03-20-2024 18:01:03] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/users/fnetX "HTTP/1.1 200 OK"
[03-20-2024 18:01:30] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/users/njodojnfgnjoewrgnjowetonggng "HTTP/1.1 404 Not Found"
[03-20-2024 18:01:30] [ERROR ] discord.app_commands.tree: Ignoring exception in command 'get'
Traceback (most recent call last):
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/app_commands/commands.py", line 827, in _do_call
return await self._callback(self.binding, interaction, **params) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/searinminecraft/Bots/Codeijika/cogs/user.py", line 46, in getUser
username=data["username"],
~~~~^^^^^^^^^^^^
KeyError: 'username'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/app_commands/tree.py", line 1248, in _call
await command._invoke_with_namespace(interaction, namespace)
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/app_commands/commands.py", line 853, in _invoke_with_namespace
return await self._do_call(interaction, transformed_values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/app_commands/commands.py", line 846, in _do_call
raise CommandInvokeError(self, e) from e
discord.app_commands.errors.CommandInvokeError: Command 'get' raised an exception: KeyError: 'username'
[03-20-2024 18:03:12] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/users/fijndnjiwjinmwkomkow "HTTP/1.1 404 Not Found"
[03-20-2024 18:03:23] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/users/bocchi "HTTP/1.1 404 Not Found"
[03-20-2024 18:03:50] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/users/0k0 "HTTP/1.1 404 Not Found"
[03-20-2024 18:04:32] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/users/Gusted "HTTP/1.1 200 OK"
[03-20-2024 18:18:01] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/users/kita "HTTP/1.1 200 OK"
[03-20-2024 18:19:02] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/users/Gusted "HTTP/1.1 200 OK"
[03-20-2024 18:19:14] [WARNING] discord.client: PyNaCl is not installed, voice will NOT be supported
[03-20-2024 18:19:14] [WARNING] discord.ext.commands.bot: Privileged message content intent is missing, commands may not work as expected.
[03-20-2024 18:19:14] [INFO ] discord.client: logging in using static token
[03-20-2024 18:19:15] [INFO ] nijika: Checking connectivity to Forgejo API
[03-20-2024 18:19:16] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/version "HTTP/1.1 200 OK"
[03-20-2024 18:19:16] [INFO ] nijika: Forgejo version: 1.21.7+0-102-gb99cd96
[03-20-2024 18:19:19] [INFO ] discord.gateway: Shard ID None has connected to Gateway (Session ID: 44c6a7feb4c3552a2ea869b29dba4ef3).
[03-20-2024 18:19:21] [INFO ] nijika: Bot Codeijika#5127 (1218900062219010108) is up and running!
[03-20-2024 18:19:21] [INFO ] nijika: Invite the bot to your server: https://discord.com/oauth2/authorize?client_id=1218900062219010108&scope=bot+applications.commands&permissions=51200
[03-20-2024 18:23:10] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/users/Gusted "HTTP/1.1 200 OK"
[03-20-2024 20:17:43] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session 44c6a7feb4c3552a2ea869b29dba4ef3.
[03-20-2024 23:03:15] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session 44c6a7feb4c3552a2ea869b29dba4ef3.
[03-21-2024 00:57:47] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session 44c6a7feb4c3552a2ea869b29dba4ef3.
[03-21-2024 02:02:33] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session 44c6a7feb4c3552a2ea869b29dba4ef3.
[03-21-2024 03:31:56] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session 44c6a7feb4c3552a2ea869b29dba4ef3.
[03-21-2024 03:42:06] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session 44c6a7feb4c3552a2ea869b29dba4ef3.
[03-21-2024 03:43:48] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session 44c6a7feb4c3552a2ea869b29dba4ef3.
[03-21-2024 03:44:23] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session 44c6a7feb4c3552a2ea869b29dba4ef3.
[03-21-2024 03:56:46] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session 44c6a7feb4c3552a2ea869b29dba4ef3.
[03-21-2024 04:07:47] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session 44c6a7feb4c3552a2ea869b29dba4ef3.
[03-21-2024 06:49:40] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session 44c6a7feb4c3552a2ea869b29dba4ef3.
[03-21-2024 07:59:48] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session 44c6a7feb4c3552a2ea869b29dba4ef3.
[03-21-2024 08:34:37] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/users/teamkrash "HTTP/1.1 200 OK"
[03-21-2024 09:48:44] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/users/fnetX "HTTP/1.1 200 OK"
[03-21-2024 10:21:12] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session 44c6a7feb4c3552a2ea869b29dba4ef3.
[03-21-2024 11:38:05] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session 44c6a7feb4c3552a2ea869b29dba4ef3.
[03-21-2024 12:57:21] [ERROR ] discord.app_commands.tree: Ignoring exception in command 'load'
Traceback (most recent call last):
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/app_commands/tree.py", line 1248, in _call
await command._invoke_with_namespace(interaction, namespace)
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/app_commands/commands.py", line 850, in _invoke_with_namespace
raise CheckFailure(f'The check functions for command {self.name!r} failed.')
discord.app_commands.errors.CheckFailure: The check functions for command 'load' failed.
[03-21-2024 13:16:26] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session 44c6a7feb4c3552a2ea869b29dba4ef3.
[03-21-2024 13:20:34] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session 44c6a7feb4c3552a2ea869b29dba4ef3.
[03-21-2024 14:12:21] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session 44c6a7feb4c3552a2ea869b29dba4ef3.
[03-21-2024 14:55:46] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session 44c6a7feb4c3552a2ea869b29dba4ef3.
[03-21-2024 16:59:45] [INFO ] discord.gateway: Shard ID None has successfully RESUMED session 44c6a7feb4c3552a2ea869b29dba4ef3.
[03-21-2024 17:16:47] [WARNING] discord.client: PyNaCl is not installed, voice will NOT be supported
[03-21-2024 17:16:47] [WARNING] discord.ext.commands.bot: Privileged message content intent is missing, commands may not work as expected.
[03-21-2024 17:16:47] [INFO ] discord.client: logging in using static token
[03-21-2024 17:16:47] [INFO ] nijika: Checking connectivity to Forgejo API
[03-21-2024 17:16:48] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/version "HTTP/1.1 200 OK"
[03-21-2024 17:16:48] [INFO ] nijika: Forgejo version: 1.21.7+0-102-gb99cd96
[03-21-2024 17:16:49] [INFO ] discord.gateway: Shard ID None has connected to Gateway (Session ID: aafb21e44f9136cb6ecaca8afa5acdd2).
[03-21-2024 17:16:51] [ERROR ] nijika: Cannot load cog: cogs.user
Traceback (most recent call last):
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/ext/commands/bot.py", line 935, in _load_from_module_spec
spec.loader.exec_module(lib) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/home/searinminecraft/Bots/Codeijika/cogs/user.py", line 13, in <module>
from utils import check_for_noreply, build_instance_url
File "/home/searinminecraft/Bots/Codeijika/utils.py", line 7, in <module>
@cache()
^^^^^^^
TypeError: cache() missing 1 required positional argument: 'user_function'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/searinminecraft/Bots/Codeijika/bot.py", line 52, in on_ready
await self.load_extension(cog)
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/ext/commands/bot.py", line 1013, in load_extension
await self._load_from_module_spec(spec, name)
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/ext/commands/bot.py", line 938, in _load_from_module_spec
raise errors.ExtensionFailed(key, e) from e
discord.ext.commands.errors.ExtensionFailed: Extension 'cogs.user' raised an error: TypeError: cache() missing 1 required positional argument: 'user_function'
[03-21-2024 17:16:51] [INFO ] nijika: Bot Codeijika#5127 (1218900062219010108) is up and running!
[03-21-2024 17:16:51] [INFO ] nijika: Invite the bot to your server: https://discord.com/oauth2/authorize?client_id=1218900062219010108&scope=bot+applications.commands&permissions=51200
[03-21-2024 17:18:00] [WARNING] discord.client: PyNaCl is not installed, voice will NOT be supported
[03-21-2024 17:18:00] [WARNING] discord.ext.commands.bot: Privileged message content intent is missing, commands may not work as expected.
[03-21-2024 17:18:00] [INFO ] discord.client: logging in using static token
[03-21-2024 17:18:01] [INFO ] nijika: Checking connectivity to Forgejo API
[03-21-2024 17:18:02] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/version "HTTP/1.1 200 OK"
[03-21-2024 17:18:02] [INFO ] nijika: Forgejo version: 1.21.7+0-102-gb99cd96
[03-21-2024 17:18:02] [INFO ] discord.gateway: Shard ID None has connected to Gateway (Session ID: 0dccb9c2ac65a663cf9e7c665d4d17dd).
[03-21-2024 17:18:05] [INFO ] nijika: Bot Codeijika#5127 (1218900062219010108) is up and running!
[03-21-2024 17:18:05] [INFO ] nijika: Invite the bot to your server: https://discord.com/oauth2/authorize?client_id=1218900062219010108&scope=bot+applications.commands&permissions=51200
[03-21-2024 17:18:16] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/users/kita "HTTP/1.1 200 OK"
[03-21-2024 17:18:16] [ERROR ] discord.app_commands.tree: Ignoring exception in command 'get'
Traceback (most recent call last):
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/app_commands/commands.py", line 827, in _do_call
return await self._callback(self.binding, interaction, **params) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/searinminecraft/Bots/Codeijika/cogs/user.py", line 75, in getUser
view=SingularLinkButton("Visit Profile", ))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: SingularLinkButton.__init__() missing 1 required positional argument: 'url'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/app_commands/tree.py", line 1248, in _call
await command._invoke_with_namespace(interaction, namespace)
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/app_commands/commands.py", line 853, in _invoke_with_namespace
return await self._do_call(interaction, transformed_values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/app_commands/commands.py", line 842, in _do_call
raise CommandInvokeError(self, e) from e
discord.app_commands.errors.CommandInvokeError: Command 'get' raised an exception: TypeError: SingularLinkButton.__init__() missing 1 required positional argument: 'url'
[03-21-2024 17:19:47] [WARNING] discord.client: PyNaCl is not installed, voice will NOT be supported
[03-21-2024 17:19:47] [WARNING] discord.ext.commands.bot: Privileged message content intent is missing, commands may not work as expected.
[03-21-2024 17:19:47] [INFO ] discord.client: logging in using static token
[03-21-2024 17:19:48] [INFO ] nijika: Checking connectivity to Forgejo API
[03-21-2024 17:19:48] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/version "HTTP/1.1 200 OK"
[03-21-2024 17:19:48] [INFO ] nijika: Forgejo version: 1.21.7+0-102-gb99cd96
[03-21-2024 17:19:49] [INFO ] discord.gateway: Shard ID None has connected to Gateway (Session ID: 3aa12725848a8759b386073b66339670).
[03-21-2024 17:19:51] [INFO ] nijika: Bot Codeijika#5127 (1218900062219010108) is up and running!
[03-21-2024 17:19:51] [INFO ] nijika: Invite the bot to your server: https://discord.com/oauth2/authorize?client_id=1218900062219010108&scope=bot+applications.commands&permissions=51200
[03-21-2024 17:19:58] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/users/kita "HTTP/1.1 200 OK"
[03-21-2024 17:19:58] [ERROR ] discord.app_commands.tree: Ignoring exception in command 'get'
Traceback (most recent call last):
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/app_commands/commands.py", line 827, in _do_call
return await self._callback(self.binding, interaction, **params) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/searinminecraft/Bots/Codeijika/cogs/user.py", line 74, in getUser
view=SingularLinkButton(
^^^^^^^^^^^^^^^^^^^
File "/home/searinminecraft/Bots/Codeijika/cogs/user.py", line 23, in __init__
self.add_item(ui.Button(
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/ui/view.py", line 320, in add_item
if len(self._children) > 25:
^^^^^^^^^^^^^^
AttributeError: 'SingularLinkButton' object has no attribute '_children'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/app_commands/tree.py", line 1248, in _call
await command._invoke_with_namespace(interaction, namespace)
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/app_commands/commands.py", line 853, in _invoke_with_namespace
return await self._do_call(interaction, transformed_values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/searinminecraft/Bots/Codeijika/venv/lib/python3.11/site-packages/discord/app_commands/commands.py", line 846, in _do_call
raise CommandInvokeError(self, e) from e
discord.app_commands.errors.CommandInvokeError: Command 'get' raised an exception: AttributeError: 'SingularLinkButton' object has no attribute '_children'
[03-21-2024 17:21:29] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/users/kita "HTTP/1.1 200 OK"
[03-21-2024 17:22:25] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/users/Gusted "HTTP/1.1 200 OK"
[03-21-2024 17:33:05] [WARNING] discord.client: PyNaCl is not installed, voice will NOT be supported
[03-21-2024 17:33:05] [WARNING] discord.ext.commands.bot: Privileged message content intent is missing, commands may not work as expected.
[03-21-2024 17:33:05] [INFO ] discord.client: logging in using static token
[03-21-2024 17:33:06] [INFO ] nijika: Checking connectivity to Forgejo API
[03-21-2024 17:33:06] [INFO ] httpx: HTTP Request: GET https://codeberg.org/api/v1/version "HTTP/1.1 200 OK"
[03-21-2024 17:33:06] [INFO ] nijika: Forgejo version: 1.21.7+0-102-gb99cd96
[03-21-2024 17:33:07] [INFO ] discord.gateway: Shard ID None has connected to Gateway (Session ID: 2a293d88d479731f78bb82174f4a727a).
[03-21-2024 17:33:09] [INFO ] nijika: Initializing first run hooks.
[03-21-2024 17:33:10] [INFO ] nijika: Done.
[03-21-2024 17:33:10] [INFO ] nijika: Bot Codeijika#5127 (1218900062219010108) is up and running!
[03-21-2024 17:33:10] [INFO ] nijika: Invite the bot to your server: https://discord.com/oauth2/authorize?client_id=1218900062219010108&scope=bot+applications.commands&permissions=51200