movsesyanpv / clanbot Goto Github PK
View Code? Open in Web Editor NEWDiscord bot for Destiny 2 reset updates and clan leaderboards with LFG functionality
License: BSD 3-Clause "New" or "Revised" License
Discord bot for Destiny 2 reset updates and clan leaderboards with LFG functionality
License: BSD 3-Clause "New" or "Revised" License
<@!677145368894373965> update spider
File "/home/movsesyanpv/clanBot/main.py", line 429, in post_embed
last = self.hist_cursor.execute('''SELECT {} FROM {}'''.format(upd_type, server.name.replace('\'', '').replace(' ', '_')))
sqlite3.OperationalError: no such table: ❀Tomorrow❀
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/movsesyanpv/clanBot/main.py", line 353, in on_message
await self.force_update(upd_type)
File "/home/movsesyanpv/clanBot/main.py", line 101, in force_update
await self.universal_update(self.data.get_spider, 'spider', 86400)
File "/home/movsesyanpv/clanBot/main.py", line 417, in universal_update
await self.post_embed(name, self.data.data[name], time_to_delete)
File "/home/movsesyanpv/clanBot/main.py", line 436, in post_embed
self.hist_cursor.execute('''ALTER TABLE {} ADD COLUMN {} INTEGER'''.format(server.name.replace('\'', '').replace(' ', '_'), upd_type))
sqlite3.OperationalError: no such table: ❀Tomorrow❀
<@!677145368894373965> update weekly daily spider
File "/home/movsesyanpv/clanBot/main.py", line 430, in post_embed
last = self.hist_cursor.execute('''SELECT {} FROM {}'''.format(upd_type, server.name.replace('\'', '').replace(' ', '_').encode('ascii', 'ignore').decode('ascii')))
sqlite3.OperationalError: no such table: Poebashit
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/movsesyanpv/clanBot/main.py", line 354, in on_message
await self.force_update(upd_type)
File "/home/movsesyanpv/clanBot/main.py", line 96, in force_update
await self.universal_update(self.data.get_nightfall820, 'nightfalls820', 604800)
File "/home/movsesyanpv/clanBot/main.py", line 418, in universal_update
await self.post_embed(name, self.data.data[name], time_to_delete)
File "/home/movsesyanpv/clanBot/main.py", line 437, in post_embed
self.hist_cursor.execute('''ALTER TABLE {} ADD COLUMN {} INTEGER'''.format(server.name.replace('\'', '').replace(' ', '_'), upd_type))
sqlite3.OperationalError: duplicate column name: nightfalls820
<@!677145368894373965> lfg
-n: Тест
-t: 13.02.2020
-d: Тест
-s: 3
-m: manual
File "/home/movsesyanpv/clanBot/main.py", line 314, in on_message
self.raid.add(message)
File "/home/movsesyanpv/clanBot/raid.py", line 41, in add
args = self.parse_args(content, message, is_init=True)
File "/home/movsesyanpv/clanBot/raid.py", line 97, in parse_args
time_str = '{}:{}'.format(str_arg[1], str_arg[2])
IndexError: list index out of range
<@!677145368894373965> lfg
-n: Шашлычку
-t: 13.02.2020
-d: Пить пиво
-s: 4
-m: manual
-l: 4 часа
File "/home/movsesyanpv/clanBot/main.py", line 313, in on_message
self.raid.add(message)
File "/home/movsesyanpv/clanBot/raid.py", line 41, in add
args = self.parse_args(content, message, is_init=True)
File "/home/movsesyanpv/clanBot/raid.py", line 97, in parse_args
time_str = '{}:{}'.format(str_arg[1], str_arg[2])
IndexError: list index out of range
File "/home/movsesyanpv/clanBot/main.py", line 195, in on_raw_reaction_add
if self.raid.is_raid(message.id):
File "/home/movsesyanpv/clanBot/raid.py", line 195, in is_raid
cell = self.c.execute('SELECT group_id FROM raid WHERE group_id=?', (message_id,))
sqlite3.OperationalError: no such table: raid
<@!677145368894373965> update weekly daily spider xur
File "/home/movsesyanpv/clanBot/main.py", line 429, in post_embed
last = self.hist_cursor.execute('''SELECT {} FROM {}'''.format(upd_type, server.name.replace('\'', '').replace(' ', '_')))
sqlite3.OperationalError: no such table: ❀Tomorrow❀
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/movsesyanpv/clanBot/main.py", line 353, in on_message
await self.force_update(upd_type)
File "/home/movsesyanpv/clanBot/main.py", line 95, in force_update
await self.universal_update(self.data.get_nightfall820, 'nightfalls820', 604800)
File "/home/movsesyanpv/clanBot/main.py", line 417, in universal_update
await self.post_embed(name, self.data.data[name], time_to_delete)
File "/home/movsesyanpv/clanBot/main.py", line 436, in post_embed
self.hist_cursor.execute('''ALTER TABLE {} ADD COLUMN {} INTEGER'''.format(server.name.replace('\'', '').replace(' ', '_'), upd_type))
sqlite3.OperationalError: no such table: ❀Tomorrow❀
Research the possibility of setting up a LFG without complicated syntax of the current method.
File "/home/movsesyanpv/SoTbot/main.py", line 298, in on_message
if 'lfg' in message.content.lower().splitlines()[0] and self.user in message.mentions:
IndexError: list index out of range
File "/home/movsesyanpv/clanBot/main.py", line 189, in on_raw_reaction_add
await reaction.remove(user)
File "/home/movsesyanpv/.local/lib/python3.6/site-packages/discord/reaction.py", line 122, in remove
await self.message.remove_reaction(self.emoji, user)
File "/home/movsesyanpv/.local/lib/python3.6/site-packages/discord/message.py", line 967, in remove_reaction
await self._state.http.remove_reaction(self.channel.id, self.id, emoji, member.id)
File "/home/movsesyanpv/.local/lib/python3.6/site-packages/discord/http.py", line 216, in request
raise Forbidden(r, data)
discord.errors.Forbidden: 403 FORBIDDEN (error code: 50013): Missing Permissions
Implement a way to create a group that is not targeted at some future time but is for a "right now" game.
<@!677145368894373965> lfg
-at: raid
-n: Что-то
-t: 13-02-2020 01:00 +0300
File "/home/movsesyanpv/clanBot/main.py", line 334, in on_message
await message.delete()
File "/home/movsesyanpv/.local/lib/python3.6/site-packages/discord/message.py", line 762, in delete
await self._state.http.delete_message(self.channel.id, self.id)
File "/home/movsesyanpv/.local/lib/python3.6/site-packages/discord/http.py", line 216, in request
raise Forbidden(r, data)
discord.errors.Forbidden: 403 FORBIDDEN (error code: 50013): Missing Permissions
Update <@645908801584889857> daily
File "/home/movsesyanpv/SoTbot/main.py", line 353, in on_message
await self.force_update(upd_type)
File "/home/movsesyanpv/SoTbot/main.py", line 87, in force_update
await self.universal_update(self.data.get_heroic_story, 'heroicstory', 86400)
File "/home/movsesyanpv/SoTbot/main.py", line 415, in universal_update
if not self.data.data['api_maintenance'] and not self.data.data['api_fucked_up']:
KeyError: 'api_fucked_up'
<@!677145368894373965> lfg
-at: raid
-n: Что-то
-t: 13-02-2020 01:00 +0300
File "/home/movsesyanpv/clanBot/main.py", line 324, in on_message
out = await message.channel.send(content=msg)
File "/home/movsesyanpv/.local/lib/python3.6/site-packages/discord/abc.py", line 856, in send
data = await state.http.send_message(channel.id, content, tts=tts, embed=embed, nonce=nonce)
File "/home/movsesyanpv/.local/lib/python3.6/site-packages/discord/http.py", line 216, in request
raise Forbidden(r, data)
discord.errors.Forbidden: 403 FORBIDDEN (error code: 50013): Missing Permissions
<@!677145368894373965> lfg
-n: Тест
-t: 13.02.2020
-d: Тест
-s: 3
-m: manual
File "/home/movsesyanpv/clanBot/main.py", line 314, in on_message
self.raid.add(message)
File "/home/movsesyanpv/clanBot/raid.py", line 41, in add
args = self.parse_args(content, message, is_init=True)
File "/home/movsesyanpv/clanBot/raid.py", line 97, in parse_args
time_str = '{}:{}'.format(str_arg[1], str_arg[2])
IndexError: list index out of range
This will allow to use custom role names
File "/home/movsesyanpv/clanBot/main.py", line 170, in on_raw_reaction_add
message = await message.fetch_message(payload.message_id)
File "/home/movsesyanpv/.local/lib/python3.6/site-packages/discord/abc.py", line 921, in fetch_message
data = await self._state.http.get_message(channel.id, id)
File "/home/movsesyanpv/.local/lib/python3.6/site-packages/discord/http.py", line 218, in request
raise NotFound(r, data)
discord.errors.NotFound: 404 NOT FOUND (error code: 10008): Unknown Message
This would eliminate potential race conditions on Tuesday and Friday resets
<@!677145368894373965> update weekly daily spider
File "/home/movsesyanpv/clanBot/main.py", line 354, in on_message
await self.force_update(upd_type)
File "/home/movsesyanpv/clanBot/main.py", line 97, in force_update
await self.universal_update(self.data.get_ordeal, 'ordeal', 604800)
File "/home/movsesyanpv/clanBot/main.py", line 420, in universal_update
await self.post_embed(name, self.data.data[name], time_to_delete)
File "/home/movsesyanpv/clanBot/main.py", line 458, in post_embed
self.hist_cursor.execute('''UPDATE \'{}\' SET {}=?'''.format(server.name.replace('\'', '').replace(' ', '_'), upd_type), (hist, ))
sqlite3.OperationalError: no such table: Poebashit😎
File "/home/movsesyanpv/clanBot/main.py", line 195, in on_raw_reaction_add
if self.raid.is_raid(message.id):
File "/home/movsesyanpv/clanBot/raid.py", line 195, in is_raid
cell = self.c.execute('SELECT group_id FROM raid WHERE group_id=?', (message_id,))
sqlite3.OperationalError: no such table: raid
<@!677145368894373965> update
File "/home/movsesyanpv/clanBot/main.py", line 352, in on_message
await message.delete()
File "/home/movsesyanpv/.local/lib/python3.6/site-packages/discord/message.py", line 762, in delete
await self._state.http.delete_message(self.channel.id, self.id)
File "/home/movsesyanpv/.local/lib/python3.6/site-packages/discord/http.py", line 216, in request
raise Forbidden(r, data)
discord.errors.Forbidden: 403 FORBIDDEN (error code: 50013): Missing Permissions
File "/home/movsesyanpv/clanBot/main.py", line 189, in on_raw_reaction_add
await reaction.remove(user)
File "/home/movsesyanpv/.local/lib/python3.6/site-packages/discord/reaction.py", line 122, in remove
await self.message.remove_reaction(self.emoji, user)
File "/home/movsesyanpv/.local/lib/python3.6/site-packages/discord/message.py", line 967, in remove_reaction
await self._state.http.remove_reaction(self.channel.id, self.id, emoji, member.id)
File "/home/movsesyanpv/.local/lib/python3.6/site-packages/discord/http.py", line 216, in request
raise Forbidden(r, data)
discord.errors.Forbidden: 403 FORBIDDEN (error code: 50013): Missing Permissions
<@!677145368894373965> update [spider]
File "/home/movsesyanpv/clanBot/main.py", line 429, in post_embed
last = self.hist_cursor.execute('''SELECT {} FROM {}'''.format(upd_type, server.name.replace('\'', '').replace(' ', '_')))
sqlite3.OperationalError: no such table: ❀Tomorrow❀
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/movsesyanpv/clanBot/main.py", line 353, in on_message
await self.force_update(upd_type)
File "/home/movsesyanpv/clanBot/main.py", line 101, in force_update
await self.universal_update(self.data.get_spider, 'spider', 86400)
File "/home/movsesyanpv/clanBot/main.py", line 417, in universal_update
await self.post_embed(name, self.data.data[name], time_to_delete)
File "/home/movsesyanpv/clanBot/main.py", line 436, in post_embed
self.hist_cursor.execute('''ALTER TABLE {} ADD COLUMN {} INTEGER'''.format(server.name.replace('\'', '').replace(' ', '_'), upd_type))
sqlite3.OperationalError: no such table: ❀Tomorrow❀
File "/home/movsesyanpv/clanBot/main.py", line 189, in on_raw_reaction_add
await reaction.remove(user)
File "/home/movsesyanpv/.local/lib/python3.6/site-packages/discord/reaction.py", line 122, in remove
await self.message.remove_reaction(self.emoji, user)
File "/home/movsesyanpv/.local/lib/python3.6/site-packages/discord/message.py", line 967, in remove_reaction
await self._state.http.remove_reaction(self.channel.id, self.id, emoji, member.id)
File "/home/movsesyanpv/.local/lib/python3.6/site-packages/discord/http.py", line 216, in request
raise Forbidden(r, data)
discord.errors.Forbidden: 403 FORBIDDEN (error code: 50013): Missing Permissions
<@!645908801584889857> update spider
File "/home/movsesyanpv/SoTbot/main.py", line 429, in post_embed
last = self.hist_cursor.execute('''SELECT {} FROM {}'''.format(upd_type, server.name.replace('\'', '').replace(' ', '_')))
sqlite3.OperationalError: no such table: Poebashit😎
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/movsesyanpv/SoTbot/main.py", line 354, in on_message
await self.force_update(upd_type)
File "/home/movsesyanpv/SoTbot/main.py", line 101, in force_update
await self.universal_update(self.data.get_spider, 'spider', 86400)
File "/home/movsesyanpv/SoTbot/main.py", line 417, in universal_update
await self.post_embed(name, self.data.data[name], time_to_delete)
File "/home/movsesyanpv/SoTbot/main.py", line 436, in post_embed
self.hist_cursor.execute('''ALTER TABLE {} ADD COLUMN {} INTEGER'''.format(server.name.replace('\'', '').replace(' ', '_'), upd_type))
sqlite3.OperationalError: no such table: Poebashit😎
The jobs are added on every on_ready() event, so sometimes they begin to duplicate.
<@!677145368894373965> lfg
-n: Шашлычку
-t: 13.02.2020
-d: Пить пиво
-s: 4
-m: manual
-l: 4 часа
File "/home/movsesyanpv/clanBot/main.py", line 313, in on_message
self.raid.add(message)
File "/home/movsesyanpv/clanBot/raid.py", line 41, in add
args = self.parse_args(content, message, is_init=True)
File "/home/movsesyanpv/clanBot/raid.py", line 97, in parse_args
time_str = '{}:{}'.format(str_arg[1], str_arg[2])
IndexError: list index out of range
<@!677145368894373965> lfg
-n: Шашлычку
-t: 13.02.2020
-d: Пить пиво
-s: 4
-m: manual
File "/home/movsesyanpv/clanBot/main.py", line 314, in on_message
self.raid.add(message)
File "/home/movsesyanpv/clanBot/raid.py", line 41, in add
args = self.parse_args(content, message, is_init=True)
File "/home/movsesyanpv/clanBot/raid.py", line 97, in parse_args
time_str = '{}:{}'.format(str_arg[1], str_arg[2])
IndexError: list index out of range
File "/home/movsesyanpv/clanBot/main.py", line 189, in on_raw_reaction_add
await reaction.remove(user)
File "/home/movsesyanpv/.local/lib/python3.6/site-packages/discord/reaction.py", line 122, in remove
await self.message.remove_reaction(self.emoji, user)
File "/home/movsesyanpv/.local/lib/python3.6/site-packages/discord/message.py", line 967, in remove_reaction
await self._state.http.remove_reaction(self.channel.id, self.id, emoji, member.id)
File "/home/movsesyanpv/.local/lib/python3.6/site-packages/discord/http.py", line 216, in request
raise Forbidden(r, data)
discord.errors.Forbidden: 403 FORBIDDEN (error code: 50013): Missing Permissions
Update <@677145368894373965> weekly daily spider
File "/home/movsesyanpv/clanBot/main.py", line 429, in post_embed
last = self.hist_cursor.execute('''SELECT {} FROM {}'''.format(upd_type, server.name.replace('\'', '').replace(' ', '_')))
sqlite3.OperationalError: no such table: ❀Tomorrow❀
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/movsesyanpv/clanBot/main.py", line 353, in on_message
await self.force_update(upd_type)
File "/home/movsesyanpv/clanBot/main.py", line 95, in force_update
await self.universal_update(self.data.get_nightfall820, 'nightfalls820', 604800)
File "/home/movsesyanpv/clanBot/main.py", line 417, in universal_update
await self.post_embed(name, self.data.data[name], time_to_delete)
File "/home/movsesyanpv/clanBot/main.py", line 436, in post_embed
self.hist_cursor.execute('''ALTER TABLE {} ADD COLUMN {} INTEGER'''.format(server.name.replace('\'', '').replace(' ', '_'), upd_type))
sqlite3.OperationalError: no such table: ❀Tomorrow❀
Stop
File "/home/movsesyanpv/SoTbot/main.py", line 261, in on_message
await self.logout()
File "/home/movsesyanpv/.local/lib/python3.6/site-packages/discord/client.py", line 414, in logout
await self.close()
File "/home/movsesyanpv/.local/lib/python3.6/site-packages/discord/client.py", line 510, in close
await self.ws.close()
File "/home/movsesyanpv/.local/lib/python3.6/site-packages/discord/gateway.py", line 537, in close
await super().close(code, reason)
File "/home/movsesyanpv/.local/lib/python3.6/site-packages/websockets/protocol.py", line 419, in close
yield from asyncio.shield(self.close_connection_task)
concurrent.futures._base.CancelledError
<@!677145368894373965> lfg
-at: raid
-n: Что-то
-t: 13-02-2020 01:00 +0300
File "/home/movsesyanpv/clanBot/main.py", line 324, in on_message
out = await message.channel.send(content=msg)
File "/home/movsesyanpv/.local/lib/python3.6/site-packages/discord/abc.py", line 856, in send
data = await state.http.send_message(channel.id, content, tts=tts, embed=embed, nonce=nonce)
File "/home/movsesyanpv/.local/lib/python3.6/site-packages/discord/http.py", line 216, in request
raise Forbidden(r, data)
discord.errors.Forbidden: 403 FORBIDDEN (error code: 50013): Missing Permissions
<@!677145368894373965> update weekly daily spider
File "/home/movsesyanpv/clanBot/main.py", line 430, in post_embed
last = self.hist_cursor.execute('''SELECT {} FROM {}'''.format(upd_type, server.name.replace('\'', '').replace(' ', '_').encode('ascii', 'ignore').decode('ascii')))
sqlite3.OperationalError: no such table: Tomorrow
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/movsesyanpv/clanBot/main.py", line 354, in on_message
await self.force_update(upd_type)
File "/home/movsesyanpv/clanBot/main.py", line 96, in force_update
await self.universal_update(self.data.get_nightfall820, 'nightfalls820', 604800)
File "/home/movsesyanpv/clanBot/main.py", line 418, in universal_update
await self.post_embed(name, self.data.data[name], time_to_delete)
File "/home/movsesyanpv/clanBot/main.py", line 437, in post_embed
self.hist_cursor.execute('''ALTER TABLE {} ADD COLUMN {} INTEGER'''.format(server.name.replace('\'', '').replace(' ', '_'), upd_type))
sqlite3.OperationalError: duplicate column name: nightfalls820
<@!677145368894373965> update weekly daily spider
File "/home/movsesyanpv/clanBot/main.py", line 432, in post_embed
last = self.hist_cursor.execute('''SELECT {} FROM {}'''.format(upd_type, server.name.replace('\'', '').replace(' ', '_').encode('ascii', 'ignore').decode('ascii')))
sqlite3.OperationalError: no such table: Poebashit
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/movsesyanpv/clanBot/main.py", line 354, in on_message
await self.force_update(upd_type)
File "/home/movsesyanpv/clanBot/main.py", line 96, in force_update
await self.universal_update(self.data.get_nightfall820, 'nightfalls820', 604800)
File "/home/movsesyanpv/clanBot/main.py", line 420, in universal_update
await self.post_embed(name, self.data.data[name], time_to_delete)
File "/home/movsesyanpv/clanBot/main.py", line 439, in post_embed
self.hist_cursor.execute('''ALTER TABLE {} ADD COLUMN {} INTEGER'''.format(server.name.replace('\'', '').replace(' ', '_'), upd_type))
sqlite3.OperationalError: duplicate column name: nightfalls820
<@!677145368894373965> lfg
-n: Куда-то
-t: 13-02-2020 00:00 +0300
-d: Бухнуть
-s: 3
-m: manual
File "/home/movsesyanpv/clanBot/main.py", line 334, in on_message
await message.delete()
File "/home/movsesyanpv/.local/lib/python3.6/site-packages/discord/message.py", line 762, in delete
await self._state.http.delete_message(self.channel.id, self.id)
File "/home/movsesyanpv/.local/lib/python3.6/site-packages/discord/http.py", line 216, in request
raise Forbidden(r, data)
discord.errors.Forbidden: 403 FORBIDDEN (error code: 50013): Missing Permissions
File "/home/movsesyanpv/clanBot/main.py", line 195, in on_raw_reaction_add
if self.raid.is_raid(message.id):
File "/home/movsesyanpv/clanBot/raid.py", line 195, in is_raid
cell = self.c.execute('SELECT group_id FROM raid WHERE group_id=?', (message_id,))
sqlite3.OperationalError: no such table: raid
File "/home/movsesyanpv/clanBot/main.py", line 195, in on_raw_reaction_add
if self.raid.is_raid(message.id):
File "/home/movsesyanpv/clanBot/raid.py", line 195, in is_raid
cell = self.c.execute('SELECT group_id FROM raid WHERE group_id=?', (message_id,))
sqlite3.OperationalError: no such table: raid
<@!645908801584889857> update seasonal
File "/home/movsesyanpv/SoTbot/main.py", line 386, in on_message
await self.force_update(upd_type)
File "/home/movsesyanpv/SoTbot/main.py", line 119, in force_update
await self.universal_update(self.data.get_seasonal_eververse, 'seasonal_eververse', channels=self.seasonal_ch)
File "/home/movsesyanpv/SoTbot/main.py", line 483, in universal_update
await self.post_embed(name, self.data.data[name], time_to_delete, channels)
File "/home/movsesyanpv/SoTbot/main.py", line 530, in post_embed
await channel.delete_messages(last)
File "/home/movsesyanpv/.local/lib/python3.6/site-packages/discord/channel.py", line 293, in delete_messages
raise ClientException('Can only bulk delete messages up to 100 messages')
discord.errors.ClientException: Can only bulk delete messages up to 100 messages
<@651742407217512478> edit lfg rlj93G0yJgN4
-n: lul
File "D:/pmovsesyan/SoTbot/main.py", line 294, in on_message
old_lfg = await old_lfg.fetch_message(group_id[0])
AttributeError: 'NoneType' object has no attribute 'fetch_message'
This will allow static teams to look for stand-ins.
Implement a way of forming the list of participants through a DM interaction with the bot, instead of the current "first come - first serve" method.
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.