This is a prof of concept for a reddit bot request that I keep getting messages for.
Commands:
pe! <- Prefix (customizable in the settings.ini file)
Command: (you must NOT include the "[]" brackets.)
pe!export [channel ID],[message ID] <- replace channel ID & message ID with the respective ID's for what you want to export to CSV - Include the comma, channel always first, message second.
- This command exports all usernames / user ID that have reacted with an emote listed in the settings.ini file.
-
Click Here to create a bot and invite it to your server as follows
- Click the 'New Application' button
- Enter a name for this bot and click create (you can name this anything, but it will show in discord this way)
- Click the 'Bot' tab under settings on the left toolbar
- Click the 'Add Bot' button
- Click 'Yes do it' in the pop-up
- Select 'OAuth2' tab under settings on the left toolbar, select 'Bot' from the checkbox, then 'Administrator'. Copy the link from the bottom and paste it into a new tab / window.
- Select the server you want to invite the bot to and click 'Authorize'
- Go back to the developer portal and select the Bot tab again. Then enable to privledged gateway intents
- Click 'Reset Token' button located under the token, then select 'Copy'.
-
Make sure your discord desktop client is running (this does not work with discord on webclients like chrome etc)
-
Download the latest version of the bot
-
Extract the zip to the desktop or my documents, somewhere you can find it easily.
-
Navigate to the folder and open settings.ini with a text editor like notepad, it will look like this:
[SETTINGS]
Token = ""
Name = "Poll & Export"
IconURL = "https://imgur.com/yg0HFY3.png"
Prefix = "pe!"
Reactions = ":confetti_ball:,:tada:,<:shiny:731667030985408603>"
[PASTEBIN]
DevKey = ""
Username = ""
Password = ""
Visibility = "Public"
-
Edit the settings with the token we copied in the steps above. Change the name, iconURL, prefix, or add reactions to the list seperated by a comma as you please. Under the 'PASTEBIN' section you will need a devkey and your login information. You can get this from https://pastebin.com/doc_api#1 (you will need to be logged in to get the devkey). Custom emote reactions require the full code of the emote which can be found by sending the emote with a back slash before it, ex: :shiny: which will output something similar to <:shiny:731667030985408603>.
-
Once your settings.ini file is saved, you can start 'Simple Poll And Extract.exe'