File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed
pychan/commands/utilities Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -93,19 +93,7 @@ async def list(self, ctx: Context):
93
93
async def force_update (self , ctx : Context ):
94
94
'''Wymusza natychmiastowe zaktualizowanie rankingu'''
95
95
if self .tracked_channels .get (ctx .channel .id ) is not None :
96
- tracked_channel = self .tracked_channels [ctx .channel .id ]
97
- data = self .fetch_data (tracked_channel .leaderboard_id )
98
- extracted_data = self .parse_data (data )
99
- rows = self .get_rows (extracted_data )
100
- messages = self .split_message (rows )
101
- for i , msg in enumerate (tracked_channel .messages ):
102
- if i < len (messages ):
103
- await msg .edit (content = messages [i ])
104
- else :
105
- await msg .delete ()
106
- for i in range (len (tracked_channel .messages ), len (messages )):
107
- new_msg = await tracked_channel .messages [0 ].channel .send (messages [i ])
108
- tracked_channel .messages .append (new_msg )
96
+ self .loop .restart ()
109
97
else :
110
98
await ctx .reply ("Śledzenie nawet nie jest włączone!" )
111
99
You can’t perform that action at this time.
0 commit comments