Giter Club home page Giter Club logo

bad_copenheimer's Introduction

Bad Copenheimer

A Python impelentation of a discord bot that acts as a server scanner.

This is a discord bot that will scan ip adresses to see if they are minecraft servers and will post the results in your channel.

Discord Server if you want to test or play around with a premade bot.


Beta Release

The new bot is now public, you can check it out in the dev-builds branch and by following the README.

Installation

Installation Page

Wiki

Troubleshooting


Usage

Experimental

The New Bot is Done!

You can now use the new bot, it is still in beta, but it is much more stable and has more features. You can find it here.

Requirements

  • Python 3.6 or higher
  • Linux/Docker (for the scanner, the discord bot will run on windows)
  • Masscan (for the scanner)
  • requirements.txt (needs to be run with pip3)
  • node.js 16 or higher

Normal

/help This shows all of the commands you can use and their usage. Then to create your server list, run:

/find This will look through your database to find servers that match the provided paramaters. In the new build, there are two more buttons that can be used to either show the player names and uuids of players found on the server or to pick another random server from the list, after pressing it, wait for the message to update.

showcase

If the server has a whitelist the dot will be orange if it is online.

showcase

/stats This will show you the stats of the databse.

showcase

Important

In order for /status to work properly the server should have enable-query=true in the server.properties file. This allows the server to brodcast who is currently logged onto the server.


Help

Please check the wiki before posting an issue and read through the troubleshooting first.


Todo

Moved to Project

bad_copenheimer's People

Contributors

bloodynoah avatar deepsource-autofix[bot] avatar dependabot[bot] avatar pilot1782 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  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  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bad_copenheimer's Issues

[Bug]: dis-bot.pyw

Contact Details

this issue

What happened?

When I was trying to run dis-bot I got this error. ( I put the right paths in settings and env)

Version

1.9.1 (Default)

Branch

main (Default)

Relevant log output

Traceback (most recent call last):
File "C:\Users\USER\Desktop\bad_copenheimer-main\dis-bot.pyw", line 17, in
fncs = funcs(settings_path)
File "C:\Users\USER\Desktop\bad_copenheimer-main\funcs.py", line 15, in init
with open(
OSError: [Errno 22] Invalid argument: 'C:\Program Files\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\dotnet\;E:\NodeJS\;E:\Git\cmd;C:\Users\USER\AppData\Local\Programs\Python\Python310;C:\Users\USER\AppData\Local\Programs\Python\Python310\Scripts'
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x0000013B04885B70>

[Bug]:

Contact Details

No response

What happened?

when i run setup.py it displays an error message.

Version

1.9.1 (Default)

Relevant log output

C:\Users\yky4\Downloads\bad_copenheimer-main>python3 setup.py
Traceback (most recent call last):
  File "C:\Users\yky4\Downloads\bad_copenheimer-main\setup.py", line 3, in <module>
    from funcs import ptime
  File "C:\Users\yky4\Downloads\bad_copenheimer-main\funcs.py", line 9, in <module>
    with open(settings_path, "r") as read_file: # Open the settings file and start defineing variables from it
OSError: [Errno 22] Invalid argument: (it starts stating random files here including system32)

Merge

The code is too unorganized atleast place the functions in a functions or lib folder

[Bug]: Link in installation guide is broken.

Contact Details

No response

What happened?

The link to the settings page in the installation guide doesnt work.
(Not a big deal but not everyone might know github well and might get confused).

Version

1.7 (Default)

Relevant log output

No response

Errors

I get these errors and I don't know how to fix them
errors

[Bug]: Full scan doesn't start

Contact Details

McMelon#9999 on Discord

What happened?

A bug happened!

image

Version

1.7 (Default)

Relevant log output

Scanning on 10.0.0.0 through 199.255.255.255, with 8160 threads and timeout of 1
scanning using masscan
b'nmap(-oj): unknown output format\n'
Successfully appended 3 lines to the JSON file

Player searcher

It would be nice to search after players like in copenheimer.

An alternative is to print the playerlist in the logs.

[Bug]:

Contact Details

No response

What happened?

An error occured dispatching guild_application_command_index_update: module 'interactions' has no attribute 'GuildApplicationCommandIndex'

why is this happening

Version

1.9.1 (Default)

Relevant log output

An error occured dispatching guild_application_command_index_update: module 'interactions' has no attribute 'GuildApplicationCommandIndex'

[Bug]: setup.py doesn't work

Contact Details

No response

What happened?

When I try to open setup.py with command prompt I get error:
Traceback (most recent call last):
File "C:\Users(user)\Downloads\bad_copenheimer-1.9.1\setup.py", line 3, in
from funcs import ptime
File "C:\Users(user)\Downloads\bad_copenheimer-1.9.1\funcs.py", line 9, in
with open(settings_path, "r") as read_file: # Open the settings file and start defineing variables from it
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Java\jdk-17.0.1\bin; (and a lot of other directories like windows system32 etc.)

I tried to fill settings.json file with data like home directory, but even then the program crashes with that error.

Settings:

{
"TOKEN":"(token filled)",
"lower_ip_bound":"172.65.238.255",
"upper_ip_bound":"172.65.240.255",
"threads":1020,
"timeout":6000,
"os":1,
"home-dir": "C:\Users\(user)\Downloads\bad_copenheimer-1.9.1",
"user":"Pilot1782",
"password":"Password123",
"guild-id": (id filled),
"server":false,
"server-port":"8080",
"masscan":false,
"time2":1000,
"lin-py":"python3",
"win-py":"%LOCALAPPDATA%\Programs\Python\Python310\python.exe",
"debugging":false,
"testing":false
}

python version: 3.9.12
bad_copenheimer version: 1.9.1

Version

1.7 (Default)

Relevant log output

No response

Error on running setup.py

I get this output, when I run setup.py:

[noah@ArchOnTopBtw bad_copenheimer]$ python3 setup.py 
Traceback (most recent call last):
  File "/home/noah/bad_copenheimer/setup.py", line 3, in <module>
    from funcs import ptime
  File "/home/noah/bad_copenheimer/funcs.py", line 9, in <module>
    with open(settings_path, "r") as read_file: # Open the settings file and start defineing variables from it
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/sbin:/usr/local/bin:/usr/bin:/home/noah/.dotnet/tools:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl'
[noah@ArchOnTopBtw bad_copenheimer]$ 

No module named 'funcs'

I tried running the program today and I'm being met with this error. I went back a few commits to when you didn't utilize this module and it worked fine then, but I'd like to be able to use the most up to dat version possible. Any help would be great.

Output:
Traceback (most recent call last):
File "C:\Users\logan\Documents\bad_copenheimer\dis-bot.pyw", line 12, in <module>
from funcs import *
ModuleNotFoundError: No module named 'funcs'

[Bug]: Dis-bot.pyw fails on run

Contact Details

[email protected]

What happened?

When i run dis-bot.py i get this error

PS C:\Users\me\Downloads\bad_copenheimer-dev-builds> python3 .\dis-bot.pyw
Traceback (most recent call last):
File "C:\Users\me\Downloads\bad_copenheimer-dev-builds\dis-bot.pyw", line 8, in
from funcs import *
File "C:\Users\me\Downloads\bad_copenheimer-dev-builds\funcs.py", line 10, in
with open(settings_path, "r") as read_file: # Open the settings file and start defineing variables from it
OSError: [Errno 22] Invalid argument: 'C:\Program Files\Microsoft MPI\Bin\;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ffmpeg\bin;%PATH%;C:\Program Files\nodejs\;C:\Program Files\PowerShell\7\;C:\Ruby31-x64\bin;C:\Program Files\MySQL\MySQL Shell 8.0\bin\;C:\Users\me\AppData\Local\Microsoft\WindowsApps;C:\Users\me\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\me\AppData\Roaming\npm'
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x00000187B4E62F20>

Version

1.9.1 (Default)

Relevant log output

PS C:\Users\me\Downloads\bad_copenheimer-dev-builds> python3 .\dis-bot.pyw
Traceback (most recent call last):
  File "C:\Users\me\Downloads\bad_copenheimer-dev-builds\dis-bot.pyw", line 8, in <module>
    from funcs import *
  File "C:\Users\me\Downloads\bad_copenheimer-dev-builds\funcs.py", line 10, in <module>
    with open(settings_path, "r") as read_file: # Open the settings file and start defineing variables from it
OSError: [Errno 22] Invalid argument: 'C:\\Program Files\\Microsoft MPI\\Bin\\;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\ffmpeg\\bin;%PATH%;C:\\Program Files\\nodejs\\;C:\\Program Files\\PowerShell\\7\\;C:\\Ruby31-x64\\bin;C:\\Program Files\\MySQL\\MySQL Shell 8.0\\bin\\;C:\\Users\\me\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\me\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\me\\AppData\\Roaming\\npm'
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x00000187B4E62F20>

doesnt work

i have these packages
requests
2.26.0
discord
1.7.3
mcstatus
6.5.0
and i get the following error
Year 2021
MC ping started
Testing
Year 2021
Scanning 172.65.238.212 outputting True
Ignoring exception in on_message
Traceback (most recent call last):
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 343, in _run_event
await coro(*args, **kwargs)
File "dis-bot.pyw", line 73, in on_message
status = server.status()
AttributeError: 'NoneType' object has no attribute 'status'
and yes i put my bot token
BTW thx you for making this

[Bug]: ModuleNotFoundError: No module named 'interactions'

Contact Details

No response

What happened?

ModuleNotFoundError: No module named 'interactions'
error, changed it to 'interaction' and it gave the following error:
Traceback (most recent call last):
File "c:\Users\USERNAME\Desktop\bad_copenheimer-dev-builds\dis-bot.pyw", line 20, in
fncs = funcs(settings_path)
File "c:\Users\USERNAME\Desktop\bad_copenheimer-dev-builds\funcs.py", line 15, in init
with open(settings_path, "r") as read_file: # Open the settings file and start defineing variables from it
OSError: [Errno 22] Invalid argument: 'C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Users\USERNAME\AppData\Local\Microsoft\WindowsApps;C:\Users\USERNAME\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\USERNAME\AppData\Local\Programs\Python\Python310\Scripts;'

Version

1.9.1 (Default)

Relevant log output

No response

[Bug]:

What happened?

Packages Already Imported, Exiting!
Updating file paths...
Traceback (most recent call last):
File "setup.py", line 71, in
fix_files()
File "setup.py", line 59, in fix_files
ast.literal_eval('replace_line(f"{inp}.env",0,r'{}PATH={}settings.json{}'.format("\r",inp,"\n")) if inp("Do you want to use enviroment variables? (y/n) ").lower() == "y" else 'replace_line(f"{inp}dis-bot.pyw",11,r'{}settings_path =' "{}settings.json{}"'.format("\r",inp,"\n")
TypeError: 'str' object is not callable

Trying to run setup.py, installed the requirements before running setup.

Operating Sys

Linux

Branch

  • Tried dev-builds

Relevant log output

Packages Already Imported, Exiting!
Updating file paths...
Traceback (most recent call last):
  File "setup.py", line 71, in <module>
    fix_files()
  File "setup.py", line 59, in fix_files
    ast.literal_eval('replace_line(f"{inp}.env",0,r\'{}PATH={}settings.json{}'.format("\r",inp,"\n")) if inp("Do you want to use enviroment variables? (y/n) ").lower() == "y" else 'replace_line(f"{inp}dis-bot.pyw",11,r\'{}settings_path =\' "{}settings.json{}"'.format("\r",inp,"\n")
TypeError: 'str' object is not callable

[Bug]: setup.py not working

Contact Details

[email protected]

What happened?

I am trying to add the bot to my discord server but when i try running the setup.py i have several error messages, i am guessing it is a bug but i can be wrong because im not sure how to make the bot work
i am on windows 10

Screenshot 2022-05-23 180534

Version

1.9.1 (Default)

Relevant log output

Is this being run on windows, or linux? windows
C:\\Users\\utilisateur\\Downloads\\bad_copenheimer-main\\
Traceback (most recent call last):
  File "C:\Users\utilisateur\Downloads\bad_copenheimer-main\setup.py", line 21, in imports
    x = subprocess.check_output("python3 --version",shell=True)
  File "C:\Users\utilisateur\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 420, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "C:\Users\utilisateur\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'python3 --version' returned non-zero exit status 9009.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\utilisateur\Downloads\bad_copenheimer-main\setup.py", line 123, in <module>
    fix_files()
  File "C:\Users\utilisateur\Downloads\bad_copenheimer-main\setup.py", line 75, in fix_files
    imports()
  File "C:\Users\utilisateur\Downloads\bad_copenheimer-main\setup.py", line 23, in imports
    import funcs
  File "C:\Users\utilisateur\Downloads\bad_copenheimer-main\funcs.py", line 5, in <module>
    from mcstatus import MinecraftServer
ModuleNotFoundError: No module named 'mcstatus'

[Bug]: Stopper.pyw doesn't work

Contact Details

No response

What happened?

When I try to turn on the stopper.pyw using command "python/python3 stopper.pyw" I get an error:
Traceback (most recent call last):
File "", line 1, in
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1776.0_x64__qbz5n2kfra8p0\lib\multiprocessing\spawn.py", line 116, in spawn_main
exitcode = _main(fd, parent_sentinel)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1776.0_x64__qbz5n2kfra8p0\lib\multiprocessing\spawn.py", line 126, in _main
self = reduction.pickle.load(from_parent)
AttributeError: Can't get attribute 'step' on <module 'mp_main' from 'C:\Users\User\Documents\bad_copenheimer-main\bad_copenheimer-main\stopper.pyw'>
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x000001BEE7325F30>
Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x000001BEE7D9DF00>, 429738.593)]']
connector: <aiohttp.connector.TCPConnector object at 0x000001BEE7326650>

After that in bot's command list /stop command appears but it doesn't stop the bot.

Version

1.9.1 (Default)

Relevant log output

No response

How To Issue

When You Should Post An Issue

Please check the troubleshooting wiki page first and if that doesn't work then please check the dev-builds branch and see if your problem is resolved.

How To Correctly Post An Issue

Include the output of the script when it fails, and make sure you scrub the paths in the output to remove any sensitive information. If you can, please upload the log (log.txt) file and the settings (settings.json) file.

What To Expect After Posting An Issue

I'm not always at my pc spamming refresh waiting for a new issue but I'll usually respond within a day or two with troubleshooting tips or when or if a fix will be published.

[Suggestion] Just wondering about a possible feature(s) and if they could be implemented

Would it be possible to have the program run as an independent program? perhaps it could generate a text file that lists the servers found and basic information.

Also, I was thinking about copenheimer and as an even better alternative, would it be possible to run it as a webserver, with a compatible addon for meteor client, how this would probably work is you would specify a code for the webserver, and download the meteor addon (which could be coded in python using the meteor python addon), you could then input the code to connect to the webserver and browse the server lists. later on sorting by whitelist, vanilla, modded, etc. could be added. As well as the "historical players" HUD element shown in videos with the copenhiemer client.

This is possible, but I'm not sure how difficult or time-consuming this would be (it would probably take a while to implement all the features mentioned), though it would be arguably the most powerful public copenheimer alternative in existence.

[Bug]: dis-bot.pyw

Contact Details

[email protected]

What happened?

I Have checked all of the .env and settings.json files repeatedly and still get this error:

Version

1.9.1 (Default)

Branch

main (Default)

Relevant log output

pi@assistant:~/bad_copenheimer $ python3 dis-bot.pyw
Traceback (most recent call last):
  File "/home/pi/bad_copenheimer/dis-bot.pyw", line 17, in <module>
    fncs = funcs(settings_path)
  File "/home/pi/bad_copenheimer/funcs.py", line 15, in __init__
    with open(
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games'
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0xb59fa190>

Setup.py not working

Contact Details

No response

What happened?

I thought i should enter bot token and other informations.

Version

1.9.1 (Default)

Relevant log output

Traceback (most recent call last):
  File "C:\Users\myuser\Desktop\bad copenheimer\bad_copenheimer-1.9.1\setup.py", line 3, in <module>
    from funcs import ptime
  File "C:\Users\myuser\Desktop\bad copenheimer\bad_copenheimer-1.9.1\funcs.py", line 9, in <module>
    with open(settings_path, "r") as read_file: # Open the settings file and start defineing variables from it
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;c:\Program Files (x86)\Intel\iCLS Client\;c:\Program Files\Intel\iCLS Client\;C:\\ProgramData\\Oracle\\Java\\javapath;C:\Windows\system32;C:\\Windows;C:\Windows\System32\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\Windows\System32\OpenSSH\;c:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;c:\Program Files\Intel\Intel(R) Management Engine Components\DAL;c:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;c:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\gs\gs9.56.1\bin;C:\Program Files\dotnet\;C:\\Users\\myuser\\AppData\\Local\\Programs\\Python\\Python310\\Scripts\\;C:\Users\myuser\AppData\Local\Programs\Python\Python310\;C:\\Users\\myuser\\AppData\\Local\\Microsoft\\WindowsApps;;C:\Users\myuser\AppData\Local\Programs\Microsoft VS Code\bin;C:\\Users\\myuser\\.dotnet\\tools;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.1.4\bin;'

[Bug]:

Contact Details

[email protected]

What happened?

setup.py not working

Version

1.9.1 (Default)

Branch

main (Default)

Relevant log output

Updating file paths...
Do you want to use enviroment variables? (y/n) y
Traceback (most recent call last):
  File "D:\Downloads\bad_copenheimer-main\setup.py", line 72, in <module>
    fix_files()
  File "D:\Downloads\bad_copenheimer-main\setup.py", line 60, in fix_files
    ast.literal_eval('replace_line(f"{inp}.env",0,r\'{}PATH={}settings.json{}\'.format("\r",inp,"\n"))' if input("Do you want to use enviroment variables? (y/n) ").lower() == "y" else 'pass')
  File "C:\Users\n\AppData\Local\Programs\Python\Python39\lib\ast.py", line 62, in literal_eval
    node_or_string = parse(node_or_string, mode='eval')
  File "C:\Users\n\AppData\Local\Programs\Python\Python39\lib\ast.py", line 50, in parse
    return compile(source, filename, mode, flags,
  File "<unknown>", line 1
    replace_line(f"{inp}.env",0,r'{}PATH={}settings.json{}'.format("
                                                                    ^
SyntaxError: EOL while scanning string literal

Process finished with exit code 1

Doesn't work for some reason

Tried to start on windows 10 with python 3.10

C:\Users\Z1xus\Desktop\bad_copeheimer-1.2>python dis-bot.pyw
File "C:\Users\Z1xus\Desktop\bad_copeheimer-1.2\dis-bot.pyw", line 11
lower_ip_bound = 172.0.0.0 #Lowest is 10.0.0.0
^^^^^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?

C:\Users\Z1xus\Desktop\bad_copeheimer-1.2>

[Bug]: Error in mongoBot.pyw

What happened?

When I try to run mongoBot.pyw I get an error.

Operating Sys

Windows

Branch

  • Tried dev-builds

Relevant log output

Traceback (most recent call last):
  File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\pymongo\srv_resolver.py", line 89, in _resolve_uri
    results = _resolve(
              ^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\pymongo\srv_resolver.py", line 43, in _resolve
    return resolver.resolve(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\dns\resolver.py", line 1193, in resolve
    return get_default_resolver().resolve(qname, rdtype, rdclass, tcp, source,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\dns\resolver.py", line 1049, in resolve
    resolution = _Resolution(self, qname, rdtype, rdclass, tcp,
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\dns\resolver.py", line 543, in __init__
    qname = dns.name.from_text(qname, None)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\dns\name.py", line 942, in from_text
    raise EmptyLabel
dns.name.EmptyLabel: A DNS label is empty.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\bad_copenheimer-dev-builds\mongoBot.pyw", line 24, in <module>
    client = pymongo.MongoClient(MONGO_URL, server_api=pymongo.server_api.ServerApi("1"))  # type: ignore
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\pymongo\mongo_client.py", line 736, in __init__
    res = uri_parser.parse_uri(
          ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\pymongo\uri_parser.py", line 542, in parse_uri
    nodes = dns_resolver.get_hosts()
            ^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\pymongo\srv_resolver.py", line 121, in get_hosts
    _, nodes = self._get_srv_response_and_hosts(True)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\pymongo\srv_resolver.py", line 101, in _get_srv_response_and_hosts
    results = self._resolve_uri(encapsulate_errors)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\pymongo\srv_resolver.py", line 97, in _resolve_uri
    raise ConfigurationError(str(exc))
pymongo.errors.ConfigurationError: A DNS label is empty.

[Bug]:

Contact Details

No response

What happened?

Nothing! as son as a try to run it it fails and closes python. if i use command line it just says no file found for setup or setup.py

C:\Users\me> python3 setup.py
python3: can't open file 'C:\Users\me\setup.py': [Errno 2] No such file or directory

C:\Users\me>

Version

1.7 (Default)

Relevant log output

No response

[Bug]: (Windows) Setup.py crashes

Contact Details

No response

What happened?

Hi ! I just tried to do py setup.py and this happened, (the clear error is bc clear doesn't exists on windows, its cls), but i don't know how to manually fix the next error, can you help me or even fix the error ?

Thank you in advance
Your Cordialities
-enzomtp

Version

1.9.1 (Default)

Branch

main (Default)

Relevant log output

'clear' is not recognized as an internal or external command, executable program or batch file.
Packages Already Imported, Exiting!
Updating file paths...
Traceback (most recent call last):
  File "E:\IDM\Compressed\bad_copenheimer-main\setup.py", line 71, in <module>
    fix_files()
  File "E:\IDM\Compressed\bad_copenheimer-main\setup.py", line 59, in fix_files
    ast.literal_eval('replace_line(f"{inp}.env",0,r\'{}PATH={}settings.json{}'.format("\r",inp,"\n")) if inp("Do you want to use enviroment variables? (y/n) ").lower() == "y" else 'replace_line(f"{inp}dis-bot.pyw",11,r\'{}settings_path =\' "{}settings.json{}"'.format("\r",inp,"\n")
TypeError: 'str' object is not callable

[Bug]: Error in dis-bot.pyw file

Contact Details

No response

What happened?

When I try to turn the discord bot on using dis-bot.pyw I get an error:
Checking scan
Checking status
Checking list
Testing:False, Debugging:True

Starting bot...
Starting emergency bot...
Checking scan
Checking status
Checking list
Could not prepare the client:
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\interactions\client\bot.py", line 352, in _ready
await self.__sync()
File "C:\Users\User\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\interactions\client\bot.py", line 429, in __sync
_guilds = await self._http.get_self_guilds()
File "C:\Users\User\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\interactions\api\http\guild.py", line 30, in get_self_guilds
if guild.get("id"):
AttributeError: 'str' object has no attribute 'get'
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x000002186DC77520>
Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x000002186F73C700>, 10669.937)]']
connector: <aiohttp.connector.TCPConnector object at 0x000002186DC77C40>
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x000001D9524C36D0>
Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x000001D952FE7AC0>, 10668.281)]']
connector: <aiohttp.connector.TCPConnector object at 0x000001D9524C3DF0>

At first I thought that I insterted something wrong in settings.json file or I have incompatible packages but after checking the settings.json file and reinstalling the packages the error is still the same.
My settings.json file:
{
"TOKEN":"token insterted",
"lower_ip_bound":"11.0.0.0",
"upper_ip_bound":"255.255.255.255",
"threads":1020,
"timeout":6000,
"os":1,
"home-dir": "(directory)",
"user":"Pilot1782",
"password":"Password123",
"guild-id": 963804208430198824,
"server":false,
"server-port":"8080",
"masscan":false,
"time2":1000,
"lin-py":"python3",
"win-py":"%LOCALAPPDATA%\Programs\Python\Python310\python.exe",
"debugging":true,
"testing":false
}

I have this error on the newest dev build.

Version

1.9.1 (Default)

Relevant log output

No response

setup.py is not running correctly

when I run it directly it disappears immediately and when I run it via cmd it says:

C\FIleLocation\bad_copenheimer-main>python setup.py
Traceback (most recent call last):
File "C:\FileLocation\bad_copenheimer-main\setup.py", line 3, in
from funcs import ptime, dprint
File "C:\FileLocation\bad_copenheimer-main\funcs.py", line 5, in
from mcstatus import MinecraftServer
ModuleNotFoundError: No module named 'mcstatus'

what could be the issue here?

[Bug]: Setup.py , Os Error: 22

Contact Details

No response

What happened?

When i run Setup.py i get this out put :

Traceback (most recent call last): File "C:\Users\(My Name)\Downloads\bad_copenheimer-dev-builds\setup.py", line 3, in <module> from funcs import ptime, dprint File "C:\Users\(My Name)\Downloads\bad_copenheimer-dev-builds\funcs.py", line 10, in <module> with open(settings_path, "r") as read_file: # Open the settings file and start defineing variables from it OSError: [Errno 22] Invalid argument: 'C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.10_3.10.1520.0_x64__qbz5n2kfra8p0;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\windows\\System32\\OpenSSH\\;C:\\Program Files\\AdoptOpenJDK\\bin;C:\\Program Files (x86)\\dotnet\\;C:\\Users\\(My Name)\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\luetk\\.dotnet\\tools

My .env is :

TOKEN=My Token PATH=C:\\Users\\(My Name)\\Downloads\\bad_copenheimer\\ GUILDID=56789

It looks like the problem in #33 but i´m using Windows 10 the other issue was under Linux.
Also #41 looks similar.
Is it possibil that it´s the same Problem, or culd i be the problem?
I´m using the dev-builds it looks like the same issue exists on the main branche.

Version

1.9.1 (Default)

Relevant log output

Traceback (most recent call last):
  File "C:\Users\(My Name)\Downloads\bad_copenheimer-dev-builds\setup.py", line 3, in <module>
    from funcs import ptime, dprint
  File "C:\Users\(My Name)\Downloads\bad_copenheimer-dev-builds\funcs.py", line 10, in <module>
    with open(settings_path, "r") as read_file: # Open the settings file and start defineing variables from it
OSError: [Errno 22] Invalid argument: 'C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.10_3.10.1520.0_x64__qbz5n2kfra8p0;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\windows\\System32\\OpenSSH\\;C:\\Program Files\\AdoptOpenJDK\\bin;C:\\Program Files (x86)\\dotnet\\;C:\\Users\\(My Name)\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\luetk\\.dotnet\\tools

[Bug]: dis-bot.pyw

Contact Details

No response

What happened?

I got this error and have no idea what to do about it, so maybe someone can help me

Version

1.9.1 (Default)

Relevant log output

Traceback (most recent call last):
  File "D:\bad_copenheimer-main\dis-bot.pyw", line 17, in <module>
    fncs = funcs(settings_path)
  File "D:\bad_copenheimer-main\funcs.py", line 15, in __init__
    with open(
FileNotFoundError: [Errno 2] No such file or directory: 'D:\\my\\VMware\\VMware Workstation\\bin\\;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\redist\\intel64\\compiler;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft SQL Server\\120\\Tools\\Binn\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn\\;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Users\\User\\AppData\\Local\\Programs\\Python\\Python310\\Scripts;'

The name wasnt wrong

errors everywhere, you have to modify the code a lot to get it even remotely working

[Bug]: No module named 'interactions' When running dis-bot.pyw

Contact Details

bluefish#7723

What happened?

Setup ran well, (after some debugging), but when running dis-bot.pyw it returns an error suggesting it can't find the interactions module. I can't find anywhere in the files where it is created, just referenced in stopper.pyw as well. Couldn't find anything on pip either, not that I expected to. I'm using the latest build on github, ec59933. I tried using 1.9.1 but was unable to get the setup working. Thank you for reading this.

Version

1.9.1 (Default)

Relevant log output

Traceback (most recent call last):
  File "C:\Users\throwaway\Desktop\bad_copenheimer-main\dis-bot.pyw", line 1, in <module>
    import interactions
ModuleNotFoundError: No module named 'interactions'

[Bug]: Scanning terminated after 4 ips

Contact Details

McMelon#9999 on Discord

What happened?

A bug happened!

image

Version

1.7 (Default)

Relevant log output

Scanning 172.65.238.0-172.65.240.255 outputting False
   ____        _           _____

  / __ \      | |         / ____|

 | |  | |_   _| |__   ___| (___   ___ __ _ _ __  _ __   ___ _ __

 | |  | | | | | '_ \ / _ \\___ \ / __/ _` | '_ \| '_ \ / _ \ '__|

 | |__| | |_| | |_) | (_) |___) | (_| (_| | | | | | | |  __/ |

  \___\_\\__,_|_.__/ \___/_____/ \___\__,_|_| |_|_| |_|\___|_|



By @replydev on Telegram

Version 0.3.7

[19:43:04] - Skipping the initial ping due to the few ports inserted

[19:43:04] - Checking Servers...

(172.65.238.110:25565)(32/1234)(RelightProxy - 1.18.x)()

(172.65.239.18:25565)(13/2000)(Velocity 1.8-1.18.1)(Lucky Network [1.8 - 1.17])

(172.65.240.39:25565)(0/0)(§cClosed Beta Network)(NeruxVace Network Closed Beta Network)

(172.65.240.147:25565)(0/0)(TCPShield.com)(Invalid hostname. Please refer to our documentation at docs.tcpshield.com)

[19:43:13] - Scan time: 8 seconds

[19:43:13] - Scan terminated - 4 (4 in total)

[Bug]: Error when running dis-bot.pyw

Contact Details

[email protected]

What happened?

So basically I tried to get this working again recently, and the bot almost started until I got this error. I have no idea what I'm looking at so maybe someone can help me here:

Version

1.9.1 (Default)

Relevant log output

C:\Users\logan\bad_copenheimer>py dis-bot.pyw
Traceback (most recent call last):
File "C:\Users\logan\bad_copenheimer\dis-bot.pyw", line 35, in <module>
guildid = data["guild-id"]
KeyError: 'guild-id'
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x00000115C9FA2F50>
Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x00000115CA301F00>, 403314.937)]']
connector: <aiohttp.connector.TCPConnector object at 0x00000115C9FA3670>

[Bug]: Error with /find command (mongobot)

What happened?

When I try to run /find [player] I get an error.

Operating Sys

Windows

Branch

  • Tried dev-builds

Relevant log output

Task exception was never retrieved
future: <Task finished name='Task-40' coro=<find() done, defined at C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\interactions\client\models\command.py:930> exception=TypeError("find() got an unexpected keyword argument 'player'")>
Traceback (most recent call last):
  File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\interactions\client\models\command.py", line 970, in wrapper
    raise e
  File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\interactions\client\models\command.py", line 939, in wrapper
    return await coro(ctx, *args, **kwargs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^

Execution failed error.

I'm having problems with find and status. It seems to always come up with this error shown in pictures. I am rather new to this and any help would be much appreciated! I would like to also ask what ip bounds would be recommended as well as threads!
Thanks!
image
image

[Bug]: Error when running dis-bot.pyw

Contact Details

Hexa#8026

What happened?

When I wanted to run dis-bot.pyw using "Python3 dis-bot.pyw" I get an error which has been pasted in the Relevant log output section.

Version

1.9.1 (Default)

Branch

main (Default)

Relevant log output

C:\Users\thijm\Downloads\Bad Copenheimer>python3 dis-bot.pyw
Checking scan
Checking status
Checking list
Testing:False, Debugging:True

Starting bot...
Starting emergency bot...
Checking scan
Checking status
Checking list
Process Process-1:
Traceback (most recent call last):
  File "C:\Users\thijm\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\interactions\client\bot.py", line 148, in start
    self._loop.run_until_complete(self._ready())
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0\lib\asyncio\base_events.py", line 649, in run_until_complete
    return future.result()
  File "C:\Users\thijm\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\interactions\client\bot.py", line 377, in _ready
    data = await self._http.get_current_bot_information()
AttributeError: 'NoneType' object has no attribute 'get_current_bot_information'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\thijm\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\interactions\client\bot.py", line 150, in start
    self._loop.run_until_complete(self._logout())
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0\lib\asyncio\base_events.py", line 649, in run_until_complete
    return future.result()
  File "C:\Users\thijm\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\interactions\client\bot.py", line 1540, in _logout
    await self._http._req.close()
AttributeError: 'NoneType' object has no attribute '_req'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0\lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0\lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\thijm\Downloads\Bad Copenheimer\dis-bot.pyw", line 276, in startup
    bot.start()
  File "C:\Users\thijm\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\interactions\client\bot.py", line 155, in start
    self._loop.run_until_complete(self._logout())
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0\lib\asyncio\base_events.py", line 649, in run_until_complete
    return future.result()
  File "C:\Users\thijm\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\interactions\client\bot.py", line 1540, in _logout
    await self._http._req.close()
AttributeError: 'NoneType' object has no attribute '_req'
b'Traceback (most recent call last):\r\n  File "C:\\Users\\thijm\\Downloads\\Bad Copenheimer\\stopper.pyw", line 12, in <module>\r\n    with open(settings_path) as json_file:\r\nOSError: [Errno 22] Invalid argument: \'c:\\\\devkitPro\\\\msys2\\\\usr\\\\bin;C:\\\\Program Files\\\\ImageMagick-7.1.0-Q16-HDRI;C:\\\\Program Files (x86)\\\\Common Files\\\\Intel\\\\Shared Libraries\\\\redist\\\\intel64\\\\compiler;C:\\\\Program Files (x86)\\\\VMware\\\\VMware Player\\\\bin\\\\;C:\\\\Program Files\\\\Common Files\\\\Oracle\\\\Java\\\\javapath;C:\\\\Program Files (x86)\\\\Common Files\\\\Oracle\\\\Java\\\\javapath;C:\\\\WINDOWS\\\\system32;C:\\\\WINDOWS;C:\\\\WINDOWS\\\\System32\\\\Wbem;C:\\\\WINDOWS\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\;C:\\\\WINDOWS\\\\System32\\\\OpenSSH\\\\;C:\\\\Program Files (x86)\\\\NVIDIA Corporation\\\\PhysX\\\\Common;C:\\\\Program Files\\\\NVIDIA Corporation\\\\NVIDIA NvDLISR;C:\\\\Users\\\\thijm\\\\AppData\\\\Local\\\\Programs\\\\Python\\\\Python310;C:\\\\Program Files\\\\dotnet\\\\;C:\\\\Program Files\\\\PuTTY\\\\;C:\\\\Users\\\\thijm\\\\AppData\\\\Local\\\\Programs\\\\Python\\\\Python310;C:\\\\Program Files (x86)\\\\QuickTime\\\\QTSystem\\\\;C:\\\\Program Files\\\\Docker\\\\Docker\\\\resources\\\\bin;C:\\\\ProgramData\\\\DockerDesktop\\\\version-bin;C:\\\\Program Files (x86)\\\\Tailscale IPN;C:\\\\Program Files\\\\nodejs\\\\;C:\\\\Program Files (x86)\\\\FFAIO\\\\bin;C:\\\\Program Files\\\\Go\\\\bin;C:\\\\Program Files\\\\Git\\\\cmd;C:\\\\Program Files (x86)\\\\Windows Kits\\\\10\\\\Windows Performance Toolkit\\\\;C:\\\\ngrok;C:\\\\Users\\\\thijm\\\\AppData\\\\Local\\\\Programs\\\\Python\\\\Python310\\\\Scripts\\\\;C:\\\\Users\\\\thijm\\\\AppData\\\\Local\\\\Programs\\\\Python\\\\Python310\\\\;C:\\\\Users\\\\thijm\\\\AppData\\\\Local\\\\Microsoft\\\\WindowsApps;C:\\\\Users\\\\thijm\\\\AppData\\\\Local\\\\Programs\\\\Microsoft VS Code\\\\bin;C:\\\\Users\\\\thijm\\\\AppData\\\\Roaming\\\\npm;C:\\\\Users\\\\thijm\\\\AppData\\\\Local\\\\GitHubDesktop\\\\bin;C:\\\\Users\\\\thijm\\\\Downloads\\\\AIRSDK\\\\bin;C:\\\\Users\\\\thijm\\\\AppData\\\\Local\\\\spicetify;C:\\\\Users\\\\thijm\\\\.dotnet\\\\tools;C:\\\\Python27;C:\\\\Users\\\\thijm\\\\go\\\\bin;C:\\\\Program Files (x86)\\\\Nmap\'\r\n'

Question

Are you still working on this?

[Bug]:

Contact Details

No response

What happened?

So basically when I try to run Setup.py it opens and closes after 1 second.

{
"TOKEN":"filled",
"lower_ip_bound":"172.65.238.255",
"upper_ip_bound":"172.65.240.255",
"threads":1020,
"timeout":6000,
"os":1,
"home-dir": "C:\Users\username\bad_copenheimer-main",
"user":"Pilot1782",
"password":"Password123",
"guild-id": filled,
"server":true,
"server-port":"8080",
"masscan":false,
"time2":1000,
"lin-py":"python3",
"win-py":"%LOCALAPPDATA%\Programs\Python\Python310\python.exe",
"debugging":true,
"testing":true
}

Version

1.9.1 (Default)

Relevant log output

No response
image

[Bug]: Error dis-bot.pyw

Contact Details

No response

What happened?

I don`t know what happened

Version

1.9.1 (Default)

Branch

main (Default)

Relevant log output

Testing:False, Debugging:False

Process Process-1:
Traceback (most recent call last):
  File "/home/hass/.local/lib/python3.10/site-packages/interactions/client/bot.py", line 148, in start
    self._loop.run_until_complete(self._ready())
  File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
    return future.result()
  File "/home/hass/.local/lib/python3.10/site-packages/interactions/client/bot.py", line 377, in _ready
    data = await self._http.get_current_bot_information()
AttributeError: 'NoneType' object has no attribute 'get_current_bot_information'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/hass/.local/lib/python3.10/site-packages/interactions/client/bot.py", line 150, in start
    self._loop.run_until_complete(self._logout())
  File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
    return future.result()
  File "/home/hass/.local/lib/python3.10/site-packages/interactions/client/bot.py", line 1540, in _logout
    await self._http._req.close()
AttributeError: 'NoneType' object has no attribute '_req'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/home/hass/bad_copenheimer-main/dis-bot.pyw", line 276, in startup
    bot.start()
  File "/home/hass/.local/lib/python3.10/site-packages/interactions/client/bot.py", line 155, in start
    self._loop.run_until_complete(self._logout())
  File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
    return future.result()
  File "/home/hass/.local/lib/python3.10/site-packages/interactions/client/bot.py", line 1540, in _logout
    await self._http._req.close()
AttributeError: 'NoneType' object has no attribute '_req'
b'Traceback (most recent call last):\n  File "/home/hass/bad_copenheimer-main/stopper.pyw", line 5, in <module>\n    from discord.ext import commands\nModuleNotFoundError: No module named \'discord\'\n'

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.