wardpearce / sourcequerybot Goto Github PK
View Code? Open in Web Editor NEWUtilizing A2S, this discord bot allows you to display servers maps, player count & ip what refreshes at a set interval.
License: GNU General Public License v3.0
Utilizing A2S, this discord bot allows you to display servers maps, player count & ip what refreshes at a set interval.
License: GNU General Public License v3.0
When the bit restarts, the old messages remain. Would be good for it to delete the old messages however do not delete all messages in the channel as we use it in our information channel.
Traceback (most recent call last):
File "run.py", line 36, in query_loop
async with aiohttp_session.get("https://districtnine.host/api/serverquery/?ip={}".format(values["server-ips"])) as r:
File "/usr/local/lib/python3.6/site-packages/aiohttp/client.py", line 1005, in aenter
self._resp = await self._coro
File "/usr/local/lib/python3.6/site-packages/aiohttp/client.py", line 476, in _request
timeout=real_timeout
File "/usr/local/lib/python3.6/site-packages/aiohttp/connector.py", line 522, in connect
proto = await self._create_connection(req, traces, timeout)
File "/usr/local/lib/python3.6/site-packages/aiohttp/connector.py", line 854, in _create_connection
req, traces, timeout)
File "/usr/local/lib/python3.6/site-packages/aiohttp/connector.py", line 959, in _create_direct_connection
raise ClientConnectorError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host districtnine.host:443 ssl:None [No address associated with hostname]
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7fae7faeaba8>
Task exception was never retrieved
future: <Task finished coro=<background_task() done, defined at /home/administrator/discordbots/Discord-Server-List-master/server-list.py:27> exception=ServerDisconnectedError(None,)>
Traceback (most recent call last):
File "/home/administrator/discordbots/Discord-Server-List-master/server-list.py", line 37, in background_task
async with session.get("http://districtnine.host/api/serverquery/?ip={}".format(values["server-ips"])) as r:
File "/usr/local/lib/python3.6/site-packages/aiohttp/client.py", line 1005, in aenter
self._resp = await self._coro
File "/usr/local/lib/python3.6/site-packages/aiohttp/client.py", line 497, in _request
await resp.start(conn)
File "/usr/local/lib/python3.6/site-packages/aiohttp/client_reqrep.py", line 844, in start
message, payload = await self._protocol.read() # type: ignore # noqa
File "/usr/local/lib/python3.6/site-packages/aiohttp/streams.py", line 588, in read
await self._waiter
aiohttp.client_exceptions.ServerDisconnectedError: None
Hi, the bot throws me this error on heroku 2020-08-19T21: 11: 26.094454 + 00: 00 app [worker.1]: [WARNING]: 'ServerModel' object is not subscriptable and does not show the discord presence.
In pc throws me this error: Please wait I'm closing.
Traceback (most recent call last):
File "run.py", line 5, in
client.run("token")
File "D:\Usuario\Desktop\Programas\lib\site-packages\discord\client.py", line 640, in run
return future.result()
File "D:\Usuario\Desktop\Programas\lib\site-packages\discord\client.py", line 621, in runner
await self.start(*args, **kwargs)
File "D:\Usuario\Desktop\Programas\lib\site-packages\discord\client.py", line 585, in start
await self.connect(reconnect=reconnect)
File "D:\Usuario\Desktop\Programas\lib\site-packages\discord\client.py", line 499, in connect
await self._connect()
File "D:\Usuario\Desktop\Programas\lib\site-packages\discord\client.py", line 463, in _connect
await self.ws.poll_event()
File "D:\Usuario\Desktop\Programas\lib\site-packages\discord\gateway.py", line 471, in poll_event
await self.received_message(msg)
File "D:\Usuario\Desktop\Programas\lib\site-packages\discord\gateway.py", line 425, in received_message
func(data)
File "D:\Usuario\Desktop\Programas\lib\site-packages\discord\state.py", line 750, in parse_guild_create
guild = self._get_create_guild(data)
File "D:\Usuario\Desktop\Programas\lib\site-packages\discord\state.py", line 725, in _get_create_guild
guild._from_data(data)
File "D:\Usuario\Desktop\Programas\lib\site-packages\discord\guild.py", line 297, in _from_data
self._sync(guild)
File "D:\Usuario\Desktop\Programas\lib\site-packages\discord\guild.py", line 324, in _sync
self._add_channel(TextChannel(guild=self, data=c, state=self._state))
File "D:\Usuario\Desktop\Programas\lib\site-packages\discord\channel.py", line 107, in init
self._update(guild, data)
File "D:\Usuario\Desktop\Programas\lib\site-packages\discord\channel.py", line 131, in _update
self._fill_overwrites(data)
File "D:\Usuario\Desktop\Programas\lib\site-packages\discord\abc.py", line 294, in _fill_overwrites
self._overwrites.append(_Overwrites(id=overridden_id, **overridden))
TypeError: new() got an unexpected keyword argument 'deny_new'
The errors started from nowhere :/, I use the bot for my game server community, I tried the updated version and it doesn't work either.
Any help?
File "run.py", line 1, in <module> from SourceQueryBot import SourceQueryBot File "/root/Tessste/SourceQueryBot/__init__.py", line 26 def __init__(self, catagories: list, ^ SyntaxError: invalid syntax
Task exception was never retrieved
future: <Task finished coro=<query_loop() done, defined at run.py:25> exception=RuntimeError('Session is closed',)>
Traceback (most recent call last):
File "run.py", line 37, in query_loop
async with session.get("https://districtnine.host/api/serverquery/?ip={}".format(values["server-ips"])) as r:
File "/usr/local/lib/python3.6/site-packages/aiohttp/client.py", line 1005, in aenter
self._resp = await self._coro
File "/usr/local/lib/python3.6/site-packages/aiohttp/client.py", line 348, in _request
raise RuntimeError('Session is closed')
RuntimeError: Session is closed
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.