GithubHelp home page GithubHelp logo

onisensei / discord-reactions-to-csv-pastebin Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 4.24 MB

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.

Visual Basic .NET 100.00%

discord-reactions-to-csv-pastebin's Introduction

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'

discord-reactions-to-csv-pastebin's People

Contributors

onisensei avatar

Watchers

 avatar  avatar

discord-reactions-to-csv-pastebin's Issues

Support for custom emoji?

Hi, The bot works well for the most part. Thanks!
It took me a long while to get running because it apparently does not work with custom emoji. It worked fine once I used a standard emoji like :rofl:.
Here is the error message that was produced
image

PasteBin error

Hey!

so i was trying to export a list of reactions and i got a pastebin api error. Is there a way to create private posts instead of public ones?
image

Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.