mirror of
https://github.com/brandons209/Red-bot-Cogs.git
synced 2024-06-02 10:34:54 +12:00
final bug fixes (hopefully)
This commit is contained in:
parent
3d169f704b
commit
89d7b50d1c
|
@ -1290,7 +1290,7 @@ class ActivityLogger(commands.Cog):
|
|||
save_path = str(PATH / f"plot_{ctx.message.id}.png")
|
||||
table_save_path = str(PATH / f"plot_data_{ctx.message.id}.txt")
|
||||
|
||||
plt.bar(df.index[:10], df["num_messages"][:10], width=0.5)
|
||||
plt.bar(df.iloc[:10].index, df.iloc[:10, "num_messages"], width=0.5)
|
||||
|
||||
# make graph look nice
|
||||
plt.title(
|
||||
|
@ -1421,7 +1421,7 @@ class ActivityLogger(commands.Cog):
|
|||
save_path = str(PATH / f"plot_{ctx.message.id}.png")
|
||||
table_save_path = str(PATH / f"plot_data_{ctx.message.id}.txt")
|
||||
|
||||
plt.bar(df.index[:10], df["num_messages"][:10], width=0.5)
|
||||
plt.bar(df.iloc[:10].index, df.iloc[:10, "num_messages"], width=0.5)
|
||||
|
||||
# make graph look nice
|
||||
plt.title(
|
||||
|
@ -1795,9 +1795,6 @@ class ActivityLogger(commands.Cog):
|
|||
else:
|
||||
for message in data:
|
||||
try:
|
||||
message.split("(id:")[1].split("):")[0]
|
||||
except:
|
||||
continue
|
||||
if "replied to" in message.split("(id:")[1].split("):")[0]:
|
||||
|
||||
# add correlation to matrix
|
||||
|
@ -1817,6 +1814,8 @@ class ActivityLogger(commands.Cog):
|
|||
# add 1 to weight between the two users
|
||||
adj_matrix.loc[str(user1.name), str(user2.name)] += 1
|
||||
adj_matrix.loc[str(user2.name), str(user1.name)] += 1
|
||||
except IndexError:
|
||||
continue
|
||||
|
||||
await self.loop.run_in_executor(
|
||||
None,
|
||||
|
|
Loading…
Reference in a new issue