JDsProjects / JDBot

the official JDBot rewrite :D
MIT License
16 stars 29 forks source link

log ideas #125

Open JDJGInc opened 10 months ago

JDJGInc commented 10 months ago

Right here will include some code.

JDJGInc commented 10 months ago
embed_message=discord.Embed(title=f"{member} just joined {member.guild.name}",timestamp=discord.utils.utcnow(),color=random.randint(0, 16777215))
  embed_message.set_footer(text=f"User ID: {member.id}")

https://discord.com/channels/774561547930304536/1073425203184549958

countied from there.

JDJGInc commented 10 months ago

https://github.com/JDsProjects/JDJGBotSupreme/commit/dc7c17c8b22b269b1211a25580b14efc416da8dc

(old commit with some designs)

JDJGInc commented 10 months ago

https://github.com/JDsProjects/JDJGBotSupreme/commit/50ff62460482539cd5357f498c9fafa1f230cfbb

(some handling code)

JDJGInc commented 10 months ago

on_guild_update on_guild_emojis_update on_guild_stickers_update

on_invite_create on_invite_delete

(invite stuff is If I want to track invites in case of a ton of invites being made not really needed due to the members beta)

https://discordpy.readthedocs.io/en/stable/api.html?highlight=on_ready#discord.on_integration_create (more in integrations maybe)?

JDJGInc commented 10 months ago

on_message_edit -> logging for message changes if possible. on_message_delete -> checking for deleted messages

on_bulk_message_delete -> speacil pastebin of deleted messages if a ton are deleted so moderators have it.

on_guild_role_create -> role creation on_guild_role_delete -> role deletion

on_guild_role_update -> role update

https://discordpy.readthedocs.io/en/stable/api.html?highlight=on_ready#scheduled-events -> unsure

Unsure about stages

all on regular threads not raw versions

voice stuff is yes

and that's all for all events.

JDJGInc commented 10 months ago

Project to solve this issue:

https://github.com/JDsProjects/JDBotLogsEmbed

JDJGInc commented 10 months ago

https://github.com/JDsProjects/JDBot/projects/1#card-90383304

JDJGInc commented 10 months ago

If you wish to discuss this more deeply you can join

https://discord.gg/eVQH2ZRYpz -> bot support and communtity

https://discord.gg/MPNTtFH7pH -> headqurters

JDJGInc commented 9 months ago

on_member_join on_member_remove on_member_unban on_member_ban

Complete

ScorprianDev commented 9 months ago

Embed looks wonky with the two images how they are. I would suggest user icon as thumbnail and guild icon as footer image. Or just having the user icon cause the guild icon is made redundant by the server title.

JDJGInc commented 9 months ago

Was decided before the current design in https://github.com/JDsProjects/JDBotLogsEmbed

Because of users missing information therefore it will require a ton of testing plus a bit of both looking at.

JDJGInc commented 9 months ago

Completed:

on_member_join on_member_remove on_member_update (on_user_update) not needed as member allows us to actually sort this.

on_member_ban on_member_unban

on_member_update is wip

JDJGInc commented 9 months ago

on_member_update types:

nickname -> covered

roles

pending

timeout

guild avatar -> complete

flags

https://discordpy.readthedocs.io/en/latest/api.html#discord.on_member_update

Tied to this:

https://github.com/JDsProjects/JDBotLogsEmbed/blob/0b57f6dbc6feb39efe5335c9a6427afe7e8d77e6/cogs/test.py#L225