Simple discord bot to log deleted messages. Attachments included.
- python
- discord.py (install with pip install discord.py)
- Install discord.py
- Download loggerv2.py
- Go to https://discord.com/developers/applications and press the 'New Application' Button on the top right
- Give it a name and create the application
- (Optional) Once created, go to your application and the bot tab, and change the name and profile picture of the bot
- Enable developer mode in discord
- Go to your server, and right click the channel you want logged messages to be in. Press copy channel id
- Replace your copied channel id with the value after LOG_CHANNEL_ID in loggerv2.py.
- Go to the the discord developer portal -> applications -> oauth2 and get your client secret key there.
- Replace YOUR_SECRET_KEY in loggerv2.py with your key.
- Go to oauth2 -> Url Generator in the discord developer portal.
- Press 'bot' under scopes.
- Check 'Read Messages/View Channels', 'Send Messages', 'Read Message History', 'Use External Emojis', and 'Use External Stickers'.
- Copy the url generated underneath and paste it into your browser of choice. You will now have a prompt to invite your bot to a server.
Open command prompt and navigate to your directory where loggerv2.py is downloaded. Type python3 loggerv2.py and press enter.