OniSensei / Discord-Reactions-to-CSV-Pastebin

This is a basic discord bot that lets you export discord message reactions to a csv format and uploads it to pastebin using the pastebin api.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reaction User to CSV

This is a prof of concept for a reddit bot request that I keep getting messages for.

Discord Commands

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.

Setup

  • Click Here to create a bot and invite it to your server as follows

    • Click the 'New Application' button

    New Application

    • Enter a name for this bot and click create (you can name this anything, but it will show in discord this way)

    Name Bot

    • Click the 'Bot' tab under settings on the left toolbar

    Bot Tab

    • Click the 'Add Bot' button

    Add Bot

    • Click 'Yes do it' in the pop-up

    Yes do it

    • 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.

    OAuth2

    • Select the server you want to invite the bot to and click 'Authorize'

    Authorize Bot

    • Go back to the developer portal and select the Bot tab again. Then enable to privledged gateway intents

    Gateway Intents

    • Click 'Reset Token' button located under the token, then select 'Copy'.

    Reset Token Copy Token

    • 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'

About

This is a basic discord bot that lets you export discord message reactions to a csv format and uploads it to pastebin using the pastebin api.


Languages

Language:Visual Basic .NET 100.0%